Inputs & Switches
Entropy Circuit Breaker
Entropy Circuit Breaker control in the Forever system.
css+canvasmedium complexitymoderate motionclickaccessible
Open on the canvas to copy the code → Free account · 3 copies a day · membership goes unlimited
1
When to use it
Reliability dashboards, resilience-engineering explainers, and status panels that show a circuit breaker tripping, testing and recovering.
When not to
Real monitoring: the entropy value is simulated and the thresholds are fixed, so connect live metrics before relying on it.
Working with an AI agent
Every component ships agent-ready metadata. An example instruction for this one:
Change the trip threshold by editing the 50 in the click handler and the 40% label, the recovery speeds in update() (entropy decay 0.25 and 0.35), or the status colours (--fc05-accent, --fc05-warn, --fc05-trip). Keep the native #fc05-injectBtn button, the role=status pill and the demo-v1 lifecycle. Set the disabled attribute on #fc05-injectBtn for the disabled look.
Safe to edit
- trip threshold (entropy > 50 in the click handler)
- entropy decay rates in update()
- status colours (--fc05-accent, --fc05-warn, --fc05-trip)
- histogram bucket count (30) and height
- button and status label text
Keep intact
- 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.
- Rests until used (owner rule, 2026-11-21): the idle demo runs only when a host sets window.__foreverPreview.demoEnabled to true, such as the preview Forever button. The first input still stops it for good.
More Inputs & Switches components
- Liquid ToggleSVG liquid toggle with a goo filter, trailing droplets and a native button. First deliberate input stops the idle demo; the chosen on/off state settles fully.
- Glow SliderCassis range slider on a native input: recessed track, a fill with a narrow emissive bloom, a domed knob and a rounded value tooltip, both with tight…
- Spring StepperMint stepper with native minus/plus buttons and a number reel that settles with spring feedback. First deliberate input stops automatic steps; the chosen…
- Segmented ControlRaised jade pill slides between four native segment buttons with elastic spring stretch. First input stops automatic cycling; committed selection remains.
- Checkbox MorphThree native amber checkbox buttons animate their check strokes and expose pressed state. First input stops the demo; checked values remain.
- Star RatingFive gold SVG star radio controls commit ratings on click or keyboard input and settle with a scale bounce. First input stops automatic sweeping.