toon and tooner
The Tooner tool is a complement to the TOON format, as it specifically facilitates the conversion of JSON/YAML/TOML to the token-efficient TOON format, which the `toon-format/toon` project defines and provides an SDK for.
About toon
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.
About tooner
dwekat/tooner
🚀 Token-efficient serialization for LLMs - Convert JSON/YAML/TOML to TOON format with 30-60% fewer tokens. Tree-shakable, TypeScript, ESM+CJS.
Related comparisons
Scores updated daily from GitHub, PyPI, and npm data. How scores work