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.

A flow from a headless back end to static files to a highlighted release check and then the app, with the check also leading to “Any drift: no build”. A flow from a headless back end to static files to a highlighted release check and then the app, with the check also leading to “Any drift: no build”.

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

All writing about Where Should I Live

Featured projects

All projects

More writing

All writing