Open source, MIT

Email automation is just drift.send() away

Driftmail turns onboarding sequences, digests, and lifecycle email into a few lines of TypeScript. No drag-and-drop builders, no marketing suite; just code that ships with your app.

Free up to 5,000 emails / month · npm i driftmail

onboarding.ts
import { drift } from "driftmail"

// runs when a user signs up
drift.sequence("onboarding", {
  trigger: "user.created",
  steps: [
    { wait: "5m",  send: "welcome" },
    { wait: "2d",  send: "setup-tips",
      skipIf: (u) => u.hasDeployed() },
    { wait: "7d",  send: "upgrade-nudge" },
  ],
})
// trusted by solo builders shipping real products shipfast.devLoglensFernpagetinyapiCove Analytics
// features

Everything a one-person team needs. Nothing a marketing department wants.

Sequences

Write flows in code, version them in git, deploy them with your app.

Sequences live next to your business logic. Branch on real user state, not a webhook guess: skip the nudge if they already upgraded, pause the digest while they are on a trial call.

step 1 welcome +5m
step 2 setup-tips +2d · skipIf deployed
step 3 upgrade-nudge +7d
Deliverability

99.4% inbox rate

Managed SPF, DKIM, and DMARC. Warmup handled for you on shared or dedicated IPs.

Templates

React Email, MJML, or plain HTML

Preview locally with drift dev, hot reload included.

Events API

One POST to trigger anything. Idempotent by default, retries built in.

API reference →
Analytics

Opens, clicks, unsubscribes

Piped to your own Postgres if you want the raw rows. No lock-in dashboards.

// how it works

From npm install to first sequence in under ten minutes

Install and authenticate

npm i driftmail then drift login. Your domain verifies with two DNS records; we generate them for you.

Define a sequence

Declare triggers, waits, and skip conditions in TypeScript. Run drift dev to preview every email locally.

Deploy with your app

drift push ships the flow. Emit events from your backend and Driftmail handles scheduling, retries, and sending.

// from a user
“I replaced a $300/month marketing suite with forty lines of TypeScript. My onboarding emails finally live in the same PR as the feature they announce.”
MK
Mira Kovacssolo founder, Loglens
// pricing

Priced for a side project. Ready for the day it is not one.

Builder
$9/ month

The plan almost everyone picks. Enough headroom for a launch that goes well.

  • 50,000 emails / month
  • Unlimited sequences and events
  • Custom domain, managed warmup
  • Analytics export to your database
  • Email support from the maintainers
Hobby
$0forever

5,000 emails / month, one domain, full API. No card required.

Scale
$49/ month

500,000 emails, dedicated IP, priority deliverability review.

// get started

Your users are waiting on that welcome email

Sign up, verify a domain, ship a sequence tonight. The free tier is real and the code is on GitHub.

Start sending free
$ npx driftmail init