trigger.dev README

The project's README from github.com/triggerdotdev/trigger.dev. As one markdown file: README.md.

Trigger.dev logo

Build and deploy fully‑managed AI agents and workflows

Website | Docs | Issues | Example projects | Feature requests | Public roadmap | Self-hosting

Open Source License npm SDK downloads

Twitter Follow Discord Ask DeepWiki GitHub stars

About Trigger.dev

Trigger.dev is the open-source platform for building AI workflows in TypeScript. Long-running tasks with retries, queues, observability, and elastic scaling.

The platform designed for building AI agents

Build AI agents using all the frameworks, services and LLMs you're used to, deploy them to Trigger.dev and get durable, long-running tasks with retries, queues, observability, and elastic scaling out of the box.

Key features

Write tasks in your codebase

Create tasks where they belong: in your codebase. Version control, localhost, test and review like you're already used to.

import { task } from "@trigger.dev/sdk";

//1. You need to export each task
export const helloWorld = task({
  //2. Use a unique id for each task
  id: "hello-world",
  //3. The run function is the main function of the task
  run: async (payload: { message: string }) => {
    //4. You can write code that runs for a long time here, there are no timeouts
    console.log(payload.message);
  },
});

Deployment

Use our SDK to write tasks in your codebase. There's no infrastructure to manage, your tasks automatically scale and connect to our cloud. Or you can always self-host.

Environments

We support Development, Staging, Preview, and Production environments, allowing you to test your tasks before deploying them to production.

Full visibility of every job run

View every task in every run so you can tell exactly what happened. We provide a full trace view of every task run so you can see what happened at every step.

Trace view image

Getting started

The quickest way to get started is to create an account and project in our web app, and follow the instructions in the onboarding. Build and deploy your first task in minutes.

Self-hosting

If you prefer to self-host Trigger.dev, you can follow our self-hosting guides:

Support and community

We have a large active community in our official Discord server for support, including a dedicated channel for self-hosting.

Development

To setup and develop locally or contribute to the open source project, follow our development guide.

Meet the Amazing People Behind This Project:

trigger.dev (triggerdotdev/trigger.dev)

Searching Database…

What is this?Trigger.dev is an open-source platform for building and deploying durable AI agents and workflows written in TypeScript, giving you long-running tasks with retries, queues, observability and elastic scaling.
Is this a hosted service or a code library I add to my project?It is both: you write tasks in your codebase using the Trigger.dev JavaScript/TypeScript SDK, then deploy them to Trigger.dev's managed cloud (no infrastructure to manage) or to your own self-hosted instance.
How do I build and deploy my first task?Create an account and project in the Trigger.dev web app and follow the onboarding flow; you can have your first task built and deployed within minutes.
Can I self-host it instead of using the cloud service?Yes — Trigger.dev provides a Docker Compose self-hosting guide and an official Helm chart for deploying to a Kubernetes cluster if you don't want to use the managed cloud.
Can I write tasks in languages other than JavaScript/TypeScript?Tasks are written with the JS/TS SDK, but build extensions let you hook into the build process to run Python scripts, FFmpeg, browsers and other system packages inside a task.
Does it only work with serverless platforms like Vercel or AWS Lambda?No — a key selling point is that Trigger.dev tasks have no timeouts at all, unlike AWS Lambda, Vercel and other serverless platforms, so long-running AI agent jobs can run to completion.
What actually makes a task 'durable' instead of just a regular background job?Checkpointing makes tasks inherently durable, and failed tasks are automatically retried on uncaught errors, so work survives crashes and transient failures.
Can a human intervene in the middle of an automated workflow?Yes, waitpoints let you pause a task so a human can approve, reject or give feedback before the workflow continues.
Can I stream AI responses to my app's frontend in real time?Yes, Trigger.dev Realtime lets you subscribe to runs and stream LLM responses live, with a companion React hooks package for frontend integration.
How do I control concurrency and run multiple environments safely?You can set concurrency rules and queues per task, and the platform supports separate DEV, PREVIEW, STAGING and PROD environments so testing never collides with production runs.
What are similar projects?evenfire, temporal, sim, brigade, dapr, agno, mission-control, kestra
Size
196 MB
Stars
16.6K
Age
3y
Commits · 90 Days