forever components

Charts & Flow

Heat Calendar

GitHub-style 52-week contribution heatmap on dark background; cells pop in column by column as a bright leading edge sweeps left to right, then loops.

canvasmedium complexitymoderate motion

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 →
Worth keeping? Votes steer what gets built next — sign in to cast one, free to read

When to use it

Activity dashboards, developer portfolio heroes, data-viz ambient backgrounds where a looping calendar rhythm adds visual interest.

When not to

Real data display without wiring in actual values — synthetic seed data is hardcoded. Light-background UIs (background is hardcoded dark navy).

Working with an AI agent

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

Change accent color to purple by setting --ch10-acc and --ch10-l3 to #a855f7, update --ch10-l4 to #d8b4fe, and slow the sweep by changing DUR from 4200 to 7000. Theme: dark tokens live in :root, the light variant in :root[data-theme="light"]; ?theme=light or a {type:'forever:theme'} postMessage switches at runtime.

Safe to edit

  • sweep duration (DUR=4200)
  • mount offset (t0=ts-1800: sweep starts ~40% across)
  • color palette (--ch10-l0 through --ch10-l4 CSS vars)
  • grid dimensions (COLS=52, ROWS=7)
  • seasonal data seed (s=20260626 + rnd logic)
  • cell corner radius (cell*0.22)
  • theme tokens (:root dark defaults + [data-theme=light] overrides)

Keep intact

  • IIFE wrapper
  • reduced-motion guard (setAll(1) static fallback)
  • visibilitychange stop/start
  • DPR-aware canvas sizing
  • theme hook (?theme= bootstrap + forever:theme message listener + theme tokens)

Known limitations

  • Synthetic deterministic data — must replace val[] generation to show real contribution data
  • Light re-theme via the [data-theme=light] token block; catalog bg/accent describe the dark default
  • No tooltip or interactivity on hover over individual cells

calendarheatmapcanvasdata-vizsweepgithub-styleambient

More Charts & Flow components

  • Sankey FlowThree-stage Sankey diagram on dark canvas: bezier ribbons grow stage-by-stage from origins to hubs to outcomes, pulsing softly in opacity to show flow volume.
  • Chord DiagramEight ring nodes with curved ribbons that swell and shrink as weights rebalance every ~3s. Additive blending creates glowing color overlaps.
  • Treemap7 rounded cells partition the canvas via slice-dice treemap; cells lerp to new sizes every 2.6 s as synthetic values drift, with a subtle alpha pulse.
  • CandlesticksGreen and red OHLC candles stream in from the right with smooth slide animation; newest candle grows from pivot. Dashed last-price marker traces horizontally.
  • StreamgraphSix translucent stacked bands breathe around a central baseline via layered sines; a sweeping readout line tracks across with colored tick dots per band.
  • Sparkline GridNine teal sparklines in a 3x3 grid scroll leftward every 140ms; orange/blue diamonds mark running max/min and a halo dot tracks the latest value.