opensourceprojects.dev

A broadsheet for software that doesn't ask for your email

Create unique email addresses that forward to your real inbox
GitHub RepoImpressions357

Project Description

View on GitHub

Hide Your Real Email Without the Hassle

We've all been there. You need to sign up for a service, but you don't fully trust it with your primary email. Maybe it's a one-time download, a sketchy-looking forum, or a shopping site you know will spam you. You could create a burner Gmail, but that's a whole process. Wouldn't it be nice to just make up a unique email on the spot that still forwards to your real inbox?

That's the exact itch that the hide-my-mail-cloudflare project scratches. It's a clever, self-hosted solution that turns your domain into an infinite supply of disposable email addresses.

What It Does

In short, this project is a Cloudflare Worker that acts as an email gateway. You point your domain's email (using Cloudflare Email Routing) to this worker. The worker then creates a rule: any email address at your domain (e.g., [email protected], [email protected]) will be caught, processed, and forwarded to your actual, private email address.

The magic is in the "any" part. You don't pre-create these addresses. You just invent them when you need them. Signing up for a newsletter? Use [email protected]. The first time a message is sent to that address, the system creates the forwarding rule on the fly.

Why It's Cool

The implementation is what makes this stand out. It's not a bulky app; it's a single, serverless function living on Cloudflare's edge network. This means it's cheap (likely free under the Workers free tier), fast, and requires no maintenance of a server.

It also gives you back control and insight. Since you're using your own domain, you can instantly identify who sold your data. Getting spam to [email protected]? You know exactly which retailer is to blame. You can then block that specific alias without affecting any other forwarded emails.

It’s a perfect example of using modern, serverless infrastructure to solve a common privacy problem with minimal code and maximum elegance.

How to Try It

You'll need a domain and a Cloudflare account (with your domain's nameservers pointed to Cloudflare).

  1. Fork or clone the repository: Head over to the hide-my-mail-cloudflare GitHub repo.
  2. Deploy the Worker: The README has detailed steps. You'll use Wrangler (Cloudflare's CLI tool) to deploy the JavaScript Worker.
  3. Configure Cloudflare Email Routing: In your Cloudflare dashboard, enable Email Routing for your domain and set the destination to your newly deployed Worker.
  4. Start inventing emails: That's it. Start using [email protected] when you sign up for things. The first email sent to that alias will set up the forward.

Final Thoughts

As a developer, I love tools that are simple, effective, and leverage platforms intelligently. This isn't just a useful privacy hack; it's a great learning project for anyone wanting to see a practical, real-world use case for Cloudflare Workers and Email Routing. It solves a genuine problem with a clean, automated solution. If you've got a domain sitting around, setting this up is a weekend project that pays off in daily convenience and a bit more control over your digital identity.


Found this interesting? Follow @githubprojects for more tools and projects from the community.

Back to Projects
Project ID: b9269cd7-641b-4ee9-b156-8a39869a7fb7Last updated: February 2, 2026 at 06:32 AM