forever components

Organic & Nature

Slime Mold Network

Up to 6000 agents simulate Physarum slime-mold behavior, self-organizing into glowing purple radial veins on a dark canvas; cursor attracts nearby agents.

canvasheavy complexitymoderate motionpointer

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

Dark-mode hero backgrounds, generative art displays, science or biology themed UIs, ambient screensaver contexts.

When not to

Low-end devices (heavy per-frame agent and diffuse loops). Light backgrounds — background color is hardcoded dark purple-black.

Working with an AI agent

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

Change the vein color to teal by editing the r/gg/b channel formulas in the paint() function, e.g. set b=20+g*150 and gg=10+g*255 for a green-cyan shift. 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

  • agent count cap (N=6000, GW*GH*0.18)
  • deposit amount (DEP=22)
  • decay rate (DECAY=0.90)
  • sensor offset distance (SO=8)
  • pointer attraction radius (d<90) and strength (0.08*mPow)
  • vein color channel formula in paint()
  • theme tokens (:root dark defaults + [data-theme=light] overrides)

Keep intact

  • low-res sim grid pattern (GMAX=240 cap, critical for perf)
  • visibilitychange pause/start
  • reduced-motion static fallback (240 pre-steps then paint)
  • theme hook (?theme= bootstrap + forever:theme message listener + theme tokens)

Known limitations

  • CPU-bound dual loop (agent step + diffuse) — can drop frames on low-end mobile
  • Sim grid resets on resize, losing all trail state
  • Background color hardcoded in CSS (#0c0a14)

slime-moldphysarumparticlessimulationgenerativeorganicnetwork

More Organic & Nature components

  • Growing VineA sinuous green vine grows upward sprouting 14 alternating leaves and a pale bud tip, then retracts in a seamless loop on a dark forest background.
  • Flickering FireAdditive-blended ember particles rise from a glowing orange base, flickering like a real flame; cursor pans left/right to fan the fire sideways.
  • Water RippleConcentric ripple rings expand across a deep teal water surface with shimmering caustic bands; tap anywhere to drop a new ripple. Auto-drops periodically.
  • Lightning BoltJagged lightning bolts with branching forks strike randomly down a dark storm-sky canvas; screen flashes rust-white on each strike. Tap to trigger instantly.
  • Falling SnowUp to 110 depth-layered snowflakes drift and sway down a dark blue gradient; pointer movement shifts a wind force that nudges the entire flurry sideways.
  • Drifting CloudsPuffy white clouds with radial-gradient puffs and soft blue undersides drift across a layered sky gradient; pointer nudges them forward.