One source of truth behind a static app
The second version of Where Should I Live keeps every city in a headless back end and builds the static app from it, with a check that blocks the build if anything fails.
Adding a city to the first version of Where Should I Live meant editing six or seven JavaScript files by hand. The app ranks cities by tax, costs and visas, and its data lived in those files.
For the second version I wanted a real back end, where data is validated before it’s written and every change can be reviewed. I also wanted to keep the front end static, so ranking cities still needs no server.
Where the data lives
A headless back end gave me both. It holds every city, tax regime and visa rule, and the app is static files built from that data. The tax, scoring and visa calculators came over from the first version with their tests, and the back end serves them data in the shape they already expect. When I moved the first version’s data across, every city and every tax table matched.
Checked before every release
Every change to the data, such as new tax bands or a new city, waits for me to read it and accept it. Then the real calculators run over every country and city, and the household tests confirm that a single person’s figures haven’t moved. If anything fails, nothing is built.
New cities in October
In October 2026 I added 13 cities this way, each as one checked change, taking the app from 65 to 78: Madrid, Barcelona, Larnaca, Limassol, Porto, Milan, Athens, Zug, Andorra la Vella, Douglas, Abu Dhabi, Doha and Miami. Four of them, in Greece, Andorra, the Isle of Man and Qatar, needed new tax regimes and visa rules.
More on Where Should I Live
Featured projects
-
Apple News API
Publish articles and live coverage to Apple News from PHP, with the whole Apple News Format built from objects.
-
GitHub Auditor
Health, access and activity reports for more GitHub and Bitbucket repositories than you can keep in your head.
-
PrintMD
Markdown in, and a designed PDF, Word or PowerPoint file out. Its PDF service runs on your own computer.
-
Solar Calendar
Thirteen months of exactly four weeks, with the year starting on the first Monday on or after the spring equinox.
-
TurboPush
Resumable uploads of very large files from the browser, put back together by one PHP class on the server.
More writing
-
Many sessions at once, and what still needs me
Fifteen coding-agent sessions across two Linux boxes, one session that watches the rest, what it may answer for me, what it never may, and why a yes it passes on gets checked against what I typed.
-
61 public repos of agent tooling, none installed, six ideas kept
One author, 61 public repositories of coding-agent tooling: what I checked before any of it got near my Linux boxes, why none of it was installed, and the six ideas I built my own way.
-
Rules a coding agent cannot talk its way round
The hook that reads every command a coding agent wants to run on my Linux boxes: what it refuses, the 27 proofs that its tests fail when a rule is taken out, and the four lines every report opens with.
-
Dozens of repos, one person
46 repositories and two Linux boxes with nobody else on them: the diary, the decision table, the rebuild guide and the job that keeps both sets of clones in step.