Open source · Resend-compatible

Email for
developers,
without sending any.

Pretend is a local emulator for the Resend API. Point the official SDK at localhost and inspect every email your app sends: HTML, headers, attachments and events.

Works with the official Resend SDKs you already use

  • Node.js
  • Python
  • PHP
  • Ruby
  • Go
  • Java
  • cURL

Integrate

Change one URL.
Keep your code.

Pretend mirrors Resend's request and response shapes. Set the SDK's base URL to the emulator and every send lands in your local inbox instead of a real one.

  • Same endpoints, same errors, same IDs
  • Default key re_local_dev_key
  • Verified against the pinned resend SDK in CI

Features

Everything Resend does,
right on your machine.

API parity

Emails, batch sends, contacts, audiences, broadcasts, domains, templates, topics and suppressions, all with Resend's shapes.

Email inspector

Preview, plain text, HTML, raw MIME, headers and an events timeline for every captured email.

Webhooks

Delivery events are signed and posted to your local endpoints, with every attempt logged and replayable.

Attachments

Base64 content or remote paths up to 40 MB, stored locally and served through signed download URLs.

Broadcasts

Send to a segment and get one captured email per contact, ready to inspect.

Persistent by default

SQLite storage survives restarts. Reset everything with one request when you want a clean slate.

Dashboard

See exactly what
your users would.

HTML renders in a sandboxed frame with full CSS and web fonts. JavaScript is neutralised.

The Pretend dashboard showing a list of captured emails and a rendered email preview

Start capturing
in one command.

docker run -p 3000:3000 -e DISABLE_LOGIN=true a2coder/pretend