StealThis .dev
Pages Hard

Dashboard — Real-time monitoring

A live infrastructure monitoring dashboard built with vanilla HTML, CSS and JavaScript. Streaming inline-SVG line charts for CPU, memory and requests scroll leftward as new points arrive every second, three live half-circle gauges sweep their needles, and KPI cards tick with up or down deltas and sparklines. A dashed threshold line flashes the chart and KPI tile red on breach, raising an aria-live alert and a timestamped error in the rolling event log. A pause control plus a speed selector and a live or reconnecting connection indicator round it out.

Open in Lab
html css vanilla-js
Targets: JS HTML

Code

Real-time monitoring

A live monitoring console for the fictional Helios Grid edge fleet. Four KPI cards (CPU load, memory, requests per second, p95 latency) each pair a ticking value with an up or down delta colored against --ok / --danger and a tiny inline-SVG sparkline. Below them, a wide streaming chart redraws a 60-second rolling window every tick, scrolling old points off the left edge while a leading dot tracks the latest reading. Three half-circle gauges sweep their needles for CPU, memory and disk I/O, a node-health grid shows per-zone load bars, and an aria-live event stream logs every change. Everything is rendered with inline SVG and pure CSS — no chart libraries, no canvas, no images.

The dashboard is genuinely live. A setInterval loop pushes fresh data points into each series and re-renders the charts, gauges and KPIs smoothly. Each metric carries a dashed threshold line; when a value crosses it the chart path and the matching KPI tile flash red, a banner with role="alert" announces the breach, and a timestamped error lands in the log. The connection indicator occasionally drops to reconnecting and recovers, the nav alert badge counts unread incidents, and a toast confirms each notable event.

Every control works without a framework: a segmented speed selector rescales the stream from 0.5× to 4×, CPU / RAM / Requests tabs switch the active streaming chart, the Pause / Resume button freezes the entire loop and flips the LIVE pill, the log can be cleared, and widget cards can be dragged to rearrange the grid. The layout collapses to a single column with an off-canvas nav around 720px, stays usable down to ~360px, and honors prefers-reduced-motion.