Skip to content

Repository files navigation

Mail Wa9ti 🇹🇳 — البريد الوقتي

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.

Run it

npm install
npm run dev

Open http://localhost:3000.

How it works

  • On load, it generates a random address like harissa482@<domain> using a domain from GET /domains, creates an account (POST /accounts), and gets a bearer token (POST /token).
  • The session (address/password/token) is kept in localStorage so a reload doesn't lose your inbox.
  • The inbox polls GET /messages every 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.

Structure

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

Attribution

Made by @devpayoub.

Note: This project uses the free mail.tm API and does not require an API key.

About

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

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages