toon-format/toon
🎒 Token-Oriented Object Notation (TOON) – Compact, human-readable, schema-aware JSON for LLM prompts. Spec, benchmarks, TypeScript SDK.
Combines YAML-style indentation with CSV-like tabular layouts for uniform arrays, achieving ~40% token savings over JSON while maintaining lossless round-trip conversion. The format uses explicit array-length declarations `[N]` and field headers `{fields}` to provide LLMs with clear schema boundaries, improving both parsing accuracy (74% vs JSON's 70%) and reliability. Spec-driven with implementations across TypeScript, Python, Go, Rust, and .NET, designed as a translation layer between JSON-based application logic and token-efficient LLM input.
23,207 stars and 1,595,658 monthly downloads. Used by 20 other packages. Actively maintained with 7 commits in the last 30 days. Available on npm.
Stars
23,207
Forks
1,033
Language
TypeScript
License
MIT
Category
Last pushed
Mar 10, 2026
Monthly downloads
1,595,658
Commits (30d)
7
Reverse dependents
20
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/llm-tools/toon-format/toon"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.
Compare
Related tools
tonl-dev/tonl
TONL (Token-Optimized Notation Language)
dweve-ai/hedl
Token-efficient data serialization for LLM/AI. 50% fewer tokens than JSON, 93% better...
toon-format/toon-java
☕ Community-driven Java implementation of TOON
ISON-format/ison
🔥 🔥 Alternative to JSON 🔥 🔥
com-vitthalmirji/toon4s
toon4s: Token-Oriented Object Notation for JVM