-
-
Notifications
You must be signed in to change notification settings - Fork 639
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding example projects #1564
Merged
Merged
Adding example projects #1564
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
0fa7277
Added new side menu section and updated intro
D-K-P 039e703
Updated the fal ai realtime project
D-K-P 008ab68
Copy update
D-K-P b0ba355
Merge branch 'main' into docs/example-projects
D-K-P a7acc43
Added example project
D-K-P 13e3ec4
Swapped walkthrough and repo
D-K-P d50d4f4
Restore original fal task page
D-K-P c11c8a4
Added links back to the intro
D-K-P File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
--- | ||
title: "Generate an image from a prompt using Fal.ai and Trigger.dev Realtime" | ||
sidebarTitle: "Realtime image gen with Fal.ai" | ||
description: "This example project generates an image from a prompt using Fal.ai and shows the progress of the task on the frontend using Trigger.dev Realtime." | ||
--- | ||
|
||
## Overview | ||
|
||
This full stack Next.js project showcases the following: | ||
|
||
- A Trigger.dev task which [generates an image from a prompt using Fal.ai](https://github.com/triggerdotdev/examples/blob/main/realtime-fal-ai-image-generation/src/trigger/realtime-generate-image.ts) | ||
- When a [form is submitted](https://github.com/triggerdotdev/examples/blob/main/realtime-fal-ai-image-generation/src/app/page.tsx) in the UI, triggering the task using a [server action](https://github.com/triggerdotdev/examples/blob/main/realtime-fal-ai-image-generation/src/app/actions/process-image.ts) | ||
- Showing the [progress of the task](https://github.com/triggerdotdev/examples/blob/main/realtime-fal-ai-image-generation/src/app/processing/%5Bid%5D/ProcessingContent.tsx) on the frontend using Trigger.dev Realtime. This also includes error handling and a fallback UI | ||
- Once the task is completed, showing the generated image on the frontend next to the original image | ||
|
||
## GitHub repo | ||
|
||
<Card | ||
title="View the project on GitHub" | ||
icon="GitHub" | ||
href="https://github.com/triggerdotdev/examples/tree/main/realtime-fal-ai-image-generation" | ||
> | ||
Click here to view the full code for this project in our examples repository on GitHub. You can | ||
fork it and use it as a starting point for your own project. | ||
</Card> | ||
|
||
## Walkthrough video | ||
|
||
This video walks through the process of creating this task in a Next.js project. | ||
|
||
<div className="w-full h-full aspect-video mb-3"> | ||
<iframe | ||
width="100%" | ||
height="100%" | ||
src="https://www.youtube.com/embed/BWZqYfUaigg?si=XpqVUEIf1j4bsYZ4" | ||
title="Trigger.dev walkthrough" | ||
frameborder="0" | ||
allow="accelerometer; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" | ||
referrerpolicy="strict-origin-when-cross-origin" | ||
allowfullscreen | ||
/> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Codebase verification
Based on the verification results, I can now provide the final response:
Documentation links need to be updated - referenced example files not found
The documentation references code files in the examples repository that appear to be missing. None of the following referenced files could be found:
realtime-fal-ai-image-generation/src/trigger/realtime-generate-image.ts
realtime-fal-ai-image-generation/src/app/page.tsx
realtime-fal-ai-image-generation/src/app/actions/process-image.ts
realtime-fal-ai-image-generation/src/app/processing/[id]/ProcessingContent.tsx
Please either:
🔗 Analysis chain
Verify the existence of referenced code files
Let's ensure all the linked files exist in the examples repository:
Let me try a different approach to verify the files using
fd
command which is available in the sandbox environment.Let me try one more verification with a slightly different approach:
Let me try one more verification by checking the actual repository content:
🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
Length of output: 918
Script:
Length of output: 670
Script:
Length of output: 73556
Script:
Length of output: 112