schemap

Every system has a shape.schemap shows it.

.schemap/bookshop/map.html

The real viewer. Click a card, press P to play, T to trace.

schemap is an agent skill that turns “map this” into a map you can explore. Your coding agent writes a small typed JSON. schemap checks it, lays it out and delivers an interactive map and an image for your README, docs or pull request.

All in one self-contained HTML file.

Make any system feel explorable.

Select a card to see what it touches. Trace everything upstream and downstream, find every route between two cards, or play the flow and watch it move.

Trace and route Keep only what feeds a card or what it feeds, or light every path between two.

Flow playback Pulses travel edge by edge, and each card glows in its colour when they arrive.

A format your agent
can write and repair.

  • Write nodes, edges and groups. No coordinates, no styling.
  • validate --json names each problem and the fixes allowed.
  • Repair only what's named, then run it again.
  • deliver writes map.html, map.svg and a snippet.
  • Paste the snippet into a README, a docs page or a pull request.

The CLI ships inside the skill as one file. All it needs is Node.

$ node skill/bin/schemap.mjs validate map.json
map.json
  error refs/unknown-node /edges/3/to
         no node has id "cache"
         fix: use one of the known node ids | add a node with id "cache"

1 error(s), 0 warning(s)

$ node skill/bin/schemap.mjs deliver map.json
delivered .schemap/bookshop/map.html · sha256 98d5987c03c8cea1 · 83913 bytes
static    .schemap/bookshop/map.svg

[![Bookshop](./.schemap/bookshop/map.svg)](./.schemap/bookshop/map.html)

Five kinds, one format. Services, stores and infrastructure, and the calls between them.

The static SVG of a checkout sequence map

Lives where your docs live. The SVG shows on GitHub, GitLab, VS Code, Obsidian and docs sites. Click it to open the interactive map, or embed the map itself with an iframe.

Embedding guide →
schemap bot commented

Bookshop · .schemap/bookshop/map.json · changed

Open the interactive map · map.json

+1 node · +1 edge · 1 changed

+node searchSearch
~node apicard.title: shop-api → orders-api
+edge api-searchapi → search (query)

Works where your team works.

Maps in every pull request. The Action comments with a preview, a link that opens the live map in the browser, and exactly what changed. Broken maps fail the check, and out-of-date images get flagged.

One fileA self-contained HTML file. Open it, share it, host it.
ValidatedEvery problem names its place and its fixes.
DeterministicSame JSON, byte-identical files.
Keyboard firstSearch, trace, route and play from the keys.
Flow playbackPulses travel the map hop by hop.
Your paletteThe default, or your brand colours.
No limitsCards wrap and grow to fit everything.
An agent skillShips with its CLI. Nothing to install.

Give your agent a better way to explain things.