Skip to content
Proyek

Tentang

Open-source multi-domain webmail, email API and webhooks on your own Cloudflare account. Unlimited mailboxes for $5/month.

Produktivitas dan otomatisasi

Cara angka ini diukur

Pertumbuhan bintang terukur

dalam 24 jam
0
dalam 7 hari
+9
dalam 15 hari
+38
dalam 1 bulan
Mengumpulkan riwayat

Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.

README.md

Asli

GentleMail: send and receive email on unlimited domains for $5/month. Open source, one-click deploy to Cloudflare.

GentleMail

Open-source, multi-domain webmail, email API and webhooks that run entirely on your own Cloudflare account. One deployment serves any number of domains, mailboxes and people for the $5/month Workers Paid plan: no per-seat pricing, no API keys handed to a third party.

Deploy to Cloudflare Install with Appflare

Website: https://gentlemail.dev · Deploy guide: https://gentlemail.dev/docs/deploy/ · Docs: https://gentlemail.dev/docs · Changelog

  • Inbox and outbox: a real webmail for people (conversations, search, attachments, spam folder, blocking) and a REST API for code.
  • Many domains, one deployment: add domains and mailboxes in Admin, and choose which people can open which mailboxes.
  • Webhooks: signed message.received and message.sent events with retries, to automate invoices, support alerts and more.
  • AI assistants (MCP): connect Claude, ChatGPT or Cursor by signing in; they search, read and answer mail in the mailboxes you tick, and ask before sending.
  • Your infrastructure: mail is stored in your own D1 database and R2 bucket, and sent with Cloudflare Email Service.

The GentleMail inbox: a mailbox switcher, folders and a list of conversations

API & webhooks: API keys with per-mailbox access, and webhooks with their delivery status The inbox on a phone The menu on a phone
API keys and webhooks On a phone

Deploy your own

  1. Deploy. To keep an instance, clone this repository into your own and connect it to a Worker with Root directory apps/mail: a release is then one git pull. To try GentleMail, click Deploy to Cloudflare above: Cloudflare copies the app into a new repository on your GitHub account, creates the database and storage, asks for a one-time SETUP_TOKEN, then builds and deploys. That copy doesn't follow our releases; updating it takes more steps. If you use Appflare, click Install with Appflare above: it installs a packaged GentleMail release into your account with no repository, creates the admin account from the install form, routes a domain's mail to it, and updates it from Appflare.
  2. Claim it. Open /setup on your new Worker and create the admin account (with Appflare, the install form already did).
  3. Connect a domain. Add it in Admin → Domains and run the three commands it shows.
  4. Create mailboxes and users, then send yourself a test message.

You need a Cloudflare account on Workers Paid and a domain whose DNS is on Cloudflare. The full guide (every step, configuration, an end-to-end test, updating and troubleshooting) is in apps/mail/README.md.

No Cloudflare API token

GentleMail never asks for a Cloudflare API token or account ID: it reaches D1, R2 and Email Service through Worker bindings. More on why.

Repository

A small pnpm workspace monorepo with one app today.

.
├── apps/
│   ├── mail/              the app: webmail, REST API and webhooks (one Cloudflare Worker)
│   └── docs/              the documentation site, served at gentlemail.dev/docs (Astro Starlight)
├── packages/
│   └── sdk/               the JavaScript SDK, published to npm as `gentlemail`
├── package.json           workspace scripts
├── pnpm-lock.yaml
└── pnpm-workspace.yaml

apps/mail is the folder the Deploy button copies and the Root directory for Workers Builds. It has its own package.json, wrangler.jsonc and migrations. Its README has the tech stack (Workers, RedwoodSDK, D1 with plain SQL and no ORM, R2, Email Service), database and migration commands, a file-by-file layout and every script.

Commands

From the repository root:

pnpm install
pnpm dev:mail                                    # local dev server, http://localhost:5173
pnpm --filter @emails/mail db:migrate:local      # apply migrations to the local database
pnpm types                                       # type-check

The lockfile is the workspace's pnpm-lock.yaml, so pnpm is the tool for this repository. Inside apps/mail, the everyday scripts (dev, build, deploy, db:migrate:*) also run with npm; check and release call pnpm.

Fork it

Missing something your product needs, like a mailboxes API, forwarding, or delivery to Telegram? Fork it and add it: mail comes in through apps/mail/src/lib/inbound.ts and goes out through apps/mail/src/lib/outbound.ts. Issues, discussions and pull requests are welcome.

Contributing

Bug fixes are welcome as pull requests; a new feature starts as a Feature proposal, agreed before it's built. Every change comes with tests, and access is always tested. CONTRIBUTING.md has the setup and what a pull request needs; security problems go to SECURITY.md, never a public issue. Questions: Discord or Discussions.

Star History

License

MIT © Softwaiz

Jelajahi proyek terkait

Memuat…