DevLaunch
Live preview
Background jobs, done right

Run reliable background jobs without the infra headache.

Relay is a queue and scheduler you call like a function. Durable retries, observability, and zero servers to babysit — add it to your app in a few lines.

Open SDKGenerous free tierSOC 2
bash
$ npm i @relay/sdk

# enqueue a job in one line
await relay.run("send-email", { to: user.email });

Works with any Node, Bun, or edge runtime.

Platform

Everything a job queue should have been.

Durable, observable, and pleasant to use.

Durable retries

Exponential backoff, dead-letter queues, and replay — built in.

Schedules & crons

Human-readable schedules.

Live observability

Every run, traced.

Typed end to end

Your job payloads are type-checked from enqueue to handler — no stringly-typed surprises.

Rate limiting

Per-queue concurrency control.

The whole API

A typed function is the entire interface.

Define a handler, enqueue from anywhere — payloads are type-checked end to end.

jobs/send-welcome.ts
import { defineJob } from "@relay/sdk";

export const sendWelcome = defineJob({
  name: "send-welcome",
  retries: 5,
  run: async ({ userId }: { userId: string }) => {
    const user = await db.users.find(userId);
    await email.send(user.email, "welcome");
  },
});

// elsewhere — fully typed, no stringly-typed payloads
await sendWelcome.enqueue({ userId: user.id });

Same code runs on Node, Bun, and the edge.

Workflow

From npm install to production in an afternoon.

  1. 01

    Install the SDK

    One package, any runtime.

  2. 02

    Define a handler

    A typed function — that's the whole API.

  3. 03

    Enqueue jobs

    Call relay.run() from anywhere in your app.

  4. 04

    Watch it run

    Traces, retries, and metrics in the dashboard.

Drops into the stack you already run

Next.jsBunPostgresRedisAWSCloudflare
Pricing

Pay for throughput, not seats.

Start free. Scale when your job volume does.

Free

$0/mo

For side projects and prototypes.

  • 10k runs / mo
  • 3-day retention
  • Community support
Popular

Pro

$49/mo

For apps in production.

  • 1M runs / mo
  • 30-day retention
  • Concurrency controls
  • Email support

Scale

Custom

High volume + compliance.

  • Unlimited runs
  • SSO & SOC 2
  • Dedicated support

Ship background jobs you can trust.

Add Relay in a few lines and watch your queue actually behave.

Free forever for small projects · no card required