← calebs.garden

Experience

Systems I've kept running

Eight years, mostly one arc: field and data center work at a Madison tech company, then its web team when that spun out on its own, then one of our clients, a statewide radio network, hiring me as its only developer. Now I run a banking startup's cloud. Below is what each job was and what I owned, then the receipts from the two apps I run myself.

The work I love most is full-stack product work: making something people use, from the screen down to the servers. It's why I made madtown.today and Dungeon Garden. If you're making something like that, say hello. hello@calebs.garden

Now
Infrastructure Engineer, N3XT
Based
Madison, WI · remote
Code
github.com/CRortyDG
Contact
Email

Jobs

  1. Infrastructure Engineer · N3XT

    · Full-time · Remote

    Infrastructure engineer at a blockchain-based banking startup. I came in as an L2 and was promoted to L3 after about ten months.

    What I owned

    • Building and maintaining the cloud infrastructure on GCP, with Kubernetes and Terraform
    • Deployments and the CI/CD pipelines for the organization
    • Developer tooling for the engineering team

    Ran GCP · Kubernetes · Terraform · CI/CD

  2. Software Engineer · Civic Media

    · Full-time · Madison, WI · Remote

    The only developer at a statewide radio network, reporting directly to the CEO.

    What I owned

    • Building and maintaining 25 Next.js applications for the network
    • All of the GCP and Terraform infrastructure under them, the CI/CD pipelines and production operations
    • Project intake, working with a designer, and guiding an external consultant
    • Explaining technical decisions and tradeoffs to non-technical people across the organization

    Ran Next.js · JavaScript · GCP · Terraform · CI/CD

  3. Software Engineer · Design.Garden

    · Part-time Jan – Jun 2021, full-time from Aug 2021 · Madison, WI · Remote

    Full-stack developer and hosting operator at the web team that spun out of 5NINES, managing 150+ client sites.

    What I owned

    • Custom web applications beyond WordPress
    • The WHMCS hosting portal, end to end
    • Client communication from scoping through delivery
    • Training junior staff on WordPress site management, WHMCS and working with clients

    Ran PHP · MySQL · WordPress · WHMCS · Web hosting

  4. IT Specialist · 5NINES

    · Part-time · Madison, WI

    Field operations, infrastructure and helpdesk at a Madison ISP, data center and managed IT company.

    What I owned

    • Installing and aiming point-to-point wireless radios on commercial rooftops in downtown Madison
    • Data center buildouts: switch rewiring and rack cabling
    • Triaging network infrastructure alerts and client support tickets
    • Equipment inventory

    Ran Ubiquiti point-to-point wireless · Switching and cabling · Network monitoring · Helpdesk

Receipts from my own apps

I can't show you my employers' code. I can show you the two things I run in my own time, for real people, on my own bill: Dungeon Garden, a companion for D&D night, and madtown.today, a daily homepage for Madison. Dungeon Garden's code is public, so most of these link straight to it. madtown.today's repository is private.

Dungeon Garden source

Tests and CI
999 tests across 70 files, behaviour-level, no mocks or snapshots, about 12 seconds. GitHub Actions runs the type checks and the whole suite on every pull request and every push to main (the workflow).
Testing the tests
On Nov 17 I had the suite audited by planting 152 bugs and seeing which ones it caught: 86, or 57%. The audit also found the Worker layer had no tests and that there was no CI at all. CI went in that day. The Worker tests haven't yet.
Security
A written audit that starts from a table of every secret, what it unlocks and how hard it is to guess. It added rate limits per screen and per address, a 15-minute lockout after 20 wrong guesses, caps on uploads, game size and open sockets, and a “try to break it” pass that closed five more holes. Tests for the abuse cases are in abuse.test.ts.
Threat model, honestly
There are no accounts, so identity is a link. The DM's key is 192 random bits, stored only as a hash and compared in constant time. A player's name is tied to the first device that signs in with it: trust on first use, which the DM can reset. What the code can't stop is a flood using up the free plan's daily requests; that has to be stopped at Cloudflare's edge, and the audit says so.
Deploys
Every merge to main deploys itself through Cloudflare's Git integration. Every change goes through a pull request, and I merge each one myself: 152 so far. TVs left open on game night reload themselves after a deploy, between moments, so nobody is stuck on old code.
Backups and recovery
Each campaign is its own Durable Object with its own SQLite. The DM can download the whole game and its ledger as JSON and restore it from that file. There's no backup job of my own beyond that yet. Campaigns untouched for six months are deleted, with their images.
Cost and capacity
A capacity report before launch, and a meter in the DM's settings that counts what each game actually uses against Cloudflare's limits. I don't publish a capacity number until real games fill it in (Build the meter first).

madtown.today

Tests and CI
111 unit test files and 31 Playwright end-to-end specs. CI runs lint, unit tests and a build on every ready pull request, and the end-to-end suite on pull requests into main, against a throwaway Redis behind the same REST emulator I use locally. It's budgeted around the 2,000 Actions minutes a month the plan includes.
Where CI is now
Red on main since 4 November, though no code was broken: lint passed, and 1,496 tests passed with 2 failing. Those 2 check that the repo holds puzzle and question files for the next 14 days. New days are now written and published from the admin page, so the repo's files stop at 16 November and those tests can't see the live schedule. A pull request in review turns them into a warning, so a short runway still gets flagged without failing the build.
Staging
Features go to a dev branch, which deploys to its own address with its own database, then reach production in a release pull request; hotfixes go straight to main and back. Every non-production deploy shows a strip naming its environment, and the strip turns red and says “connected to prod Redis” if a preview is ever pointed at live data.
Players' data
Streaks live only in each player's browser, and no backup can bring them back. So any change to a saved-game format has to read the old one too, and gets tried on staging first.
Cost
I read the invoices line by line. Most of the bill turned out to be a monitoring add-on and a tab asking the server for news every four seconds, not the thing I'd assumed (What madtown.today actually costs).

Two incidents

Both from Dungeon Garden, both found by using it rather than by a test, and both fixed in public.

The dice that wouldn't leave the TV

What happened
A dice roll shown on the TV sometimes never went away.
First fix
Each overlay set its dismiss timer in an effect keyed on the whole view, and every state update made a new view, which cancelled the timer. Keying it on the moment's id fixed it (#47).
It came back
The fix was deployed, and the dice still stuck. TV tabs opened before the deploy were still running the old JavaScript. So the TV now notices a new build and reloads itself between moments, and the DM got a Clear TV button for anything else (#50).
Taken from it
A fix isn't shipped until the screens already open have it.

“Slow down” at a table on one Wi-Fi

What happened
The DM kept getting “Too many requests” while approving purchases, without clicking quickly.
Cause
The rate limit counted per address, and a whole table shares one Wi-Fi address. I measured it: a DM, a TV and four phones made about 30 calls a minute in all, so no client was looping. The limit was simply keyed on the wrong thing.
Fix
The limit is now per screen (address, campaign and player), with a higher ceiling per address, and screens back off for half a minute on a 429 instead of retrying (#62).

How I build with AI

Claude Code writes most of the code in Dungeon Garden and madtown.today. I'm not going to apologise for that, and I don't think it's the interesting part. The interesting part is what stays mine: