How this site is built
This site is a static site built with Astro.
Originally Harry built the site with Bootstrap and some gnarly jQuery soup, which made it slow and expensive. Thankfully, Tommy got involved and changed all that, with Next.js and Tailwind. In 2026 it was rebuilt again so it could keep up with councils being created, merged and abolished.
Councils
Every council the site knows about, past, present and scheduled, is in one data file. It started from the government's open registers of local authorities in England, Northern Ireland, Scotland and Wales, which were switched off in 2021. Each council is matched to its ONS code.
Reorganisations are dates in that file, so the site works out what's current each time it's built. When a council is abolished its bin moves to Retro, and its page points to whoever took over.
The map
The map is drawn when the site is built, from ONS boundaries for 2022. Councils created since then are drawn by joining together the councils they replaced.
Hosting and privacy
Hosted on Netlify, the site counts page views and visitors using aggregated data, anonymised. Meaning the site doesn't use cookies or any other potentially creepy tracking stuff.
Web performance
Photos are resized and converted to WebP when the site is built, and load as you scroll. The homepage works without JavaScript; sorting is the only thing that needs it.
Open code
Go to GitHub to look at all the code for this site.