Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Latest commit

Β 

History

23 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation


TempMail Pro

πŸ“§ TempMail Pro

πŸ† The World's Most Relaxing Temp Mail Experience

Zero popups β€’ Auto-refresh β€’ Dark mode β€’ OTP copy β€’ No signup β€’ Unlimited


Live Demo Open Source Stars


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.


✨ Premium Features

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

πŸ₯‡ Why TempMail Pro is Better

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

πŸš€ Quick Start

Run Locally

# 1. Clone the repository
git clone https://github.com/ImranDev3/tempmail.git
cd tempmail

# 2. Open in browser (no build step needed!)
open index.html

Note: 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.

Deploy on Vercel

# 1. Install Vercel CLI
npm install -g vercel

# 2. Deploy
vercel

Or just connect your GitHub repo to vercel.com β€” zero config needed.


πŸ“ Project Structure

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

πŸ› οΈ How It Works

Browser (index.html) β†’ Vercel Proxy (api/proxy.js) β†’ 1secmail API (free)
  1. User clicks "Generate New Email"
  2. Vercel serverless function proxies the request to 1secmail API
  3. A random disposable email is created instantly
  4. Inbox auto-checks for new messages every few seconds
  5. OTP codes are automatically highlighted in green badges
  6. All data persists via localStorage β€” survives page refreshes

No database. No authentication. No backend infrastructure. Just pure simplicity.


πŸ“¦ Recent Improvements (v1.0.1)

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

πŸ’» Tech Stack

Technology Purpose
HTML5 Structure & semantics
CSS3 Responsive design, animations
JavaScript Core application logic
Vercel Hosting + serverless functions
1secmail Temporary email backend

πŸ”’ Privacy & Security

  • βœ… 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

🀝 Contributing

Contributions are welcome! Here's how:

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing)
  5. Open a Pull Request

πŸ“„ License

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...


Made with ❀️ by ImranDev3


About

World's most relaxing temp mail - zero popups, dark mode, OTP copy, auto-refresh, unlimited and free.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages