∞ forever components

Micro Data-Viz

Context Topology Gauge

A moss-green ring gauge on a dark card shows how full an AI context window is (124k tokens, 62% load) and flips between that and a compacted 68k state when pressed.

svgmedium complexitymoderate motionclickaccessible

Open on the canvas to copy the code → Free account · 3 copies a day · membership goes unlimited

Live demo — the real component, running in a sandbox. One self-contained HTML file, zero dependencies. Open it on the canvas →
1

When to use it

AI tool dashboards, agent consoles and developer docs that need a compact meter for context size or memory use with a before and after state.

When not to

Showing live token counts. The two states and their figures are fixed sample values, and the tip text is in Portuguese.

Working with an AI agent

Every component ships agent-ready metadata. An example instruction for this one:

Edit the two states in activate() (stroke-dashoffset 100 and 174 for 62% and 34% of the 264 ring, plus the token, percent and tip text), the ring colour in the #fc03-ring stroke attribute and the --fc03-* tokens on :root, and the auto-flip interval (5000 ms in scheduleDemo). The ring is #fc03-ring on an svg viewBox of 100.

Safe to edit

  • the two gauge states in activate() (dashoffset, token text, percent text, tip text)
  • ring colour (stroke on #fc03-ring) and card tokens (--fc03-* on :root)
  • auto-flip interval (setInterval(activate, 5000))

Keep intact

  • First control stops idle chart cycle; user-triggered gauge state remains.
  • demo-v1 preview lifecycle: initialize demoEnabled from window.__foreverPreview and stop attract work on the window forever:interactive event; retain manual feedback, settling, cleanup and explicit sessions

Known limitations

  • State remains local to each mounted instance; format/theme remount preserves takeover, not component values.

systemaivector-fieldtelemetrycircuit-breakerdashboardcontext-topology-gaugedatavizgaugetopologymemoryfragmentationring-meterforevermetrics

More Micro Data-Viz components

  • Live Line SweepA soft verdigris area line scrolls a live sine-plus-noise time-series across a faint grid, with a white head dot marking the latest value.
  • Donut Ring ProgressOlive-to-terracotta gradient donut ring eases its fill to random targets with a leading dot and large centered percentage readout. Tap to jump to a new value.
  • Sparkline Moving DotA sage-green sparkline traces itself across a faint ghost path, led by a haloed white dot; on completion it regenerates a new random 28-point series.
  • Radial Gauge NeedleSemicircular gauge on dark amber background with green-yellow-red arc segments; a glowing white needle sweeps smoothly via sine wave with a live 0–100…
  • Heatmap Ripple12x6 grid of rounded cells colored via a magma ramp, with a sine-wave ripple emanating from a point that orbits and follows the cursor.
  • Odometer Count-UpSix-digit mechanical odometer with rolling digit reels easing toward a random REQUESTS/SEC target; tap/click to randomize a new target value.