toon-format/toon
🎒 Token-Oriented Object Notation (TOON) – compact, human-readable serialization of JSON data for LLM prompts. TypeScript SDK, CLI, benchmarks. observed · 2026-08-28
Health v2 · maintenance only
83/100
- Activity 99
- Release rhythm 96
- Longevity 22
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 1.0
- age_days: 315
- days_rel: 28
- days_push: 10
- n_releases_24m: 31
Adoption not part of the score
25261 stars · 1121 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
TOON (Token-Oriented Object Notation) is a compact, human-readable encoding of the JSON data model designed to reduce token usage in LLM prompts while remaining lossless and deterministic. It ships as a TypeScript SDK, a CLI, and benchmarks, with a shared spec and conformance suite across many language implementations.
Use cases
- reduce token costs when passing JSON data to LLM prompts
- encode uniform arrays of objects compactly for model input
- convert JSON to a more token-efficient format and back losslessly
- benchmark token efficiency of data formats for LLMs
- validate LLM output structure with explicit array lengths and field lists
When to choose
- your prompts embed large JSON payloads, especially uniform arrays of objects
- you want a lossless, deterministic JSON alternative optimized for token count
- you need a spec with multi-language implementations and conformance tests
When to avoid
- your data is deeply nested and heterogeneous, where JSON or YAML may be comparable
- you need a general-purpose serialization format for storage or APIs rather than LLM input
- your pipeline requires strict JSON tooling compatibility
Facets
library · maturity active
serialization llm-inference prompt-engineering cli benchmarking large-language-models developer-tools apis cli cross-platform data-format token-efficiency json-encoding llm-prompts tokenization data-engineering nodejs typescript
3 sources
- readme: https://github.com/toon-format/toon · fetched 2026-08-28 · 63ed34a92f80
- homepage: https://toonformat.dev · fetched 2026-08-29 · f53a63c2f085
- site_page: https://toonformat.dev/guide/getting-started.html · fetched 2026-08-29 · fb01668e2bfa
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| toon-format/toon | main | 83 |
For agents
markdown · JSON · MCP: product_card(name="toon-format/toon")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem