Tempik is a self-hosted disposable email service that runs entirely on Cloudflare Workers using Cloudflare Email Workers for inbound email, D1 for storage, and a clean web UI served from the edge.

Stars

74

7-day growth

No data

Forks

42

Open issues

0

License

MIT

Last updated

2026-06-26

AI repository intelligence
FR-AI / ANALYSIS

Why it is worth attention

It provides a completely serverless, zero‑cost disposable email solution that runs on Cloudflare's free tier without requiring VPS, Postfix, or Docker, and can be deployed with a single wrangler command.

Who it is for

  • Developers who need temporary email for testing signups or integrations
  • Privacy‑conscious users who want to avoid spam or protect their personal email
  • Self‑hosting enthusiasts looking for a lightweight, edge‑deployed email service
  • Cloudflare users who want to leverage Workers, D1, and Email Routing together

Use cases

  • Creating temporary addresses for website registration or app testing
  • Isolating email traffic for automation or CI/CD pipelines
  • Providing disposable email inboxes for privacy during online forms or trials
  • Learning or demonstrating Cloudflare Workers and D1 capabilities

Strengths

  • Runs entirely on Cloudflare's free tier with zero operational cost
  • Simple deployment via `wrangler deploy` with minimal configuration
  • Edge‑delivered UI and fast email processing using Workers and D1
  • Built with TypeScript, Hono, and PostalMime for modern, maintainable code

Considerations

  • Requires a custom domain with nameservers pointed to Cloudflare
  • Depends on Cloudflare's free tier limits (Workers CPU time, D1 storage, email routing quotas)
  • The `[email]` field in wrangler.toml may produce a cosmetic warning during deployment

README quick start

Tempik — Disposable Temp Mail on Cloudflare Workers

Tempik is a self-hosted disposable email service that runs entirely on Cloudflare Workers — no VPS required. It uses Cloudflare Email Workers to receive inbound email, D1 for storage, and serves a clean web UI from the edge.

Repo: github.com/hirotomasato/tempik


How it works

Sender → Cloudflare MX → Email Worker (email handler)
                                  │
                                  ▼
                          D1 Database (SQLite)
                                  │
                                  ▼
                   Worker HTTP handler → Web UI + API
  • No VPS — everything runs on Cloudflare's edge
  • No Postfix — Cloudflare Email Workers handle SMTP ingestion natively
  • No Docker — just wrangler deploy
  • Zero cost — fits within Cloudflare's free tier

Prerequisites

Before you start, you need:

RequirementDetails
Cloudflare accountSign up here (free)
A domainMust be added to Cloudflare (nameservers pointed to Cloudflare)
Node.jsv18 or later (download)
npmComes with Node.js

Step 1 — Clone & install dependencies

git clone https://github.com/hirotomasato/tempik.git
cd tempik
npm install

Step 2 — Login to Cloudflare

npx wrangler login

This opens a browser window. Log in with your Cloudflare account and approve the OAuth scopes.

What scopes are needed? Wrangler will request permissions for Workers, D1, Email Routing, Pages, and more. You must approve all of them so the CLI can create the database and deploy the worker.

Verify you're logged in:

npx wrangler whoami

Step 3 — Configure wrangler.toml

Open wrangler.toml and replace the placeholder values with your own:

name = "tempik"
main = "src/index.ts"
compatibility_date = "2025-06-01"

# Set to false when using your own domain (skip workers.dev)
workers_dev = false

# D1 Database — leave database_id empty for now, we'll fill it in Step 4
[[d1_databases]]
binding = "DB"
database_name = "tempik-db"
database_id = ""

# Email Worker
[email]
action = "process"

# Custom domain — CHANGE THIS to your own domain
[[routes]]
pattern = "tempik.YOU

Description

Tempik is a self-hosted disposable email service that runs entirely on Cloudflare Workers

Related repositories

Similar projects matched by category, topics, and programming language.

TanStack
Featured
TanStack GitHub avatar

router

TanStack Router is a type-safe, data-driven React router with built-in caching, prefetching, and nested layouts, while TanStack Start extends it into a full-stack SSR framework.

Web DevelopmentFrontend Frameworks
14,861
vercel-labs
Featured
vercel-labs GitHub avatar

scriptc

scriptc compiles ordinary TypeScript into small, fast native executables without needing Node.js, V8, or any JavaScript runtime in the binary.

Developer ToolsCode Quality & Build
1,985
Jakubantalik
Featured
Jakubantalik GitHub avatar

thinking-orbs

A React component library that renders six hand-tuned animated thought orb loading indicators on a plain 2D canvas, with two purpose-tuned sizes and automatic theme detection for AI and agent UIs.

AI & Machine LearningAI Agents
1,191