energy-grid-viewer-uk

GB Grid Battery Storage Dashboard

Real-time monitoring of UK grid-scale Battery Energy Storage Systems (BESS).
Data sourced from the Elexon Insights API — no API key required.

What it shows

Architecture

Browser  →  Next.js /api/elexon  →  data.elexon.co.uk (FUELINST)

The proxy API route (src/app/api/elexon/route.ts) solves the CORS problem — all requests to Elexon happen server-side. If Elexon is unreachable, the server returns realistic simulated data so the UI always works.

The page (src/app/page.tsx) is a server component that fetches initial data at request time, so the dashboard renders fully on first load with no client-side loading state.

Getting started

npm install
npm run dev

Open http://localhost:3000.

Data source

Fields used

Field Meaning
battery / other BESS output (MW) — positive = discharging
ps Pumped storage hydro (MW)
time UTC timestamp of measurement

Caveats

Deployment

Works on any Node.js host. For Vercel:

npm i -g vercel
vercel

The /api/elexon route will run as a Vercel Serverless Function, keeping all Elexon requests server-side.

Extending

Want to add individual BESS units? Try: