Built overnight. Almost.
One night for the foundations, one more for the site, and a rescue cat with merge rights. Decisions, trade-offs and the bugs that bit, from building almostchilled°.
Some people binge a series overnight. I binged a production platform.
One evening I owned an idea, a domain name and three cats. About thirty-six hours later, almostchilled.com had DNS as code, signed commits, a contact API at the edge, six security headers, three security scanners, browser tests in three engines, and a Lighthouse score that won’t go below 95. It costs $0 a month to run.
Was it overnight? The foundations were. The site took one more night. Hence the “Almost”. Here’s the whole run: the decisions, the trade-offs, and the bugs that bit. Steal anything useful.
Act I · The first night: foundations
21:00 · Picking a registrar
I compared GoDaddy, Hostinger and Cloudflare. The first two had great first-year prices, higher renewals, and a checkout full of add-ons I didn’t ask for. Cloudflare sells domains at cost. The renewal price is the price, WHOIS privacy is free, and DNSSEC is one click. DNS, TLS and hosting live in one account, so there’s one front door to lock.
How-to: verify the ICANN email the moment you buy. An unverified domain gets suspended after 15 days.
21:40 · Locks before lights
Before anything fun: two-step sign-in, auto-renew and DNSSEC. Then three zone settings: SSL Full (strict), Always Use HTTPS, and TLS 1.2 as the floor. Security you add later is security you forget.
22:30 · Email, the humbling part
Google Workspace for jp@almostchilled.com, plus a few aliases. MX, SPF and DKIM went in, and DMARC went straight to p=reject. My first test mail still landed in spam. A three-hour-old domain with no website looks exactly like a spammer. Reputation is a lagging indicator.
How-to: open the mail in Gmail and pick “Show original”. If SPF, DKIM and DMARC all say PASS, your setup is right. Now you wait.
23:15 · A laptop that signs everything
Password manager, authenticator, Homebrew, git, gh, Node 24 through fnm, pnpm and Terraform. A GitHub org with a verified domain, and four private repos: .github, docs, www and platform. Every commit is signed with an SSH key, and unsigned commits get flagged. They stand out like a hot take at a cold brew tasting.
00:10 · Keys with the least power
Every Cloudflare API token does one job: one deploys from CI, one runs Terraform on my laptop, and one lets CI read a plan, nothing more. On the laptop, secrets live in the macOS Keychain and reach Terraform for one command only. Then I took a screenshot with my password manager open behind the terminal, and part of a key was in it. Rotated on the spot.
How-to: close every secret before a screenshot. Rotating a key takes two minutes. Explaining a leak takes a quarter.
01:00 · DNS as code
Clicking records in a dashboard works until it doesn’t. cf-terraforming generated code for the six records, and I wrote the three zone settings by hand. The first plan read: 9 to import, 0 to add, 0 to change, 0 to destroy. Zero° drama. And the mail records can’t be deleted by accident:
resource "cloudflare_dns_record" "google_mx" {
# …generated by cf-terraforming…
lifecycle {
prevent_destroy = true
}
}
The state lives in R2 with a lock file. Plans run on branches. Applies run only from main.
02:30 · The 109 MB surprise
My first push bounced. GitHub rejected a 109 MB file: a full copy of Terraform that cf-terraforming had quietly downloaded into my repo.
How-to: always pass --terraform-binary-path, and read git status line by line before every commit.
05:17 · A robot that checks for drift
CI plans every PR, and runs a drift check every morning at 05:17 UTC, with read-only credentials. If anyone changes DNS in the dashboard, I know by breakfast.
Act II · The second night: the site
Built hot, served chilled
I prototyped three hero directions and picked the loud one: huge condensed type, glyph pills inside the headline, and a flame that cools into ice as you scroll. That’s scroll-driven CSS, with no JavaScript. Every color, size and easing is a design token, and every color is OKLCH. On Apple devices the display font is Avenir Next Condensed, and the site never downloads it: it borrows the copy your device already has. Everywhere else it’s Nunito Sans, squeezed to 75% width.
An ice cube with a degree
The logo is a hand-tuned SVG cube with a ° ring. In the nav, it drops in once per visit, lands with a squash and a puff of frost, and the wordmark freezes in from left to right. In the footer, the cube melts. Drops run down its faces, stick, slip, and ripple a puddle that reflects the cube. The reflection is real geometry: each side face is a parallelogram on the isometric ground plane, so skewY(±29.539°) turns it into a plain rectangle that a gradient can fade. Yes, I did trigonometry for a footer.
Five messages an hour, at the edge
Static pages never run code. One block of the Worker’s config makes sure of it:
"assets": {
"directory": "./dist",
"not_found_handling": "404-page",
"run_worker_first": ["/api/*"]
}
Only /api/* wakes the Worker. It’s a Hono app with Zod validation, a honeypot, a Turnstile check, and a limit of five messages per hour per IP. The limit counts rows in D1 against a salted hash of the address, never the address itself. Then the message is stored, and Resend emails me through an interface I can swap. If the email fails, the message is already safe, and an hourly cron retries it. After 90 days, messages delete themselves.
Quality gates that block merges
Every PR gets its own preview URL and a wall of checks:
- Playwright smoke tests in Chromium, Firefox and WebKit.
- axe on every page, in light and dark: zero violations.
- Visual baselines at three widths and two themes, made in CI so the fonts match.
- Lighthouse on six pages, three runs each: 95 or more in every category, LCP under 2 seconds, layout shift under 0.05.
- A 50 KB JavaScript budget for the home page. It ships about 5.
A red check means no merge. On GitHub’s free plan nothing enforces that, so I do.
Security headers, no unsafe-inline
The Content-Security-Policy allows an inline script only by its SHA-256 hash. A small Astro integration hashes every inline script at build time and writes the hashes into the headers file:
Content-Security-Policy: default-src 'self'; script-src 'self' 'sha256-…' https://challenges.cloudflare.com; object-src 'none'; frame-ancestors 'none'
Add HSTS, nosniff, a strict referrer policy, a permissions policy and COOP. Three scanners run on every PR: gitleaks reads the whole git history, Semgrep reads the code, and OSV-Scanner reads the lockfile.
The incident log
Senior engineers don’t ship fewer bugs. They write better postmortems. Mine, one line each:
- The flame wouldn’t cool. The
animationshorthand resetsanimation-timeline, and the minifier reordered my properties. Fix: longhands only. - The snow fell in the wrong place. On a Retina screen the canvas drew at twice its size, because it had no CSS size. Fix: a CSS size, then a buffer of that size times
devicePixelRatio. - A box appeared around my logo. I’d named an SVG path
outline. Tailwind thought I wanted itsoutlineutility and drew a 1-pixel square around it. Fix: every class inside an SVG starts withice-. - A one-click button went around Terraform. Resend’s auto-configure wrote three DNS records straight into Cloudflare. Fix: imported them into Terraform the same day, without changing a byte.
- The preview’s form had a site key called
<paste the Turnstile site key>. I ran a command with the placeholder still in it. Fix: let tools prompt for values. Never put a placeholder inside a command. - Linux doesn’t have Avenir. CI measured a layout shift of 0.063 on this very post, because the fallback fonts were the wrong size. Fix: fallback faces with measured metrics:
@font-face {
font-family: "Geist Fallback";
src: local("Arial"), local("Liberation Sans");
size-adjust: 103%;
ascent-override: 97.5%;
descent-override: 28.6%;
line-gap-override: 0%;
}
- The network never went quiet. In CI, the real Turnstile widget kept a connection open, so tests that waited for
networkidlewaited forever. Fix: a stub for Turnstile in tests, and wait forloadand the fonts. - Security cost me 0.4 seconds. Forcing scripts out of the HTML also stopped Astro from inlining small stylesheets, and LCP crossed 2 seconds. Fix: inline again, and hash every inline script instead.
By the numbers
- $0 a month to run.
- 9 DNS records, all in code.
- 100% signed commits.
- About 5 KB of JavaScript on the home page.
- 95+ Lighthouse on every page, enforced in CI.
- Layout shift on this post: 0.063 before the font fix, zero after.
- 3 browser engines, 6 security headers, 3 scanners.
- Lines of YAML: too many.
- Cats: 1. Merges she approved: all of them.
The bill
The site costs nothing to run. The domain and the Workspace mailbox are the only bills.
What I’d tell you
- Write the decision down before you make it. Every choice here has an ADR, and every step has a runbook entry. At 2 a.m., future-you reads them like a stranger would.
- Put budgets in CI, not in your head. A number that fails a build gets respected.
- Make the boring parts boring: DNS as code, least-privilege keys, a preview for every PR, one-command rollback.
- Treat your AI pair programmer like a fast junior with no memory. Give it the docs, small tasks and a strict review. It typed most of this code. I made the calls.
- Fix the root cause, then write the one-line postmortem. It’s the cheapest documentation you’ll ever write.
Hot ideas. Cool execution. Evaa approved this post. She sat on the keyboard to say so.