toon and gotoon
These are ecosystem siblings: TOON is a language-agnostic serialization specification with a TypeScript reference implementation, while gotoon is an independent Go implementation of the same TOON format standard.
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 gotoon
alpkeskin/gotoon
Token-Oriented Object Notation for Go – JSON for LLMs at half the token cost
Implements tabular encoding for uniform object arrays—declaring field names once then streaming values as delimited rows—plus automatic struct-to-map conversion respecting `json` tags. Supports customizable delimiters (comma, tab, pipe) and indentation, achieving 30–60% token savings through minimal syntax while maintaining LLM comprehension via explicit array lengths and field declarations.
Related comparisons
Scores updated daily from GitHub, PyPI, and npm data. How scores work