Zoomable life
A recursively zoomable Game of Life, with known patterns checked at a given zoom and tick, and a golden frame after N steps.
This is an interactive visual spec on Spekkr, published by nova. It is listed with the other specs. Paste the line to an agent that can open a web address, and the agent fetches the files and builds from them.
- Spec
nova/zoomable-life- Version
- 0.2.2
- Published by
- nova
- Updated
- 15 Nov 2026
Build this spec
Build the spec at https://spekkr.com/nova/zoomable-life/start.md.
Paste this to your AI agent. It opens the address, fetches the spec's files, records your choices and builds from them. Nothing to install, no account.
Published by nova.
What does the result look like?
What can I customize?
Your choices go into the line you copy. Anything else is yours to edit, but it leaves the tested path.
What do I get?
-
spec.mdRequirements and acceptance checks.Zoomable life
What this builds
Conway's Game of Life, drawn so you can zoom into a cell and find another field, simulated at a slower clock, and so on. The outer field is the ordinary rule. Tests treat the recursion as a stated number of layers (three in this version) with documented scale and tick ratios. Known patterns — a blinker, a glider — must behave at a given zoom and tick. A golden frame is taken after N steps. This is an original presentation, not a copy of someone else's page.
Read
spekkr.inputs.jsonfirst.titleis at the outer zoom.seed_patternplaces a known pattern at layer 0.ruleis B3/S23 unless a test says otherwise.gridandwrapchange the chrome and the outer edge.Out of scope
- A proof of a universal computer, or an unbounded number of layers in this version.
- Network or a live community pattern database in the checks.
- A different neighbourhood than the eight cells of Life, in this version.
Requirements
Each requirement has an id. Checks name the id they cover.
R1. The rule at layer 0
- A cell is alive in the next tick if it has 3 live neighbours, or 2 and is already alive, under
B3/S23. - A blinker oscillates with period 2. A glider returns to a translated copy every 4 ticks, by the offset in
design.md. - The same starting grid and wrap setting produce the same next grid.
Accept when: the blinker and glider fixtures match at the listed ticks, including the glider's offset after 4 steps.
R2. Zoom and layers
- Layer n+1 lives inside a cell of layer n. A cell is 32 by 32 of the inner field, and one outer tick is 4 inner ticks, as in
design.md. - Zoom is a camera scale. At scale 32 a single outer cell fills the view, showing the inner field.
- Three layers are required. A fourth is out of scope.
Accept when: after 4 outer ticks, a fixture that has a glider in layer 1 (inside a documented outer cell) has moved by the inner offset, and a zoomed-in golden matches.
R3. Frames and files
- Frames: glider at t = 0, glider at t = 4, blinker at t = 1, and the zoomed-in layer-1 view.
- One command runs the pattern tests and writes the frames. No network.
Accept when: the command passes with wrap on and off (the fixtures use a field large enough that they do not meet the edge).
R4. Inputs
- The build reads
spekkr.inputs.json. Settings label the UI, options turn features on or off, and a swap must be one of its choices. - A value outside a stated range, or a swap that is not one of its choices, is refused before the app starts its checks, with a message that names the key.
Accept when: the default inputs render, an illegal swap is refused by name, and changing a visible setting (for example the title) shows up in a later check.
Verification
Known patterns (blinker, glider) are checked at a given tick, including the glider's +1,+1 offset after 4 steps. A nested-layer fixture is checked after a documented number of inner ticks. A golden frame is taken after N steps. No network and no live pattern database.
Definition of done
- Every acceptance check above runs from one command, and all pass at the person's inputs.
- A README says how to zoom, how to load a pattern, and how to run the checks.
# Zoomable life ## What this builds Conway's Game of Life, drawn so you can zoom into a cell and find another field, simulated at a slower clock, and so on. The outer field is the ordinary rule. Tests treat the recursion as a stated number of layers (three in this version) with documented scale and tick ratios. Known patterns — a blinker, a glider — must behave at a given zoom and tick. A golden frame is taken after N steps. This is an original presentation, not a copy of someone else's page. Read `spekkr.inputs.json` first. `title` is at the outer zoom. `seed_pattern` places a known pattern at layer 0. `rule` is B3/S23 unless a test says otherwise. `grid` and `wrap` change the chrome and the outer edge. ## Out of scope - A proof of a universal computer, or an unbounded number of layers in this version. - Network or a live community pattern database in the checks. - A different neighbourhood than the eight cells of Life, in this version. ## Requirements Each requirement has an id. Checks name the id they cover. ### R1. The rule at layer 0 - A cell is alive in the next tick if it has 3 live neighbours, or 2 and is already alive, under `B3/S23`. - A blinker oscillates with period 2. A glider returns to a translated copy every 4 ticks, by the offset in `design.md`. - The same starting grid and wrap setting produce the same next grid. Accept when: the blinker and glider fixtures match at the listed ticks, including the glider's offset after 4 steps. ### R2. Zoom and layers - Layer n+1 lives inside a cell of layer n. A cell is 32 by 32 of the inner field, and one outer tick is 4 inner ticks, as in `design.md`. - Zoom is a camera scale. At scale 32 a single outer cell fills the view, showing the inner field. - Three layers are required. A fourth is out of scope. Accept when: after 4 outer ticks, a fixture that has a glider in layer 1 (inside a documented outer cell) has moved by the inner offset, and a zoomed-in golden matches. ### R3. Frames and files - Frames: glider at t = 0, glider at t = 4, blinker at t = 1, and the zoomed-in layer-1 view. - One command runs the pattern tests and writes the frames. No network. Accept when: the command passes with wrap on and off (the fixtures use a field large enough that they do not meet the edge). ### R4. Inputs - The build reads `spekkr.inputs.json`. Settings label the UI, options turn features on or off, and a swap must be one of its choices. - A value outside a stated range, or a swap that is not one of its choices, is refused before the app starts its checks, with a message that names the key. Accept when: the default inputs render, an illegal swap is refused by name, and changing a visible setting (for example the title) shows up in a later check. ## Verification Known patterns (blinker, glider) are checked at a given tick, including the glider's +1,+1 offset after 4 steps. A nested-layer fixture is checked after a documented number of inner ticks. A golden frame is taken after N steps. No network and no live pattern database. ## Definition of done - Every acceptance check above runs from one command, and all pass at the person's inputs. - A README says how to zoom, how to load a pattern, and how to run the checks.
-
design.mdKnown patterns, layer scale, and the golden ticks.Design
This file fixes the parts that are easy to get wrong. The language and tools are up to you, as long as the numbers here hold.
Glider
The standard glider, cells in
fixtures/glider.txt, heading south-east. After 4 ticks it has moved (+1, +1). A blinker's three cells and both phases arefixtures/blinker.txt.Layers
Inner grid 32 by 32 per outer cell. 4 inner ticks per outer tick. The zoomed-in fixture is
fixtures/life-layer1.json: which outer cell, the inner pattern, and the expected inner state after 4 outer ticks (16 inner ticks).Screenshot tolerance
8 levels, 98% of pixels. Alive cells must match exactly in a grid extract; the image tolerance is for chrome.
Inputs
Key Label Default Notes titleTitle Life inside life Shown at the outer zoom. ruleBirth/survive rule B3/S23 The default is Life. Tests also run the default only, unless a second fixture says otherwise. gridShow a faint grid on At zooms where a cell is at least 8 px. wrapWrap the outer field off The outermost layer is a torus if on, infinite empty if off. seed_patternStarting pattern glider A shipped pattern at the origin of layer 0. Acceptance at the defaults
The numbers, names and fixture paths already in this file are the authority. Where a later table or a shipped fixture file disagrees with prose, the table or the fixture wins.
Fixture Role design.mdA shipped fixture. The build may move it, but then design.mdmust name the new path.fixtures/blinker.txtA shipped fixture. The build may move it, but then design.mdmust name the new path.fixtures/glider.txtA shipped fixture. The build may move it, but then design.mdmust name the new path.fixtures/life-layer1.jsonA shipped fixture. The build may move it, but then design.mdmust name the new path.spekkr.inputs.jsonA shipped fixture. The build may move it, but then design.mdmust name the new path.Golden frames are compared at 1400 by 1000 CSS pixels unless a requirement names another size. Tolerance, unless a tighter figure is given above: 8 levels, 98% of pixels, with motion, cursors and clocks frozen as this file says. A build's goldens are of that build; they do not have to match a shipped reference preview pixel-for-pixel if the tool or the type is different, but they do have to match this file's layout, counts and copy.
Screenshots
These pictures are headless-Chrome captures of the working reference in
reference/preview.html, at the default inputs. They are not drawings of a product that has not been built. The first picture is the one Spekkr shows on the spec's card. A build may ship its own goldens; those goldens are of that build and do not have to match these frames pixel-for-pixel.File What it shows shots/life.pngGosper’s gun at 4×, rule B3/S23, tick 120. How to verify
- Run the checks at the default inputs, without a network.
- Walk through the scripted playthroughs, fixture lookups or goldens named in the requirements; each must match this file.
- Repeat once at the person's inputs when they differ from the defaults.
- Known patterns (blinker, glider) are checked at a given tick, including the glider's +1,+1 offset after 4 steps. A nested-layer fixture is checked after a documented number of inner ticks. A golden frame is taken after N steps. No network and no live pattern database.
# Design This file fixes the parts that are easy to get wrong. The language and tools are up to you, as long as the numbers here hold. ## Glider The standard glider, cells in `fixtures/glider.txt`, heading south-east. After 4 ticks it has moved (+1, +1). A blinker's three cells and both phases are `fixtures/blinker.txt`. ## Layers Inner grid 32 by 32 per outer cell. 4 inner ticks per outer tick. The zoomed-in fixture is `fixtures/life-layer1.json`: which outer cell, the inner pattern, and the expected inner state after 4 outer ticks (16 inner ticks). ## Screenshot tolerance 8 levels, 98% of pixels. Alive cells must match exactly in a grid extract; the image tolerance is for chrome. ## Inputs | Key | Label | Default | Notes | | --- | --- | --- | --- | | `title` | Title | Life inside life | Shown at the outer zoom. | | `rule` | Birth/survive rule | B3/S23 | The default is Life. Tests also run the default only, unless a second fixture says otherwise. | | `grid` | Show a faint grid | on | At zooms where a cell is at least 8 px. | | `wrap` | Wrap the outer field | off | The outermost layer is a torus if on, infinite empty if off. | | `seed_pattern` | Starting pattern | glider | A shipped pattern at the origin of layer 0. | ## Acceptance at the defaults The numbers, names and fixture paths already in this file are the authority. Where a later table or a shipped fixture file disagrees with prose, the table or the fixture wins. | Fixture | Role | | --- | --- | | `design.md` | A shipped fixture. The build may move it, but then `design.md` must name the new path. | | `fixtures/blinker.txt` | A shipped fixture. The build may move it, but then `design.md` must name the new path. | | `fixtures/glider.txt` | A shipped fixture. The build may move it, but then `design.md` must name the new path. | | `fixtures/life-layer1.json` | A shipped fixture. The build may move it, but then `design.md` must name the new path. | | `spekkr.inputs.json` | A shipped fixture. The build may move it, but then `design.md` must name the new path. | Golden frames are compared at 1400 by 1000 CSS pixels unless a requirement names another size. Tolerance, unless a tighter figure is given above: 8 levels, 98% of pixels, with motion, cursors and clocks frozen as this file says. A build's goldens are of that build; they do not have to match a shipped reference preview pixel-for-pixel if the tool or the type is different, but they do have to match this file's layout, counts and copy. ## Screenshots These pictures are headless-Chrome captures of the working reference in `reference/preview.html`, at the default inputs. They are not drawings of a product that has not been built. The first picture is the one Spekkr shows on the spec's card. A build may ship its own goldens; those goldens are of that build and do not have to match these frames pixel-for-pixel. | File | What it shows | | --- | --- | | `shots/life.png` | Gosper’s gun at 4×, rule B3/S23, tick 120. | ## How to verify 1. Run the checks at the default inputs, without a network. 2. Walk through the scripted playthroughs, fixture lookups or goldens named in the requirements; each must match this file. 3. Repeat once at the person's inputs when they differ from the defaults. 4. Known patterns (blinker, glider) are checked at a given tick, including the glider's +1,+1 offset after 4 steps. A nested-layer fixture is checked after a documented number of inner ticks. A golden frame is taken after N steps. No network and no live pattern database.
-
tasks.mdBuild tasks in order, each with a check.Tasks
Work in order. Finish a task's check before starting the next.
- Set up. Set up a web app (or the stack you have chosen) and a test runner that can open a page, click, and compare screenshots. Read
spekkr.inputs.jsonfirst. Check: a blank or heading page loads, and an empty test run passes. - The rule at layer 0 (R1). Build what
R1. The rule at layer 0asks for, to the numbers indesign.md. In particular: A cell is alive in the next tick if it has 3 live neighbours, or 2 and is already alive, underB3/S23. Check: theR1. The rule at layer 0acceptance checks pass. - Zoom and layers (R2). Build what
R2. Zoom and layersasks for, to the numbers indesign.md. In particular: Layer n+1 lives inside a cell of layer n. A cell is 32 by 32 of the inner field, and one outer tick is 4 inner ticks, as indesign.md. Check: theR2. Zoom and layersacceptance checks pass. - Frames and files (R3). Build what
R3. Frames and filesasks for, to the numbers indesign.md. In particular: Frames: glider at t = 0, glider at t = 4, blinker at t = 1, and the zoomed-in layer-1 view. Check: theR3. Frames and filesacceptance checks pass. - Inputs (R4). Build what
R4. Inputsasks for, to the numbers indesign.md. In particular: The build readsspekkr.inputs.json. Settings label the UI, options turn features on or off, and a swap must be one of its choices. Check: theR4. Inputsacceptance checks pass. - Goldens. Capture the frames named in
design.mdat the defaults, with motion frozen where the file says so. Compare them within the stated tolerance. Check: the frames match, and a pixel-level check fails if a documented element is removed on purpose. - Finish. Write a README that says how to install what is needed, how to change the inputs, and how to run the checks. Run the one command from a clean folder. Check: every item under Definition of done in
spec.mdis true.
# Tasks Work in order. Finish a task's check before starting the next. 1. **Set up.** Set up a web app (or the stack you have chosen) and a test runner that can open a page, click, and compare screenshots. Read `spekkr.inputs.json` first. Check: a blank or heading page loads, and an empty test run passes. 2. **The rule at layer 0 (R1).** Build what `R1. The rule at layer 0` asks for, to the numbers in `design.md`. In particular: A cell is alive in the next tick if it has 3 live neighbours, or 2 and is already alive, under `B3/S23`. Check: the `R1. The rule at layer 0` acceptance checks pass. 3. **Zoom and layers (R2).** Build what `R2. Zoom and layers` asks for, to the numbers in `design.md`. In particular: Layer n+1 lives inside a cell of layer n. A cell is 32 by 32 of the inner field, and one outer tick is 4 inner ticks, as in `design.md`. Check: the `R2. Zoom and layers` acceptance checks pass. 4. **Frames and files (R3).** Build what `R3. Frames and files` asks for, to the numbers in `design.md`. In particular: Frames: glider at t = 0, glider at t = 4, blinker at t = 1, and the zoomed-in layer-1 view. Check: the `R3. Frames and files` acceptance checks pass. 5. **Inputs (R4).** Build what `R4. Inputs` asks for, to the numbers in `design.md`. In particular: The build reads `spekkr.inputs.json`. Settings label the UI, options turn features on or off, and a swap must be one of its choices. Check: the `R4. Inputs` acceptance checks pass. 6. **Goldens.** Capture the frames named in `design.md` at the defaults, with motion frozen where the file says so. Compare them within the stated tolerance. Check: the frames match, and a pixel-level check fails if a documented element is removed on purpose. 7. **Finish.** Write a README that says how to install what is needed, how to change the inputs, and how to run the checks. Run the one command from a clean folder. Check: every item under Definition of done in `spec.md` is true.
- Set up. Set up a web app (or the stack you have chosen) and a test runner that can open a page, click, and compare screenshots. Read
-
reference/preview.htmlA working reference preview of the default view, used to make the listing pictures. A build does not have to start from this file. -
reference/fonts/fonts.cssWebfont faces for the reference preview. -
reference/fonts/Geist.ttfGeist variable typeface for the reference preview. -
reference/fonts/Unbounded.ttfUnbounded variable typeface for the reference preview.
Is it for me?
- Platforms
- web
- Tools
- TypeScript
What does it need?
- Agent permissions
- shell
- Commands it runs
install a test runnerinstall a tool that compares screenshots
What changed?
- 0.2.215 Nov 2026Names what it builds.
- 0.2.114 Nov 2026Add animated loop to the listing shots.
- 0.2.014 Nov 2026Polished reference preview and new listing shots, including a short loop.
- 0.1.014 Nov 2026First version.
For agents: start.md says how to build this spec, spec.json holds everything on this page, and bundle.tar.gz holds its files.