WeSearch

Show HN: Kencode – Compact Kotlin serialization for URLs and labels

·16 min read · 0 reactions · 0 comments · 5 views
Show HN: Kencode – Compact Kotlin serialization for URLs and labels

I've hit the same "pack state into a tiny string" problem four times now. Here's the library that came out of it, and a detour on why kotlinx.serialization is so cool to build on.

Original article
Eignex
Read full at Eignex →
Opening excerpt (first ~120 words) tap to expand

KEncode: Packing Data for Strict Limits Rasmus Ros · Engineering · 23 Apr 2026 · 18 min read Over the past few years, I found myself occasionally writing the same boilerplate: manually packing bits of application state into tight, heavily character-limited strings. It ended up with me creating a library for it called kencode. But first it’s story time… and then a little explanation of the underlying tech of why kotlinx.serialization is so cool and THEN I’ll go over kencode. It all started with URL callback links on an integrated Search Engine Results Page (SERP). In a previous project at Theca, we had built a search engine embedded directly into a client’s website.

Excerpt limited to ~120 words for fair-use compliance. The full article is at Eignex.

Anonymous · no account needed
Share 𝕏 Facebook Reddit LinkedIn Threads WhatsApp Bluesky Mastodon Email

Discussion

0 comments

More from Eignex