As featured in Supabase launch week 8

Supercharge your Supabase with Trigger.dev

Trigger long-running Jobs directly in your codebase based on changes in your Supabase database. Easily add delays up to a year, and integrate with other services reliably.

Get started now

React to events in your database:

Get notified when a new user signs up and updates their password.

Trigger anything from a database change

Keep your app, database and services in sync using Trigger.dev. And create your Jobs where you're used to, in your own codebase.

src/jobs/send-welcome-email.ts
1
import { Database } from './supabase.types' // Generated types
2
import { SupabaseManagement } from '@trigger.dev/supabase'
3
import { resend } from "./resend"
4
5
const supabaseManagement = new SupabaseManagement({
6
id: 'supabase-management',
7
})
8
9
// Pass the generated types to the db instance
10
const db = supabase.db<Database>("https://<project id>.supabase.co");
11
12
client.defineJob({
13
id: 'send-welcome-email',
14
name: 'Send welcome email',
15
// Subscribe to users being updated
16
trigger: db.onUpdated({
17
schema: "auth",
18
table: 'users',
19
filter: {
20
old_record: {
21
email_confirmed_at: [{ $isNull: true }],
22
},
23
record: {
24
email_confirmed_at: [{ $isNull: false }],
25
},
26
},
27
}),
28
// Define the integrations that this Job will use
29
integrations: {
30
resend,
31
},
32
run: async (payload, io, ctx) => {
33
// Send an email using Resend
34
await io.resend.sendEmail('send-email', {
35
to: payload.record.email,
36
subject: 'Welcome to Acme Inc.',
37
html: welcomeEmail,
38
from: 'Acme Inc. <[email protected]>',
39
})
40
},
41
})

A Supa-powered integration

Unleash the full power of the Supabase API from your codebase.

Supabase Management made easy with OAuth

The integration handles OAuth for you, so you can just login and start automating: manage your organizations, projects and more.

Automate your Supabase with the Management API

Create and manage projects, organizations, functions, and more, using the Management API and our SupabaseManagement integration.

Connect your Supabase database toAirtable

Easily connect to your favorite tools and services. Create Jobs to trigger any action you want.

Trigger.dev is redefining background jobs for modern developers.

Paul Copplestone

CEO, Supabase

Developer-first features

Trigger.dev is designed to seamlessly fit into your existing workflow.

Long running jobs diagram

Long running Jobs on serverless

Reliably run Jobs and don’t worry about function timeouts, we handle those for you.

Auto-resume after a function timeout

Auto-resume after a server outage

Add delays of up to a year

In your codebase

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

Secure by design

We only receive Triggers and the data you choose to send to us. You can even completely self-host the entire platform.

Trigger.dev cloud diagram

Don't worry about deployment

Just use our SDK to write Jobs in your codebase. There's nothing extra to deploy and no CI to configure, your Jobs just connect to our cloud. Or you can always self-host.

Create Jobs with any service you use

Use our pre-built integrations or wrap any code in io.runTask to make it resumable and appear in the dashboard logs. You can also easily subscribe to webhooks and perform actions.

Full visibility of every Run

View every Task in every Run so you can tell exactly what happened.

Webapp

Step-by-step

Follow the flow of a Job from the Trigger to the Tasks.

All the details

See the input and output data of every Task, including retries and detailed errors.

Re-run Jobs

Quickly re-run a Job to check if you've fixed a bug.

Get started today

Try for free