Li

Lite³ – A JSON-Compatible Zero-Copy Serialization Format in 9.3 kB of C

Hacker News

Lite³ – A JSON-Compatible Zero-Copy Serialization Format in 9.3 kB of C

My name is Elias de Jong, I am a software engineer and long-time HN lurker from the Netherlands. Some time ago, I started a project that would require a high performance networking system. Naturally, to send data between computers I also needed a serialization format, but a text format like JSON was just too slow. I started researching binary formats. But to my surprise, every binary format had major downsides. Almost all of them require schema definitions up front written in an IDL, as well as extra tooling and build steps. Schema evolution is also fragile and hard to maintain backwards compatibility. It feels like being forced into a choice: 1) JSON: convenient but slow 2) Binary formats: fast but painful to use Why do I need to choose? I don't want to sacrifice my sanity to get acceptable performance. I kept looking and found a research paper from 2024 about a conceptual schemaless zero-copy format. Lightning struck. This idea seemed extraordinary: you essentially send a serialized B-tree over the network so that the receiver can perform lookups and mutations directly without parsing. The only problem: nobody had made a (public) implementation yet. I figured sometimes you have to be the first, so for the last 6 months I've been working on this and am proud to say it is now released and open source under MIT license. The ability to modify serialized data directly is something not typically supported by other formats. I also extended the original format with JSON compatibility, such that it is now possible to convert between Lite³ and JSON. Despite this, it achieves performance on-par with modern zero-copy formats like Flatbuffers and Cap'n Proto. Right now the implementation is in C, but I plan to create bindings for other languages as well. So hopefully some fellow developers find it interesting! Official GitHub repository: https://github.com/fastserial/lite3 Official documentation site: https://lite3.io Mailing list: see project README

Share card

Actual performance

4points
Did not reach leaderboard

Launch Intel predictions

Analyze your own launch →
Indie HackersFits the IH revenue-focused audience · Strong signals: started, compatible · Missing: supports, reddit linkedin, podcasting
90%90% predicted probability of success on Indie Hackers, based on ML models trained on real launch data.
best fitHighest predicted score across all platforms for this description.
Product HuntOn track for Day 1 leaderboard · Strong signals: computer, open · Missing: mac, agents, macos
68%68% predicted probability of success on Product Hunt, based on ML models trained on real launch data.
Hacker NewsStrong engagement from HN community · Strong signals: open source, ide, io · Missing: https docs, excited, just released
67%67% predicted probability of success on Hacker News, based on ML models trained on real launch data.
nativeThis product was originally launched on this platform.
TrustMRRLess likely to generate early MRR · Strong signals: month · Missing: mobile apps, ios, personal
33%33% predicted probability of success on TrustMRR, based on ML models trained on real launch data.
AppSumoMay struggle as an AppSumo deal · Missing: plus, platform, intuitive
33%33% predicted probability of success on AppSumo, based on ML models trained on real launch data.
Acquire.comPre-revenue stage for this audience · Missing: arr, mrr, revenue
14%14% predicted probability of success on Acquire.com, based on ML models trained on real launch data.
BetaListMay not resonate with beta-testers · Missing: web3, chat, crypto
0%0% predicted probability of success on BetaList, based on ML models trained on real launch data.

Incorrect prediction on native model

Similar products

Sa
SafeSON – A JSON-compatible serialization format43%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

SafeSON – A JSON-compatible serialization format

Hacker News1
CT
CTON: JSON-compatible, token-efficient text format for LLM prompts56%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

CTON: JSON-compatible, token-efficient text format for LLM prompts

Hacker News13
BetterLabel
BetterLabel36%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Convertissez vos étiquettes d'expéditions pour un format compatible avec les imprimantes thermiques !

TrustMRRE-commerce
A
A MISRA C compatible AES, AES-GCM, and AES-CMAC implementation30%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

A MISRA C compatible AES, AES-GCM, and AES-CMAC implementation

Hacker News3
Ht
HttpClientModule with parameter encodings compatible with back ends50%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

HttpClientModule with parameter encodings compatible with back ends

Hacker News1
A
A redux-compatible redux wrapper42%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

A redux-compatible redux wrapper

Hacker News1
Tk
Tkinter-Compatible Multithreading53%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Tkinter-Compatible Multithreading

Hacker News1
OS
OS3-RNode, an RNode-Compatible LoRa Modem on CH32V00336%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

OS3-RNode, an RNode-Compatible LoRa Modem on CH32V003

Hacker News9
mugpods
mugpods59%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Nespresso Compatible Pods

Indie Hackers2$15,000/mob2c
Jq
Jq-in-the-browser -– jq compatible JSON processor in JavaScript70%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Jq-in-the-browser -– jq compatible JSON processor in JavaScript

Hacker News15