Skip to content
unusualeventPublic

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

Repository files navigation

fob

Stateful, tiered, overbooked link shortener. The URL is the token; the tier is the perk; the length is the currency. Length is decided at mint time from the controlling account's hourly eligibility, and once minted, an exposed URL resolves forever.

See spec/design.md for the full architecture (six length classes, three charging models, admission-controlled offers, memoryless folder streaks, credential-URL tripwire, and the rest).

Structure

fob/
├── cmd/fob/           # binary entrypoint
├── internal/
│   ├── mint/          # length decision + eligibility engine
│   ├── resolve/       # exact-match dispatch by fragment length
│   ├── storage/       # KV mappings + tombstones
│   ├── httphandlers/  # HTTP surface
│   └── nibcodec/      # thin wrapper over the sibling nib codec
├── spec/design.md     # the design specification
└── Makefile

Companion project

nib — the self-contained URL compression codec. fob uses it in two places:

  1. Internal storage codec for external URLs — an external target's raw nib-encoded BigInt bytes are stored in the KV as the primary form. Beats an opaque 4–8 ID in the short-target regime that dominates a shortener's inventory.
  2. Shutdown-proof export — every minted URL can also be handed to the user as a self-decoding nib link. If fob ever goes dark, those still work under any nib decoder.

The nib Go package sits alongside this repo; a wrapper in internal/nibcodec/ is the one place that touches it.

Codenames considered

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

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages