π The World's Most Relaxing Temp Mail Experience
Zero popups β’ Auto-refresh β’ Dark mode β’ OTP copy β’ No signup β’ Unlimited
A minimalist, open-source temporary email application that generates disposable email addresses instantly. Built with vanilla JavaScript and powered by the 1secmail API, TempMail Pro delivers a clean, ad-free experience with zero popups, automatic inbox refreshing, and smart OTP detection β all without a single signup.
| Feature | Description |
|---|---|
| π One-Click Generate | Instant disposable email β no signup, no delay |
| π Silent Auto-Refresh | Inbox auto-checks every 8s β zero clicks needed |
| π Dark Mode (Default) | Eye-friendly dark theme with one-click toggle, persisted |
| π’ OTP Auto-Detect | Verification codes highlighted in green badges |
| π Click OTP to Copy | Tap any OTP badge to copy code instantly |
| π Message Previews | See email body preview right in the inbox list |
| π― Auto-Copy on Generate | Email auto-copies to clipboard when created |
| πΎ Persistent Storage | Emails survive page refreshes (localStorage) |
| π± Mobile First | Fully responsive on every screen size |
| π« Zero Popups | No annoying notifications β clean, silent UX |
| Feature | TempMail Pro | Other Temp Mail Sites |
|---|---|---|
| π« Popups & Ads | β Zero | β Full of ads |
| π Dark Mode | β Yes (default) | β Rarely |
| π Auto-Refresh | β Silent (8s) | β Manual only |
| π OTP Click-to-Copy | β Yes | β No |
| π Message Preview | β Yes | β No |
| π― Auto-Copy Email | β On generate | β No |
| πΎ Survives Refresh | β localStorage | β Lost |
| π Open Source | β Full code | β Closed |
| π° Pricing | π Free Forever | π΅ Paid limits |
| β‘ Speed | π Instant | π Slow |
# 1. Clone the repository
git clone https://github.com/ImranDev3/tempmail.git
cd tempmail
# 2. Open in browser (no build step needed!)
open index.htmlNote: The API proxy requires Vercel to forward requests to 1secmail. For local testing without the proxy, you can directly use the 1secmail API by modifying API in js/app.js.
# 1. Install Vercel CLI
npm install -g vercel
# 2. Deploy
vercelOr just connect your GitHub repo to vercel.com β zero config needed.
tempmail/
βββ index.html # Main application page
βββ css/
β βββ style.css # Responsive styles (light + dark theme)
βββ js/
β βββ app.js # Core application logic
βββ api/
β βββ proxy.js # Vercel serverless proxy (ESM, timeout 15s)
βββ package.json # ESM module config
βββ vercel.json # Vercel deployment config
βββ README.md # This file
Browser (index.html) β Vercel Proxy (api/proxy.js) β 1secmail API (free)
- User clicks "Generate New Email"
- Vercel serverless function proxies the request to 1secmail API
- A random disposable email is created instantly
- Inbox auto-checks for new messages every few seconds
- OTP codes are automatically highlighted in green badges
- All data persists via localStorage β survives page refreshes
No database. No authentication. No backend infrastructure. Just pure simplicity.
| Fix | Description |
|---|---|
| π Dark Theme Default | Dark mode is now default with no white flash on load |
| β‘ Proxy Timeout | 15s AbortController timeout prevents hanging requests |
| π Dual URL Parsing | Proxy supports both req.query and req.url fallback |
| π¨ Email Cache Fix | Previously cached emails showed "(No content)" β fixed |
| π‘οΈ Error Feedback | Generate failures now show actual error message in toast |
| πΎ Theme Persist | Theme preference properly saves/loads across sessions |
| Technology | Purpose |
|---|---|
| Structure & semantics | |
| Responsive design, animations | |
| Core application logic | |
| Hosting + serverless functions | |
| Temporary email backend |
- β No data stored on servers β all email data is ephemeral
- β No cookies β zero tracking
- β No registration β 100% anonymous usage
- β Open source β fully transparent codebase
- β HTTPS β encrypted connection via Vercel CDN
TempMail is designed for privacy. Use it for:
- Testing email verification flows
- Avoiding spam on signups
- Protecting your real email address
- Quick OTP/code receipts
Contributions are welcome! Here's how:
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing) - Open a Pull Request
This project is MIT licensed β free to use, modify, and distribute.
MIT License
Copyright (c) 2026 ImranDev3
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction...