toon and toon-php

These are ecosystem siblings—TOON is the specification and reference TypeScript implementation, while the PHP implementation provides language-specific tooling for the same serialization format standard.

toon
84
Verified
toon-php
39
Emerging
Maintenance 20/25
Adoption 25/25
Maturity 22/25
Community 17/25
Maintenance 6/25
Adoption 10/25
Maturity 13/25
Community 10/25
Stars: 23,207
Forks: 1,033
Downloads: 1,595,658
Commits (30d): 7
Language: TypeScript
License: MIT
Stars: 115
Forks: 8
Downloads:
Commits (30d): 0
Language: PHP
License: MIT
No risk flags
No Package No Dependents

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 toon-php

HelgeSverre/toon-php

Token-Oriented Object Notation - A compact data format for reducing token consumption when sending structured data to LLMs (PHP implementation)

Scores updated daily from GitHub, PyPI, and npm data. How scores work