Fantasy map

A seeded fantasy map with coastlines, erosion and biomes, deterministic down to a landmask hash and a biome at a given cell.

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/fantasy-map
Version
0.2.1
Published by
nova
Updated
15 Nov 2026

Build this spec

Build the spec at https://spekkr.com/nova/fantasy-map/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?

Fantasy map: hero

What can I customize?

Climate The biome table, not the height field.

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.md Requirements and acceptance checks.

    Fantasy map

    What this builds

    A map generator you can tweak: height, sea level, erosion, biomes, and optional names. A seed makes the world deterministic. Tests hash the landmask, and they look up the biome at documented cells. The pipeline is original, and the names are from a small shipped lexicon, not a live model.

    Read spekkr.inputs.json first. title sits in the margin. seed and size pin the world. climate chooses the biome table. names and explain change the chrome.

    Out of scope

    • A live language model for names.
    • A real-Earth projection or copyrighted cartography.
    • Network or a public map gallery in the checks.

    Requirements

    Each requirement has an id. Checks name the id they cover.

    R1. Determinism
    • The same seed, size and climate produce the same height field and the same landmask.
    • The landmask of seed 19, size 256, sea level 0.42, is hashed in fixtures/map-19.sha256.
    • A second run must match that hash.

    Accept when: the landmask hash matches the file twice in a row.

    R2. Biomes and names
    • Biome at a cell is a function of height, moisture and climate, as in the table in design.md.
    • Cells listed in fixtures/map-19-biomes.json must have the stated biome.
    • If names is on, the set of names (not their pixel positions) is the list in the sibling file, from the shipped lexicon only.

    Accept when: every listed cell has the stated biome, and the name set matches when the option is on.

    R3. Frames and files
    • Goldens at height-only, after coasts, after biomes, and with names, all seed 19, temperate, 256.
    • One command runs the hash, biome, and name tests, and writes the frames. No network.

    Accept when: the command passes at size 128 and 256, for every climate (each climate has its own biome fixture).

    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

    A seeded world is deterministic: the landmask hash matches a shipped file, and biomes at documented cells match a fixture. Golden map images are taken at four pipeline stages. Names come from a shipped lexicon, not a live model. No network.

    Definition of done

    • Every acceptance check above runs from one command, and all pass at the person's inputs.
    • A README says how to generate a map, how to change a biome table, and how to run the checks.
    # Fantasy map
    
    ## What this builds
    
    A map generator you can tweak: height, sea level, erosion, biomes, and
    optional names. A seed makes the world deterministic. Tests hash the
    landmask, and they look up the biome at documented cells. The pipeline is
    original, and the names are from a small shipped lexicon, not a live
    model.
    
    Read `spekkr.inputs.json` first. `title` sits in the margin. `seed` and
    `size` pin the world. `climate` chooses the biome table. `names` and
    `explain` change the chrome.
    
    ## Out of scope
    
    - A live language model for names.
    - A real-Earth projection or copyrighted cartography.
    - Network or a public map gallery in the checks.
    
    ## Requirements
    
    Each requirement has an id. Checks name the id they cover.
    
    ### R1. Determinism
    
    - The same seed, size and climate produce the same height field and the
      same landmask.
    - The landmask of seed 19, size 256, sea level 0.42, is hashed in
      `fixtures/map-19.sha256`.
    - A second run must match that hash.
    
    Accept when: the landmask hash matches the file twice in a row.
    
    ### R2. Biomes and names
    
    - Biome at a cell is a function of height, moisture and `climate`, as in
      the table in `design.md`.
    - Cells listed in `fixtures/map-19-biomes.json` must have the stated
      biome.
    - If `names` is on, the set of names (not their pixel positions) is the
      list in the sibling file, from the shipped lexicon only.
    
    Accept when: every listed cell has the stated biome, and the name set
    matches when the option is on.
    
    ### R3. Frames and files
    
    - Goldens at height-only, after coasts, after biomes, and with names, all
      seed 19, temperate, 256.
    - One command runs the hash, biome, and name tests, and writes the frames.
      No network.
    
    Accept when: the command passes at size 128 and 256, for every climate
    (each climate has its own biome fixture).
    
    ### 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
    
    A seeded world is deterministic: the landmask hash matches a shipped file,
    and biomes at documented cells match a fixture. Golden map images are
    taken at four pipeline stages. Names come from a shipped lexicon, not a
    live model. No network.
    
    ## Definition of done
    
    - Every acceptance check above runs from one command, and all pass at the
      person's inputs.
    - A README says how to generate a map, how to change a biome table, and
      how to run the checks.
    

    Open spec.md as plain text

  • design.md The pipeline, the landmask hash, and biome lookups for a seeded world.

    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.

    Pipeline

    Height (value noise, 5 octaves) → sea level 0.42 → simple hydraulic erosion, 12 iterations, parameters in fixtures/erosion.json → moisture from slope and rain shadow → biome table → optional names.

    Biome table (temperate)

    Rows are moisture bands, columns are height bands. The table is fixtures/biomes-temperate.json (and arid, polar siblings). Tests look up, they do not re-derive.

    Screenshot tolerance

    8 levels, 98% of pixels. The landmask hash is exact.

    Inputs

    KeyLabelDefaultNotes
    titleTitleA land that was not thereShown on the map margin.
    seedSeed19A whole number.
    sizeMap size256Width and height, 128, 256 or 512.
    namesPlace namesonA small set of generated names on coasts and hills.
    explainExplain the stepsonA side list of the pipeline steps as they run.
    climateClimatetemperateThe biome table, not the height field.

    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.

    FixtureRole
    design.mdA shipped fixture. The build may move it, but then design.md must name the new path.
    fixtures/biomes-temperate.jsonA shipped fixture. The build may move it, but then design.md must name the new path.
    fixtures/erosion.jsonA shipped fixture. The build may move it, but then design.md must name the new path.
    fixtures/map-19-biomes.jsonA shipped fixture. The build may move it, but then design.md must name the new path.
    spekkr.inputs.jsonA 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.

    FileWhat it shows
    shots/map.pngSeed 19, a landmask with inked coasts, a river, and three towns.

    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. A seeded world is deterministic: the landmask hash matches a shipped file, and biomes at documented cells match a fixture. Golden map images are taken at four pipeline stages. Names come from a shipped lexicon, not a live model. No network.
    # 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.
    
    ## Pipeline
    
    Height (value noise, 5 octaves) → sea level 0.42 → simple hydraulic
    erosion, 12 iterations, parameters in `fixtures/erosion.json` → moisture
    from slope and rain shadow → biome table → optional names.
    
    ## Biome table (temperate)
    
    Rows are moisture bands, columns are height bands. The table is
    `fixtures/biomes-temperate.json` (and arid, polar siblings). Tests look
    up, they do not re-derive.
    
    ## Screenshot tolerance
    
    8 levels, 98% of pixels. The landmask hash is exact.
    
    ## Inputs
    
    | Key | Label | Default | Notes |
    | --- | --- | --- | --- |
    | `title` | Title | A land that was not there | Shown on the map margin. |
    | `seed` | Seed | 19 | A whole number. |
    | `size` | Map size | 256 | Width and height, 128, 256 or 512. |
    | `names` | Place names | on | A small set of generated names on coasts and hills. |
    | `explain` | Explain the steps | on | A side list of the pipeline steps as they run. |
    | `climate` | Climate | temperate | The biome table, not the height field. |
    
    ## 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/biomes-temperate.json` | A shipped fixture. The build may move it, but then `design.md` must name the new path. |
    | `fixtures/erosion.json` | A shipped fixture. The build may move it, but then `design.md` must name the new path. |
    | `fixtures/map-19-biomes.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/map.png` | Seed 19, a landmask with inked coasts, a river, and three towns. |
    
    
    ## 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. A seeded world is deterministic: the landmask hash matches a shipped
    file, and biomes at documented cells match a fixture. Golden map images
    are taken at four pipeline stages. Names come from a shipped lexicon, not
    a live model. No network.
    

    Open design.md as plain text

  • tasks.md Build tasks in order, each with a check.

    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. Determinism (R1). Build what R1. Determinism asks for, to the numbers in design.md. In particular: The same seed, size and climate produce the same height field and the same landmask. Check: the R1. Determinism acceptance checks pass.
    3. Biomes and names (R2). Build what R2. Biomes and names asks for, to the numbers in design.md. In particular: Biome at a cell is a function of height, moisture and climate, as in the table in design.md. Check: the R2. Biomes and names acceptance checks pass.
    4. Frames and files (R3). Build what R3. Frames and files asks for, to the numbers in design.md. In particular: Goldens at height-only, after coasts, after biomes, and with names, all seed 19, temperate, 256. 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.
    # 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. **Determinism (R1).** Build what `R1. Determinism` asks for, to the
    numbers in `design.md`. In particular: The same seed, size and climate
    produce the same height field and the same landmask.
       Check: the `R1. Determinism` acceptance checks pass.
    
    3. **Biomes and names (R2).** Build what `R2. Biomes and names` asks for,
    to the numbers in `design.md`. In particular: Biome at a cell is a
    function of height, moisture and `climate`, as in the table in
    `design.md`.
       Check: the `R2. Biomes and names` acceptance checks pass.
    
    4. **Frames and files (R3).** Build what `R3. Frames and files` asks for,
    to the numbers in `design.md`. In particular: Goldens at height-only,
    after coasts, after biomes, and with names, all seed 19, temperate, 256.
       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.
    

    Open tasks.md as plain text

  • reference/preview.html A 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.css Webfont faces for the reference preview.
  • reference/fonts/Geist.ttf Geist variable typeface for the reference preview.
  • reference/fonts/Fraunces.ttf Fraunces variable typeface for the reference preview.
  • reference/fonts/Fraunces-Italic.ttf Fraunces italic 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 runner install a tool that compares screenshots

What changed?

  • 0.2.115 Nov 2026Names what it builds.
  • 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.