← All writing

The whole stack for $0, and the one date I can't forget

Keyhaven runs on free plans only: Cloudflare Pages, Workers, D1 and Email Routing, a free domain and Brevo. Here is every limit, what resets each day, what never does, and the yearly renewal that keeps it all working.

·4 min read
Every piece of Keyhaven on one picture: a free domain, Cloudflare services, Brevo for sending, and my devices.

When I started Keyhaven, I gave it one rule besides “only for me”: free plans only, and no card on file anywhere.

It runs, today, for $0 a month. Here’s every piece, its limits, and the one thing that isn’t automatic.

Every piece and its free plan

All checked on 3 November 2026, except the free-number sites and the currency rates, added on 5 November:

Piece Free plan What Keyhaven uses it for
Cloudflare Pages + Functions 100,000 requests a day (shared with Workers), about 10 ms of CPU per request the site, the phone app and the server side
Cloudflare Workers 100,000 requests a day; 50 outgoing calls and 50 database queries per run the mail Worker: one run per mail, one clean-up a day, and since 1.14.0 a short run every 15 minutes (96 a day)
Cloudflare D1 500 MB per database; 5 million rows read and 100,000 written a day everything: the vault, the aliases, the mail (in 1.5 MB pieces)
Cloudflare Email Routing free, messages up to 25 MiB receiving mail (it stops at 10 MB)
Cloudflare DNS free the domain’s records, for receiving and sending
Brevo 300 mails a day sending from aliases, and its read-only events log for the delivery status in Sent
Resend (the backup) 3,000 mails a month, 100 a day sending, if Brevo isn’t set up
Public temp-mail services free, no key optional throwaway aliases (which ones)
Public free-number sites free the optional Free numbers page, for throwaway sign-ups (public: anyone can read those texts)
Have I Been Pwned free, no key the optional leak check
ExchangeRate-API’s open rates free, no key the converter’s currency rates, which my own server asks for at most once in 12 hours
A free domain registrar a free domain the address every alias lives on

What’s not on the list matters too. R2, Cloudflare’s file storage, would have been the obvious place for mail, but it wants a card on file even for its free tier. So mail lives in the database instead, cut into pieces that fit a row (how).

What resets every day

  • requests: 100,000 a day, for the site and the mail Worker together
  • database reads and writes: 5 million rows read, 100,000 written
  • sending: Brevo’s 300 a day (Resend’s 100, if I used it)

For one person, these are nowhere near. Opening the app and unlocking the vault is about 30 requests (184 before 1.18.1 bundled the first screen). A mail arriving is one Worker run and a few writes. Even a busy day for me is a rounding error against 100,000.

What never resets

These are the limits that actually shaped the code:

  • 10 ms of CPU per request. That’s why the slow password maths runs on my device and not on the server (the key split), and why mail bodies leave the database as text the database itself makes, with no per-byte work on the server.
  • 50 queries per run. Big writes go in batches.
  • 2 MB per database row. Hence the 1.5 MB pieces.
  • 500 MB per database. That’s an enormous number of passwords, but not that many mails with big attachments. The “delete mail after N days” setting is there for that, and it’s the first thing I’d turn on if space ever got tight.

A free plan isn’t a smaller paid plan. It’s a different shape, and the code has to fit the shape.

The one date I can’t forget

Every piece above keeps running by itself. If I didn’t touch Keyhaven for a year, the site would still be there, the Worker would still receive, and the clean-up would still run every night.

Except one: the domain. My free domain is registered a year at a time, and it has to be renewed. Still free, but it doesn’t happen on its own.

If I forget, it’s not just “the aliases stop working”. That’s the mild version: mail to them bounces, and sign-up codes stop arriving. The bad version is what happens next. An expired name can be registered by someone else. They could point it at their own mail server and receive mail for every alias I’ve ever used, including the “reset your password” mails for the accounts behind them.

The vault itself would be fine: it lives at a different address, and it’s encrypted anyway. But the aliases are how I prove to a lot of sites that I’m me.

So the plan is boring on purpose:

  • a calendar reminder a month before the domain runs out, and a second one a week before
  • renew as early as the registrar allows, not on the last day
  • check, after renewing, that a test mail still reaches an alias

Total cost: $0 a month. The real price is one date in my calendar, once a year.