Sprig
A small tool for exploring a prose universe.
Installing sprig
npm install -g @sprig-and-prose/sprig If you don’t have npm, that’s ok. You can learn how to install it here.
Using sprig
sprig --help
sprig compile
sprig ui Run these inside a directory with a universe.prose file.
This will:
- compile the universe
- open a local UI
- let you explore what you’ve described
What it does
Sprig reads a universe and turns it into something you can inspect.
You can:
- browse concepts
- follow relationships
- view dimensions
- move through the world you described
It does not change the universe. It simply makes it visible.
Getting started
If you want to quickly get up and running, create a directory, and inside it, just run -
sprig init UniverseName You will have a helpful readme.md and a tiny universe in your universe.prose file to get you started.
The manifest
When you run sprig compile, a manifest is produced.
The manifest is a normalized view of the universe:
- every concept has a stable ID
- every relationship is resolved
- every connection is explicit
It is simple JSON.
Other systems can read it.
The UI
sprig ui The UI is a local explorer.
It lets you:
- open any concept
- see how it is described
- follow how it connects to others
It reflects the structure of the universe directly.
There are no hidden rules. What you see comes from the manifest.
What sprig is
Sprig is a lens.
It does not define the world. It does not run the world.
It helps you see it.
Observing reality
Compiling and exploring a universe is one half. The other half is letting real code report back.
sprig observe --universe ../garden/universe.prose sprig observe scans a codebase for @sprig markers in comments and writes receipts — evidence that the things a universe names exist in reality. It reads files; it does not change them.
Read observe to see how code speaks back.
Continue
Prose describes a world. Sprig shows how systems respond to it.