Skip to content

smail

Disposable inbox service on Cloudflare Workers that you can host on your own domain

Permissive (OSI) · MIT

Listed by , founder & editor

47

Health

Slowing

Overview

Stars

940

Last commit

19 days ago

Nov 2026

Repository age

2 years

since Jan 2024

Latest version

v3

Oct 2026

Contributors

–

1 active in 90 days

Releases

2

last 12 months

Language

TypeScript

Smail is a temporary email service that runs entirely on Cloudflare Workers. It is the source code behind smail.pw. You get an address without signing up, and it stays the same until you replace or delete it. New mail appears in the page within a few seconds, pushed over a WebSocket.

The front end is built with Solid and StyleX, and the pages are static files. The Worker runs only for the inbox API, the push connection and incoming mail. Storage uses D1 and R2, with Durable Objects and Email Routing. Messages display in a sandboxed iframe, so scripts inside them do not run, and the interface comes in 19 languages, including right-to-left ones.

It is receive only. It cannot send mail, and attachments are not shown. To run your own copy you need a Cloudflare account, a domain already on Cloudflare, Node.js 22.18 or newer and pnpm. Setup centers on editing one file, site.config.ts. The code is MIT licensed.

Who it's for

Developers who want their own throwaway-address service

You can run it on your own domain and configure it through a single file.

Skip if: You are not on Cloudflare or cannot move a domain there.

Privacy-minded users who sign up for many sites

It gives you an address for OTP codes and sign-ups without creating an account.

Skip if: You need to send mail or open attachments.

The problem it solves

Signing up for services often means handing over your real address and then getting spam. A disposable inbox lets you receive verification codes without that. Hosting your own keeps the addresses on a domain you control.

Strengths

  • No account needed to get an address
  • Mail is pushed over WebSocket, so no polling
  • Emails render in a sandboxed iframe with scripts blocked
  • Interface available in 19 languages
  • MIT license

Trade-offs

  • Receive only, and attachments are not shown
  • Requires Cloudflare Workers, D1, R2 and a domain on Cloudflare
  • No one-click deploy button, so setup is manual
  • Cloudflare's cf CLI used for setup is currently in beta

Self-host smail

Self-hostable
Yes

Quick start

git clone https://github.com/akazwz/smail.git
cd smail
pnpm install
cd worker
pnpm exec cf auth login

From the project's own install instructions. Check the docs for production settings.

Frequently asked questions

Is it free?

The code is MIT licensed. Running it needs a Cloudflare account, and Cloudflare's own plans and limits apply.

Can I self-host it?

Yes. You deploy it to your own Cloudflare account and set your domain in site.config.ts.

Can I send email with it?

No. It only receives mail, and attachments are not shown.

What do I need before deploying?

A Cloudflare account, a domain on Cloudflare, Node.js 22.18 or newer, and pnpm. R2 must be enabled in the dashboard first.

Similar tools in Privacy tools

librex

Privacy tools

Self-hosted privacy metasearch engine that works without JavaScript

845 96 3 years ago Dormant AGPL-3.0

Tarnhelm

Privacy tools

Android app that strips tracking junk from links before you share them

797 33 3 months ago Slowing GPL-3.0

lastsignal

Privacy tools

773 29 yesterday Active MIT

ARX

Privacy tools

741 238 14 months ago Dormant Apache-2.0

Untracker

Privacy tools

637 41 18 days ago Slowing Apache-2.0