How mehmetkahya0/temp-mail works
Project type and purpose
• This is a static, client-side web application (a “single-page-app” style) that runs entirely in the browser.
• It provides disposable email addresses by calling an external email-service API (Guerrilla Mail).
• It uses HTML5/CSS3/ES6 modules, persists user preferences in localStorage, and is hosted as a Progressive Web App (via manifest.json, GitHub Pages, or any static server).
File structure
• Top-level assets:
• index.html – main entry point
• manifest.json – PWA metadata
• robots.txt, sitemap.xml – SEO & crawler instructions
• Directories:
• css/style.css – theming & responsive styles (dark/light via CSS variables)
• js/api.js – encapsulates all HTTP calls to the Guerrilla Mail API
• js/config.js – constants (API_BASE, DOMAINS, refresh intervals)
• js/theme.js – toggles theme, reads/writes localStorage
• images/ – static UI assets
• privacy/ – static privacy-policy page
• No backend code or database—everything runs in the browser; external services are used for email operations.
README for additional insights
• Confirms Tech Stack: HTML5, CSS3, JavaScript ES6 modules, localStorage, Font Awesome
• Core components described:
• Email Generation System (pseudorandom + Guerrilla Mail API)
• Theme Engine (CSS variables + JS + localStorage)
• Inbox Management (auto-refresh, search, view/delete, attachments)
• Deployment: PWA via GitHub Pages / live-server