toon-format/toon

🎒 Token-Oriented Object Notation (TOON) – Compact, human-readable, schema-aware JSON for LLM prompts. Spec, benchmarks, TypeScript SDK.

84
/ 100
Verified

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.

Maintenance 20 / 25
Adoption 25 / 25
Maturity 22 / 25
Community 17 / 25

How are scores calculated?

Stars

23,207

Forks

1,033

Language

TypeScript

License

MIT

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.