Self-contained URL compression codec. Encodes an entire URL into a short payload
that decodes offline, with no server or database state. Three-language reference
implementations (Go, Rust, JS) share a single frozen data corpus in data/.
Test vectors under data/vectors/ are the conformance substrate — any
implementation that passes them is a conformant nib decoder.
Lineage: derived from the ha.mr project (github.com/p2r3/ha.mr, MIT).
nib/
├── go/ # Go implementation
├── rust/ # Rust implementation
├── js/ # JS implementation + static site (nib.example-style)
├── data/
│ ├── v0/ # frozen v0 dictionaries — byte-identical across implementations
│ └── vectors/v0/ # URL ↔ payload test corpus per alphabet
├── spec/ # format description and versioning discipline
└── LICENSE
The data/vN/ directory is append-only after freeze — a v0 dictionary edit
would silently break every previously minted link, so it doesn't happen.
Improvements land as v1 (new sibling directory), and every implementation must
be able to decode every past version forever. Encoders default to the latest.
See spec/VERSIONING.md for the version-in-payload mechanics.
fob — the stateful DB-backed shortener that consumes nib in two places: as the internal storage codec for external URLs, and as the shutdown-proof export format for every minted URL.
nib (chosen) / jot / wad / ort — sibling shortener codename: fob (den, peg were alternates).