Skip to content

Latest commit

 

History

History
89 lines (75 loc) · 12.3 KB

introduction.mdx

File metadata and controls

89 lines (75 loc) · 12.3 KB
title sidebarTitle description mode
Frameworks, guides and examples
Overview
A growing list of guides and examples to get the most out of Trigger.dev.
center

Frameworks

Guides

Get set up fast using our detailed walk-through guides.

Guide Description
AI Agent: Generate and translate copy Chain prompts to generate and translate content
AI Agent: Route questions Route questions to different models based on complexity
AI Agent: Content moderation Parallel check content while responding to customers
AI Agent: News verification Orchestrate fact checking of news articles
AI Agent: Translation refinement Evaluate and refine translations with feedback
Prisma How to setup Prisma with Trigger.dev
Python image processing Use Python and Pillow to process images
Python web crawler Use Python, Crawl4AI and Playwright to create a headless web crawler
Python PDF form extractor Use Python, PyMuPDF and Trigger.dev to extract data from a PDF form
Sequin database triggers Trigger tasks from database changes using Sequin
Supabase edge function hello world Trigger tasks from Supabase edge function
Supabase database webhooks Trigger tasks using Supabase database webhooks
Using webhooks in Next.js Trigger tasks from a webhook in Next.js
Using webhooks in Remix Trigger tasks from a webhook in Remix
Stripe webhooks 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
Batch LLM Evaluator Evaluate multiple LLM models and stream the results to the frontend. Next.js View the repo
Claude thinking chatbot Use Vercel's AI SDK and Anthropic's Claude 3.7 model to create a thinking chatbot. Next.js View the repo
Turborepo monorepo with Prisma Use Prisma in a Turborepo monorepo with Trigger.dev. Next.js View the repo
Realtime Fal.ai image generation 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
Realtime CSV Importer Upload a CSV file and see the progress of the task streamed to the frontend. Next.js View the repo
Vercel AI SDK image generator Use the Vercel AI SDK to generate images from a prompt. Next.js View the repo
Python web crawler Use Python, Crawl4AI and Playwright to create a headless web crawler with Trigger.dev. View the repo

Example tasks

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 Use OpenAI's GPT-4o and DALL·E 3 to generate an image and text.
Deepgram audio transcription Transcribe audio using Deepgram's speech recognition API.
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 Generate an image from a prompt using Fal.ai and show the progress of the task on the frontend using Realtime.
FFmpeg video processing Use FFmpeg to process a video in various ways and save it to Cloudflare R2.
Firecrawl URL crawl Learn how to use Firecrawl to crawl a URL and return LLM-ready markdown.
LibreOffice PDF conversion Convert a document to PDF using LibreOffice.
OpenAI with retrying Create a reusable OpenAI task with custom retry options.
PDF to image Use MuPDF to turn a PDF into images and save them to Cloudflare R2.
React to PDF Use react-pdf to generate a PDF and save it to Cloudflare R2.
Puppeteer Use Puppeteer to generate a PDF or scrape a webpage.
React email Send an email using React Email.
Resend email sequence Send a sequence of emails over several days using Resend with Trigger.dev.
Satori Generate OG images using React Satori.
Scrape Hacker News Scrape Hacker News using BrowserBase and Puppeteer, summarize the articles with ChatGPT and send an email of the summary every weekday using Resend.
Sentry error tracking Automatically send errors to Sentry from your tasks.
Sharp image processing Use Sharp to process an image and save it to Cloudflare R2.
Supabase database operations Run basic CRUD operations on a table in a Supabase database using Trigger.dev.
Supabase Storage upload Download a video from a URL and upload it to Supabase Storage using S3.
Vercel AI SDK Use Vercel AI SDK to generate text using OpenAI.
Vercel sync environment variables Automatically sync environment variables from your Vercel projects to Trigger.dev.

Cursor rules

If you use Cursor, we have a set of Cursor rules which will help you build your tasks. You can find our installation guide here.

If you would like to see a guide for your framework, or an example task for your use case, please request it in our [Discord server](https://trigger.dev/discord) and we'll add it to the list.