whatisgithub

What is trigger.dev?

triggerdotdev/trigger.dev — explained in plain English

Analysis updated 2026-06-24

14,915TypeScriptAudience · developerComplexity · 3/5LicenseSetup · moderate

In one sentence

Open-source TypeScript platform for writing long-running background jobs and AI workflows that run without timeouts, with retries, queues, monitoring, and scheduling included.

Mindmap

mindmap
  root((trigger-dev))
    Inputs
      TypeScript task functions
      Typed payloads
      Cron schedules
    Outputs
      Background job runs
      Logs and traces
      Realtime streams
    Use Cases
      Chained LLM calls
      Video processing
      Scheduled jobs
      Human-in-loop approvals
    Tech Stack
      TypeScript
      Node
      React
Click or tap to explore — scroll the page freely

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Run chained LLM calls and AI workflows that exceed the timeout limits of Lambda or Vercel

USE CASE 2

Schedule cron jobs and batch-trigger many runs from a TypeScript codebase

USE CASE 3

Pause a task until a human approves it using waitpoints, then resume execution

USE CASE 4

Stream LLM responses and realtime updates to a frontend via React hooks

What is it built with?

TypeScriptNodeReact

How does it compare?

triggerdotdev/trigger.devsindresorhus/gotjanpaepke/scrollmagic
Stars14,91514,90314,950
LanguageTypeScriptTypeScriptTypeScript
Setup difficultymoderateeasyeasy
Complexity3/52/52/5
Audiencedeveloperdeveloperdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · moderate Time to first run · 30min

Quickest path is the hosted cloud at cloud.trigger.dev, self-hosting needs Docker and extra infra configuration.

Apache 2.0: free to use, modify, and redistribute commercially, with a patent grant and attribution required.

So what is it?

Trigger.dev is an open-source platform for building and running background jobs and AI workflows written in TypeScript. The README pitches it as a way to write long-running tasks in your own codebase, then deploy them to Trigger.dev's cloud (or self-host) and get retries, queues, monitoring, and automatic scaling included. The main framing is that other places to run code, like AWS Lambda or Vercel serverless functions, cut off tasks after a short timeout. Trigger.dev says it runs your tasks with no timeout, so you can do things like call multiple LLMs in sequence, process video with FFmpeg, run a browser, or execute Python scripts as part of a job. Tasks are checkpointed, which the README says means they survive restarts and can resume where they left off. Developers install the SDK and write a task as a normal TypeScript function with a unique id and a run function that receives a typed payload. The example in the README is a hello-world task that just logs a message. Tasks live in your repo, so they go through version control, local testing, and code review like the rest of your code. The feature list is long. It includes scheduled cron jobs, realtime updates and LLM response streaming to a frontend through React hooks, batch triggering of many runs, structured input and output schemas, waits and waitpoints for pausing a task until a human approves it, concurrency and queue controls, and separate Development, Staging, Preview, and Production environments. Each run has full tracing, logs, tags, metadata, and configurable error alerts. The README also points to a hosted cloud at cloud.trigger.dev as the quickest way to get started, with self-hosting documented as an alternative. The project is licensed Apache 2.0.

Copy-paste prompts

Prompt 1
Write a Trigger.dev task that calls OpenAI three times in sequence and streams the final result to a Next.js frontend
Prompt 2
Set up a Trigger.dev scheduled cron task that runs every hour and processes new rows from a Postgres queue
Prompt 3
Self-host Trigger.dev with Docker and connect it to my existing TypeScript repo of tasks
Prompt 4
Add a waitpoint to a Trigger.dev task so it pauses until an admin approves the run from a Slack message

Frequently asked questions

What is trigger.dev?

Open-source TypeScript platform for writing long-running background jobs and AI workflows that run without timeouts, with retries, queues, monitoring, and scheduling included.

What language is trigger.dev written in?

Mainly TypeScript. The stack also includes TypeScript, Node, React.

What license does trigger.dev use?

Apache 2.0: free to use, modify, and redistribute commercially, with a patent grant and attribution required.

How hard is trigger.dev to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is trigger.dev for?

Mainly developer.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.