Folio registry
Drawing packs, installed like code.
Anyone can publish a pack of drawings on GitHub. One command puts it in your project, pinned to a commit, every file hashed, and your scenes use it by name. No server, no account, nothing that runs.
Install
npx @levni/levni add @Levni-Dev/levni/examples/packThen in a scene: { "type": "prop", "name": "@levni-dev/levni/examples/pack:lifebuoy", … }
Packs
All on GitHub →


Example pack
Istanbul pier
A tea saucer, a bollard and a lifebuoy: the example pack.
levni add @Levni-Dev/levni/examples/packSource CC BY 4.0
- Looking for packs on GitHub…
Publish a pack
- A folder with
levni-pack.json: name, version, description, licence, author. - Drawings in
props/, one file each, named after the drawing, in the Folio format. - Test it:
npx @levni/levni add ./my-pack, then draw a scene with@local/…. - Push it to GitHub, add the topic
levni-pack, tag a release. It shows up here.
Registry guide → · The example pack → · What the Folio still needs →
{
"name": "Istanbul pier",
"version": "1.0.0",
"description": "Three drawings from a ferry pier",
"license": "CC BY 4.0",
"author": "Your name"
}Why it is safe to install
- JSON onlyOnly levni-pack.json and props/*.json are read. Nothing in a pack runs: no scripts, no install hooks.
- Checked firstEvery drawing passes the Folio’s schema check and a test draw before it is written. A failing drawing is skipped with the reason.
- PinnedThe tag or branch you ask for is resolved to a commit and read at that commit. A later push cannot change your copy.
- Hashedlevni.lock.json keeps a sha256 of every file. levni packs --verify says what changed, went missing or was added.
- ScopedA pack’s drawings are always @owner/repo:name, so a pack never replaces a Folio drawing or another pack’s.
- Only GitHubNo server, no account, no upload. The registry is GitHub repositories with the topic levni-pack.
Questions
- Is this npm for drawings?
- In spirit. A pack is a GitHub repository; levni add installs it into your project, levni.lock.json pins it, and scenes use its drawings by a scoped name. There is no central server to trust or pay for.
- Who owns a scope?
- The GitHub account in @owner/repo. Nobody else can publish under it.
- What licence should a pack use?
- The Folio is CC BY 4.0 and we suggest the same, so anyone can use your drawings with your name on them. The licence is shown when the pack is installed and kept in the lock file.
- Can a pack hold fonts or colour styles?
- Not yet: packs hold drawings for now. Style packs and fonts are planned.