Analysis updated 2026-05-18
Self-host a team email inbox that receives mail routed through your own Cloudflare domain.
Build a custom support or ticketing-style email workflow on top of a real database instead of IMAP.
Swap between SQLite, PostgreSQL, and MySQL for local development versus production deployment.
Deploy a self-managed alternative to a hosted email service on your own Vercel or Docker setup.
| prashant4900/mail-box | 5uck1ess/cicero | aaglexx/mcp-man | |
|---|---|---|---|
| Stars | 17 | 17 | 17 |
| Language | TypeScript | TypeScript | TypeScript |
| Setup difficulty | moderate | — | easy |
| Complexity | — | — | 2/5 |
| Audience | developer | developer | developer |
Figures from each repo's GitHub metadata at analysis time.
Needs a Cloudflare account and domain for the email routing integration to work.
Mailbox is a self-hosted email client and management platform built on Next.js and Prisma. It sits between your Cloudflare-managed domain and your own users, automatically setting up mailboxes and routing rules so incoming email on your domain shows up inside a real-time dashboard rather than a traditional inbox. When someone sends an email to an address on your domain, Cloudflare's Email Routing service catches it, matches it against a Worker script, and forwards the raw message to a webhook inside the Mailbox application. The app parses that message, verifies the recipient, saves the email thread to a database, and the dashboard updates automatically for anyone viewing it, using React Query to refetch data. Sending outgoing email is handled separately, through your own SMTP settings configured in the environment file, since the Cloudflare integration only covers receiving. The codebase follows a strict four-layer structure: a repositories layer that only talks to the database through Prisma, a services layer that holds the actual business logic and authorization rules, a query layer that bridges the backend to React Query hooks, and a components and pages layer that is presentation only, with no direct database access allowed. Shared TypeScript types live in one central file, and every icon used in the app is registered in a central icon registry rather than imported ad hoc. Mailbox supports SQLite for quick local development, or PostgreSQL and MySQL through Docker for more production-like testing, and it can also connect to serverless Postgres providers like Neon or Supabase. It ships with a Docker setup for self-hosting and documented steps for deploying to Vercel. The project is licensed under the Business Source License.
A self-hosted email client that routes incoming mail through Cloudflare Email Routing into a real-time Next.js dashboard.
Mainly TypeScript. The stack also includes Next.js, Prisma, TypeScript.
Setup difficulty is rated moderate, with roughly 30min to a first successful run.
Mainly developer.
This repo across BitVibe Labs
Verify against the repo before relying on details.