Skip to content
Projects

CutTheCrapTech/email-gateway-cloudflare

View on GitHub

CutTheCrapTech/email-gateway-cloudflare has 29 GitHub stars and 1 forks. GitHot measured 0 stars in 24 hours, 0 in 7 days, and 0 in 15 days. Last checked 2026-11-14 01:58 UTC. Last push 2026-11-02.

How these counts are measured

What you can do

  • Secure Alias Generation: Cryptographically secure aliases using HMAC-SHA256.
  • Spam Protection: Your email gateway (Cloudflare Worker) rejects emails sent to non-verified aliases, effectively stopping spam from dictionary attacks.
  • Cross-Browser Support: Browser extensions for both Chrome and Firefox.
  • Easy Development: A unified development environment with shared tooling and commands.

Measured star growth

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
Collecting history

Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.

About

A project containing a Cloudflare Worker for secure email forwarding and sanitization. It integrates email-alias-core and email-scrubber-core to form a complete private email gateway on Cloudflare. Also contains email-alias-core and browser extensions as a part of this monorepo

Security

README.md

Original

Email Gateway

This monorepo contains the core components for a secure, verifiable email alias system designed for custom domains. It allows you to generate unique email aliases on the fly, protecting your real email address from spam and tracking.

Packages

This repository is a monorepo managed by npm workspaces and includes the following packages:

Package Description
packages/browser-extensions Browser extensions for Firefox & Chrome that generates secure, verifiable email aliases.
packages/cloudflare-worker A Cloudflare Worker that acts as the email gateway, validating and forwarding emails.
packages/email-alias-core A zero-dependency library for creating and verifying the HMAC-based email aliases.

Features

  • Secure Alias Generation: Cryptographically secure aliases using HMAC-SHA256.
  • Spam Protection: Your email gateway (Cloudflare Worker) rejects emails sent to non-verified aliases, effectively stopping spam from dictionary attacks.
  • Cross-Browser Support: Browser extensions for both Chrome and Firefox.
  • Easy Development: A unified development environment with shared tooling and commands.
  • CI/CD Integration: Automated checks for code quality, testing, and building.

Getting Started

Prerequisites

Installation

  1. Clone the repository:

    git clone https://github.com/CutTheCrapTech/email-gateway-cloudflare.git
    cd email-gateway-cloudflare
    
  2. Install dependencies from the root of the monorepo:

    pnpm install
    

Development

This monorepo uses pnpm workspaces to manage the packages. Commands can be run for all packages from the root directory.

Available Scripts

The following scripts are available in the root package.json and can be run with pnpm run <script_name>:

Script Description
version Bumps versions via changesets and then runs post-versioning steps.
postversion Runs the 'postversion' script in all packages (e.g., to sync manifest versions).
publish Runs changeset publish.
clean Clean build artifacts in dist/ directories.
build Clean and build all packages.
type-check Check TypeScript types for source files only.
type-check:test Check TypeScript types for test files only.
type-check:all Check TypeScript types for both source and test files.
format Format code using Biome.
lint Check code quality and formatting using Biome.
lint:fix Fix auto-fixable linting issues.
lint:unsafe_fix Fix auto-fixable linting issues including unsafe fixes.
lint:ci Run Biome in CI mode (stricter).
test Run tests for all packages.
check Run all checks (types, lint, tests) - for development.
check:ci Run all checks (types, lint, tests) for CI/CD.
ci Run all CI checks including build - for CI/CD.
validate Run all CI checks including build - for dev - similar to CI above but sequential.
upgrade Upgrades dependencies using pnpm.

Project Structure

email-gateway-cloudflare/
├── packages/
│   ├── browser-extensions/ # Browser extension source
│   ├── cloudflare-worker/  # Cloudflare worker source
│   └── email-alias-core/   # Core library source
├── .github/                # GitHub Actions workflows
└── ...

License

This project is licensed under the MIT License. See the LICENSE file for details.

Contributing

Contributions, issues, and feature requests are welcome. Feel free to check the issues page. Please open an issue first to discuss the changes.

Before submitting:

  1. Ensure everything passes using: pnpm run validate
  2. Create a changeset: npx changeset

Explore related projects