quark

URL shortener whose codes are computed, never stored

The short code is a keyed permutation of an internal id, computed in both directions, so collisions cannot happen. One binary of about 1 MB with an LMDB store by default, and no Redis or database service.

  • ~124k req/sRedirects, 50 conns

Trade-offs

  • A Feistel network with an ARX round replaces a hash, which makes it a bijection with no collision checks.
  • Avalanche testing proved necessary but not sufficient: deeper testing found defects the numbers did not show.

Q&A1

They come from one development machine, not a controlled rig, and exact specs were not recorded.

Reviews

Loading reviews

    More in Single binary

    See all 14 →
    • PageSiftSelf-hosted Rust binary that turns URLs and documents into Markdown or JSON
    • zs3S3-compatible server in a single static Zig binary under 1 MB
    • TachyonTypo-tolerant full-text search in a single Rust binary
    • NanoTDBSingle-binary time-series database with a built-in dashboard editor for edge
    • errexSelf-hosted error tracking in one small Rust binary
    • KulaSelf-contained Linux server monitoring in a single binary

    More in Self-hosted

    See all 120 →
    • SupermetryCookie-free web and product analytics on one Go binary and PostgreSQL
    • jobdGPU-aware job broker for a few personal machines, with an MCP server
    • OVLTSelf-hosted OIDC server in one Rust binary, multi-tenant through Postgres RLS
    • FusionalySelf-hosted web analytics in one SQLite file
    • KotauthMulti-tenant OAuth2 and OIDC identity server in Kotlin, self-hosted in Docker
    • TouchDeckA local touch control deck for Home Assistant and PC stats on an ESP32-S3

    More in Axum

    See all 8 →
    • santiSelf-hosted agile tracker with boards, sprints and epics, from web, CLI or agent
    • VoxperySelf-hostable chat with voice and screen sharing, as an open Discord alternative
    • clipboardwireClipboard sync for text, images and files over a LAN, in one small Rust binary
    • B{rew}logSelf-hosted coffee log for roasters, roasts, brews, cafes and gear
    • Contrato PúblicoFast search over Portugal's public contracts, scraped from the official portal
    • rpoddergpodder-compatible podcast sync server in Rust with a built-in web player