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.
About toon
toon-format/toon
🎒 Token-Oriented Object Notation (TOON) – Compact, human-readable, schema-aware JSON for LLM prompts. Spec, benchmarks, TypeScript SDK.
TOON helps developers working with Large Language Models (LLMs) by providing a more compact and readable way to format structured data inputs. It takes existing JSON data and translates it into a token-efficient format that LLMs can process reliably, reducing both cost and potential errors. This is primarily useful for AI/ML engineers and data scientists preparing data for LLM prompts.
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)
When working with Large Language Models (LLMs) in PHP, this tool helps you convert your structured PHP data (like arrays or objects) into a compact text format called TOON. This format uses fewer tokens than standard JSON, which can lower your LLM API costs and allow you to send more information within the same context window. It's designed for PHP developers or engineers building applications that interact with LLMs.
Related comparisons
Scores updated daily from GitHub, PyPI, and npm data. How scores work