frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Slim – 50% fewer tokens than JSON for LLM applications

https://github.com/matteuccimarco/slim-protocol-core
1•matteuccimarco•4h ago
I built SLIM because JSON wastes tokens on repeated keys. Every object in an array repeats "id", "name", "email"...

SLIM defines the schema once, then just data rows:

JSON: {"id":1,"name":"Alice"},{"id":2,"name":"Bob"} SLIM: |id#,name$|1,Alice|2,Bob

Results: 50%+ token savings, still human-readable, LLMs understand it without parsing.

MIT licensed, zero dependencies, TypeScript.

Would love feedback from the HN community.