T-Mail is a production-ready, serverless temporary email service built on the Cloudflare Developer Platform. It provides secure, disposable email addresses that expire automatically after 10 minutes.
Unlike basic templates, this solution features real-time updates, attachment support (via R2), and a strict 10-minute session TTL enforced by Cloudflare KV.
- ⏱️ True 10-Minute TTL: Sessions are managed via Cloudflare KV. Emails sent to expired addresses are rejected at the edge.
- 📎 Attachment Support: Incoming attachments are parsed, uploaded to Cloudflare R2, and served via a custom domain.
- ⚡ Real-Time Polling: The React frontend auto-refreshes to show new messages instantly.
- 🎨 Modern Design System: Built with Tailwind CSS, featuring a glassmorphism UI, circular progress timers, and confetti effects.
- 🔒 Privacy First: No tracking. Emails and attachments are permanently deleted when the database is cleaned (TTL logic can be extended to D1).
- ☁️ Full Serverless: Powered entirely by Cloudflare Workers, D1, KV, and R2. No servers to manage.
- Framework: React Router v7 (SSR + SPA)
- Backend: Hono (running on Workers)
- Database: Cloudflare D1 (SQLite at the edge)
- Session Store: Cloudflare KV (Key-Value storage)
- Storage: Cloudflare R2 (Object storage for attachments)
- Email Parsing:
postal-mime - Styling: Tailwind CSS
- Node.js (v20 or later)
- Cloudflare Account
- Wrangler CLI installed globally or via npx.
- A custom domain added to Cloudflare (e.g.,
prokit.uk).
.jpeg)