Disposable email generator with a Tunisian-flag design (red/white, star & crescent, olive branch), bilingual Derja/French copy, built with Next.js 14 (App Router + TypeScript + Tailwind).
No backend, no API key: the app talks to api.mail.tm directly from the
browser.
npm install
npm run devOpen http://localhost:3000.
- On load, it generates a random address like
harissa482@<domain>using a domain fromGET /domains, creates an account (POST /accounts), and gets a bearer token (POST /token). - The session (address/password/token) is kept in
localStorageso a reload doesn't lose your inbox. - The inbox polls
GET /messagesevery 8 seconds. - Clicking a message fetches the full body via
GET /messages/{id}and marks it read (PATCH /messages/{id}). - "Nouveau" deletes the current account and generates a fresh one.
app/ layout, global styles, main page (client component)
components/ EmailCard, InboxList, MessageModal, StarCrescent, OliveBranch
lib/mailtm.ts typed mail.tm API client + Tunisian random-address generator
Made by @devpayoub.
Note: This project uses the free mail.tm API and does not require an API key.