From 0fa7277feb42f71f22d8d31350c009f849e6fb6b Mon Sep 17 00:00:00 2001 From: D-K-P <8297864+D-K-P@users.noreply.github.com> Date: Fri, 13 Dec 2024 17:25:13 +0000 Subject: [PATCH 1/7] Added new side menu section and updated intro --- docs/guides/introduction.mdx | 14 +++++++++++--- docs/mint.json | 4 ++++ 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/docs/guides/introduction.mdx b/docs/guides/introduction.mdx index 51d58b0a49..2bce143633 100644 --- a/docs/guides/introduction.mdx +++ b/docs/guides/introduction.mdx @@ -33,16 +33,24 @@ Get set up fast using our detailed walk-through guides. | [Using webhooks in Remix](/guides/frameworks/remix-webhooks) | Trigger tasks from a webhook in Remix | | [Stripe webhooks](/guides/examples/stripe-webhook) | Trigger tasks from incoming Stripe webhook events | +## Example projects + +Example projects are full projects with example repos you can fork and use. These are a great way of learning how to encorporate Trigger.dev into your project. + +| Example project | Description | Framework | GitHub Repo | +| :-------------------------------------------------------------------------------------------------- | :------------------------------------------------------------------------------------------------------------- | :-------- | :------------------------------------------------------------------------- | +| [Vercel AI SDK LLM evaluator with Realtime streaming](/guides/examples/vercel-ai-sdk-llm-evaluator) | A full-stack demo showing off Trigger.dev triggering from the frontend, Batch triggering and Realtime streams. | Next.js | [View the repo](https://github.com/triggerdotdev/batch-llm-evaluator) | +| [Fal.ai with Realtime](/guides/examples/fal-ai-realtime) | Generate an image from a prompt using Fal.ai and show the progress of the task on the frontend using Realtime. | Next.js | [View the repo](https://github.com/triggerdotdev/nextjs-realtime-fal-demo) | +| [Fal.ai image to cartoon](/guides/examples/fal-ai-image-to-cartoon) | Convert an image to a cartoon using Fal.ai, and upload the result to Cloudflare R2. | Next.js | Coming soon | + ## Example tasks -Tasks you can copy and paste to get started with Trigger.dev. They can all be extended and customized to fit your needs. +Task code you can copy and paste to use in your project. They can all be extended and customized to fit your needs. | Example task | Description | | :---------------------------------------------------------------------------- | :--------------------------------------------------------------------------------------------------------------------------------------------------- | | [DALL·E 3 image generation](/guides/examples/dall-e3-generate-image) | Use OpenAI's GPT-4o and DALL·E 3 to generate an image and text. | | [Deepgram audio transcription](/guides/examples/deepgram-transcribe-audio) | Transcribe audio using Deepgram's speech recognition API. | -| [Fal.ai image to cartoon](/guides/examples/fal-ai-image-to-cartoon) | Convert an image to a cartoon using Fal.ai, and upload the result to Cloudflare R2. | -| [Fal.ai with Realtime](/guides/examples/fal-ai-realtime) | Generate an image from a prompt using Fal.ai and show the progress of the task on the frontend using Realtime. | | [FFmpeg video processing](/guides/examples/ffmpeg-video-processing) | Use FFmpeg to process a video in various ways and save it to Cloudflare R2. | | [Firecrawl URL crawl](/guides/examples/firecrawl-url-crawl) | Learn how to use Firecrawl to crawl a URL and return LLM-ready markdown. | | [LibreOffice PDF conversion](/guides/examples/libreoffice-pdf-conversion) | Convert a document to PDF using LibreOffice. | diff --git a/docs/mint.json b/docs/mint.json index 0154122ef1..73053dabe4 100644 --- a/docs/mint.json +++ b/docs/mint.json @@ -378,6 +378,10 @@ } ] }, + { + "group": "Example projects", + "pages": ["guides/examples/fal-ai-image-to-cartoon", "guides/examples/fal-ai-realtime"] + }, { "group": "Example tasks", "pages": [ From 039e703104e094b400bb9854fc33265cdc306c4d Mon Sep 17 00:00:00 2001 From: D-K-P <8297864+D-K-P@users.noreply.github.com> Date: Fri, 13 Dec 2024 18:11:02 +0000 Subject: [PATCH 2/7] Updated the fal ai realtime project --- docs/guides/examples/fal-ai-realtime.mdx | 38 ++++++++++++++++++++---- 1 file changed, 32 insertions(+), 6 deletions(-) diff --git a/docs/guides/examples/fal-ai-realtime.mdx b/docs/guides/examples/fal-ai-realtime.mdx index 999ad6c438..a555b1ae9f 100644 --- a/docs/guides/examples/fal-ai-realtime.mdx +++ b/docs/guides/examples/fal-ai-realtime.mdx @@ -1,7 +1,7 @@ --- title: "Generate an image from a prompt using Fal.ai and Trigger.dev Realtime" sidebarTitle: "Fal.ai with Realtime" -description: "This example task generates an image from a prompt using Fal.ai and shows the progress of the task on the frontend using Trigger.dev Realtime." +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." --- ## Walkthrough @@ -9,14 +9,40 @@ description: "This example task generates an image from a prompt using Fal.ai an This video walks through the process of creating this task in a Next.js project.
-