UKHSA: Public health data dashboard

The UK government's public health data dashboard, cited by BBC News and Sky News. It passed its GDS alpha and beta assessments, and became a reference for NHS England and the US government.

client
UKHSA
role
Principal developer, leading the front end
years
2023–2024
platform
Government Health Platform
stack
Next.js, React, TypeScript, GOV.UK Design System, Tailwind, Plotly, Playwright, Zod, LaunchDarkly, GitHub Actions
live
ukhsa-dashboard.data.gov.uk
Screenshot of UKHSA Data Dashboard

Overview

The UKHSA data dashboard is where the UK government publishes public health data, from vaccinations and flu to weather health alerts. BBC News and Sky News cite it regularly. It replaced a costly solution from the pandemic.

My role

Principal developer, leading the front end through GDS alpha and beta.

What I did

  • Built it on the Next.js App Router with server components and server actions, progressively enhanced so it works without JavaScript.
  • Used the GOV.UK Design System. Charts render as SVG on the server, become interactive Plotly charts in the browser, and always come with a data table.
  • Ran it as two dashboards: a public one behind CloudFront, and an internal one on a Redis-backed ISR cache.
  • Built a weather health alert map that works with a keyboard and a screen reader.
  • Added Zod validation for API responses and cookies, an Express mock API, Playwright tests, GitHub Actions CI/CD and LaunchDarkly feature flags.

Outcome

It passed its GDS alpha and beta assessments, and the assessors called it one of the most accessible services they had reviewed. NHS England and the US government used it as a reference model.