Skip to content
unusualeventPublic

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nib

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).

Layout

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

Freeze discipline

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.

Companion project

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.

Codenames considered

nib (chosen) / jot / wad / ort — sibling shortener codename: fob (den, peg were alternates).

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages