Nine package-powered experiments

Small rules, consequential worlds

Growth, ecology, excitable media, particle transport, fire, epidemics, chaos, sound, and interacting matter—each with controls that expose the model rather than merely recoloring it.

Every page consumes the published package @hexlife/embed@1.10.0 binary · k-state · renderer · exact snapshots

The collection is deliberately selective: every demo has a clear phenomenon, meaningful interventions, live measurements, and an explicit boundary between the package engine and host-owned application logic. They are ordered by conceptual and implementation complexity.

01 · SIMPLEST

Crystal Garden

Grow real branching dendrites, hexagonal plates or solid disks through an impurity field.

neighborhood k⁷ · k = 4
02

Hex Ecology

Run a three-, four- or five-species invasion cycle and paint into the waves it forms.

census() · k up to 6 · live interventions
03

Excitable Tissue Lab

Compare sparks, coherent fronts, refractory waves, and scar barriers.

isotropic neighborhood rule
04

Diffusion & Mixing Chamber

Open a finite vessel where directional particles collide and reflect.

exclusion gas · seeded host model
05

Wildfire Command

Tune probabilistic spread, wind, burning, ash recovery, and regrowth.

O(6N) probability · interventions
06

Outbreak Counterfactuals

Replay one random exposure schedule with and without vaccination.

paired seeded models · p = 1 − (1 − x)ⁿ
07

Butterfly Microscope

Paste a rule, flip one cell, and watch every disagreement glow red.

snapshot XOR · red overlay
08

Cellular Synthesizer

Turn births from spinners, gliders, or crystals into a visible score.

exact ticks · Web Audio host
09 · MOST COMPLEX

Hex Matter

Paint and pour eight materials with transport, combustion, and quenching.

block k³ · k = 8 · material brush

Reference instruments