Back to browse
Kencode – Compact Kotlin serialization for URLs and labels

Kencode – Compact Kotlin serialization for URLs and labels

by monom·May 1, 2026·3 points·1 comment

AI Analysis

●●SolidNiche GemBig Brain

Stateless URL encoding that bypasses database lookups for tracking redirects.

Strengths
  • Kubernetes label constraints drive a genuinely novel 63-char alphanumeric packing strategy.
  • Eliminates database round-trips for telemetry by embedding state directly in the URL.
  • Leverages kotlinx.serialization for a clean, type-safe API surface.
Weaknesses
  • Kotlin-only scope limits adoption compared to language-agnostic compression libraries.
  • Solves a specific infrastructure pain point that many teams handle with simple hashes.
Target Audience

Kotlin developers building tracking systems or Kubernetes operators

Similar To

NanoID · hashids · Apache Commons Codec

Similar Projects

Developer Tools●●Solid

Lodum, a Python Serializer/Deserializer (a.k.a. Load/Dump) Library

Impressive engineering choices — bytecode/AST generation for ~64% faster dumps and explicit Pyodide/WASM support show someone wrestled real performance and portability problems. It bundles one API across JSON, YAML, TOML, MsgPack/CBOR/BSON and adds native numpy/pandas handling plus basic validators and schema output. Still, it lives in a crowded Python serialization space (pickle, orjson, pydantic/serde alternatives), so adoption will hinge on ecosystem compatibility and convincing users to switch.

Niche GemWizardry
webmaven
203mo ago