Skip to content

Latest commit

 

History

History
104 lines (90 loc) · 17.3 KB

File metadata and controls

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

Frameworks

import UseCasesCards from "/snippets/use-cases-cards.mdx";

Guides

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

Guide Description
AI Agent: Content moderation Parallel check content while responding to customers
AI Agent: Generate and translate copy Chain prompts to generate and translate content
AI Agent: News verification Orchestrate fact checking of news articles
AI Agent: Route questions Route questions to different models based on complexity
AI Agent: Translation refinement Evaluate and refine translations with feedback
Claude Agent SDK Build AI agents that read files, run commands, and edit code
Cursor rules Use Cursor rules to help write Trigger.dev tasks
Prisma How to setup Prisma with Trigger.dev
Python image processing Use Python and Pillow to process images
Python document to markdown Use Python and MarkItDown to convert documents to markdown
Python PDF form extractor Use Python, PyMuPDF and Trigger.dev to extract data from a PDF form
Python web crawler Use Python, Crawl4AI and Playwright to create a headless web crawler
Sequin database triggers Trigger tasks from database changes using Sequin
Stripe webhooks Trigger tasks from incoming Stripe webhook events
Supabase database webhooks Trigger tasks using Supabase database webhooks
Supabase edge function hello world Trigger tasks from Supabase edge function
Using webhooks in Next.js Trigger tasks from a webhook in Next.js
Using webhooks in Remix Trigger tasks from a webhook in Remix

Example projects

Example projects are full projects with example repos you can fork and use. These are a great way of learning how to use Trigger.dev in your projects.

Example project Description Framework GitHub
Anchor Browser web scraper Monitor a website and find the cheapest tickets for a show. View the repo
Batch LLM Evaluator Evaluate multiple LLM models and stream the results to the frontend. Next.js View the repo
Claude changelog generator Automatically generate professional changelogs from git commits using Claude. View the repo
Claude GitHub wiki agent Generate and maintain GitHub wiki documentation with Claude-powered analysis. 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
Human-in-the-loop workflow Create audio summaries of newspaper articles using a human-in-the-loop workflow built with ReactFlow and Trigger.dev waitpoint tokens. Next.js View the repo
Mastra agents with memory Use Mastra to create a weather agent that can collect live weather data and generate clothing recommendations. View the repo
OpenAI Agents SDK for Python guardrails Use the OpenAI Agents SDK for Python to create a guardrails system for your AI agents. View the repo
OpenAI Agents SDK for TypeScript playground A playground containing 7 AI agents using the OpenAI Agents SDK for TypeScript with Trigger.dev. View the repo
Product image generator Transform basic product photos into professional marketing shots using Replicate's image generation models. 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
Realtime CSV Importer Upload a CSV file and see the progress of the task streamed to the frontend. 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
Smart Spreadsheet Enrich company data using Exa search and Claude with real-time streaming results. Next.js View the repo
Turborepo monorepo with Prisma Use Prisma in a Turborepo monorepo with Trigger.dev. 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
Vercel AI SDK deep research agent Use the Vercel AI SDK to generate comprehensive PDF reports using a deep research agent. Next.js 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.
Lightpanda Use Lightpanda browser (or cloud version) to get a webpage's content.
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.
Puppeteer Use Puppeteer to generate a PDF or scrape a webpage.
React email Send an email using React Email.
React to PDF Use react-pdf to generate a PDF and save it to Cloudflare R2.
Resend email sequence Send a sequence of emails over several days using Resend with Trigger.dev.
Replicate image generation Learn how to generate images from source image URLs using Replicate and 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.
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.