Sharing an open-source disposable email service I built: 1m Mail.
No signup needed, addresses generate in 1 second, and they self-destruct once you're done. You can also deploy it on your own domain.
Repo: https://github.com/linxk8/-1m-mail
Live demo: https://1m.de5.net (no signup, just open it and try)
🛠️ Tech stack
Frontend: vanilla HTML / CSS / JS (no framework, as lightweight as it gets)
Backend: Hono + Cloudflare D1
Inbound mail: Cloudflare Email Routing (catch-all)
App form: installable as a PWA, opens offline
✨ Highlights
⚡ Fast receiving: address generated in 1 second, auto-polling every 4 seconds, OTP codes auto-detected, highlighted and enlarged, one click to copy.
🎨 Crystal Lumière design language:
Soft visuals: warm paper background paired with electric indigo, coral pink, and emerald green, plus glassmorphic cards, soft light blooms, and film grain — easy on the eyes.
Seamless hero transition: the generator view (paper plane) and inbox view (crystal envelope) cross-fade in pure CSS over 0.9s, giving a visual loop from "send" to "receive."
Single page, no reloads: generation and inbox flip within the hero, with a realistic incoming-mail card and mouse parallax on the right.
⏳ Countdown and branded ceremony:
Choose from 10 minutes / 1 hour / 24 hours, with one-click renewal and a red warning during the last 5 minutes.
Mail is fully destroyed on expiry; expired or nonexistent public links land on custom-branded 404 / 410 pages instead of the cold default error.
🔒 Security and privacy:
Auto-destroy on expiry with zero data retention.
Built-in CSP policy blocks tracking pixels in external email links.
70+ reserved system names (admin, noreply, etc.) to prevent abuse of sensitive words.
📱 Careful typography and performance:
Bricolage Grotesque + Noto Serif SC + JetBrains Mono, with consistent details in mixed CJK/Latin typesetting.
Single-column reflow on mobile, nicely responsive. Images fall back automatically across AVIF/WebP/PNG based on browser support.
Feel free to try it out and deploy it — any suggestions or issues are welcome on GitHub!
分享一个自己开发的开源临时邮箱服务:1m Mail。
无需注册、1 秒生成、即用即销毁,支持部署到自己的域名上。
项目地址:https://github.com/linxk8/-1m-mail
线上体验:https://1m.de5.net (无需注册,打开即可直接体验)
🛠️ 技术栈
前端:原生 HTML / CSS / JS(零框架,轻量极致)
后端:Hono + Cloudflare D1
收信机制:Cloudflare Email Routing (Catch-all)
应用形态:支持 PWA 安装,离线可打开
✨ 核心亮点与特色
⚡ 极致收信体验:1 秒生成地址、4 秒自动轮询收信、验证码(OTP)自动提取识别与高亮放大,点击一键复制。
🎨 Crystal Lumière 设计语言:
柔和视觉:暖纸底色搭配电光靛蓝、珊瑚粉与翡翠绿,配合玻璃拟态卡片、柔和光斑与颗粒噪点,视觉舒适不刺眼。
首屏双态无缝切换:生成器形态(纸飞机)与收件箱形态(水晶信封)采用纯 CSS 0.9s 交叉淡入动画,实现“发信→收信”的视觉闭环。
单页无刷新:生成与收件箱在首屏翻转切换,右侧配备拟真邮件推送卡片与鼠标视差效果。
⏳ 倒计时与品牌化仪式感:
提供 10 分钟 / 1 小时 / 24 小时多种有效期及一键续期功能,剩余 5 分钟红字预警。
邮件到期自动彻底销毁;公开链接过期或不存在时,跳转专属品牌 404 / 410 页(非冷冰冰的原生报错)。
🔒 安全与隐私保护:
到期自动销毁且零数据保留。
内置 CSP 策略阻断邮件外链追踪像素。
预设 70+ 系统保留名(如 admin、noreply 等),防止敏感词滥用。
📱 细致排版与性能优化:
采用 Bricolage Grotesque + Noto Serif SC + JetBrains Mono 字体,中西文混排细节统一。
移动端单列重排,响应式良好。图片资源基于 AVIF/WebP/PNG 自动按浏览器兼容性降级。
欢迎大家体验与部署,有任何建议或 Issue 欢迎在 GitHub 提出!
Translated by AI from 简体中文Original (简体中文)
10 replies
Sort order