A browser-based artificial-life simulation. Every organism starts as the same unarmed plant eater, and every trait costs energy every tick. Nobody is told to be a predator, a scavenger, or a colony: those roles, along with arms races and new species, emerge from random mutation and that one rule.
The demo link opens the full “grand world” with every feature switched on. The seed is in the address, so the same link replays the same history for anyone, in any browser. Click an organism to inspect its genes and family, and scroll down for the charts and the family tree.
- Role
- Solo developer
- Stack
- TypeScript · Web Workers · Canvas 2D · Vitest · GitHub Actions · AWS
- Proof
- 799 automated tests · about 3,200 worlds audited
- License
- Open source (MIT)
In motion




What emerges
- Food webs. In the simple world, a lineage that lives mostly on meat appeared in 12 of 12 worlds.
- Arms races. Prey answer hunters with armor and speed.
- Species. 23 to 50 species over a million ticks in each of 12 worlds, with three or four alive at a time.
- A changing world leaves its mark. In asexual worlds, water splits populations that then drift apart nine times as far, and an ice age halves the population and leaves cold-loving survivors.
- Brains. Prey learn to turn away from threats and hunters learn to ambush. They never learned to chase.
- Colonies. In a sunlit, low-food world with no predators, colonies of specialized cells beat single cells in 8 of 12 paired worlds.
How it's built
- One simulation, two front ends. An npm-workspaces monorepo: a pure TypeScript core with no browser or Node APIs, a browser viewer that runs it in a Web Worker and draws it on a canvas, and a headless Node runner for batch experiments.
- Deterministic. The same seed and settings give the same history in any browser, on a laptop or in the cloud. All randomness comes from one seeded generator, and a repo-wide test bans math functions whose rounding differs between browsers.
- Two ledgers, checked by tests. Energy flows one way (sun, plants, eaters, heat) and balances to better than one part in a billion. Matter goes round in a circle and is never created or destroyed.
- 799 automated tests. Every push runs the type check, the full test suite, and the build on GitHub Actions, and the site deploys to GitHub Pages.
- A cloud experiment runner. One on-demand AWS machine per experiment, a cost ceiling that has to be approved before anything starts, resumable runs, and a machine that shuts itself down. Results are compared seed by seed, and a claim counts only when its 95% range excludes no change and it holds up on fresh seeds.
What didn't work
The full grand world never kept a lasting group of meat eaters. An audit of about 3,200 worlds, then a long hunt for the cause, found that four features together (seasons, harmful mutations, sex, and kin restraint) erase them, because each hurts a small group more than a large one. A “hunters” preset that removes all four does grow them. Many fixes were tried in the full world and none held up on a long confirmation, and small 8-world screens repeatedly overstated results that 16 fresh worlds then shrank. It's reported as an open problem, with the write-up in What we found.
I built this with AI coding tools, directing the design and checking behavior through the tests, the two ledgers, and many-seed comparisons rather than trusting any single run.