Skip to content

About

Real-time US electricity demand across 15 balancing authorities (~95% CONUS)

Topics

Resources

Contributing

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

Grid Demand Dashboard

Live at grid-demand.kardashevlabs.org · Part of Kardashev Labs

US electricity demand across 15 balancing authorities (~95% of CONUS load): regional map, treemap, and 48-hour trends.

Stack: Next.js (server-rendered) on Railway. A single process polls kardashev-data in-process, serves the API, and server-renders the UI — no separate services, no Redis, no Postgres.

Data source

Demand data comes from the kardashev-data API (data.kardashevlabs.org), which ingests ISO/RTO and EIA feeds. No API key required.

The dashboard is server-rendered, so the current demand numbers are visible in the raw HTML to crawlers/AI agents, not just after client JS runs (instrumentation.ts → lib/poller.ts keeps an in-memory store warm; app/page.tsx reads it directly for SSR).

API

  • GET /api/demand — latest reading per region
  • GET /api/demand/history — 48-hour backfilled history per region
  • GET /api/demand/:region — latest reading for one region (e.g. /api/demand/ercot)
  • GET /health — platform probe (Railway)

Local development

cd services/dashboard && npm install && npm run dev

Open http://localhost:3000. Defaults work out of the box — no env vars required. Optional overrides (KARDASHEV_API_URL, POLL_INTERVAL, BACKFILL_HOURS) are documented in .env.example.

Deploy on Railway

Connect this repo in Railway. railway.toml targets Dockerfile.railway and probes /health. No required variables.

Layout

services/dashboard The whole app: Next.js frontend + API routes + in-process poller

About

Real-time US electricity demand across 15 balancing authorities (~95% CONUS)

Topics

Resources

Contributing

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages