
Description
TOON, short for Token-Oriented Object Notation, is a compact way to write JSON-style data for language model prompts. It keeps the data model of JSON but writes it in a smaller form. Nested objects use YAML-style indentation, and uniform arrays use a CSV-style table layout. The page says this cuts the number of tokens by about 40 percent, and that the model's comprehension stays the same or improves. The skill is an expert guide for working with the format, and it is aimed at developers who send structured data to a model and want to lower the token cost. The page describes the format as schema-aware. The library is published on npm as @toon-format/toon. The page shows the install commands for npm, pnpm and yarn. The skill is part of the reason-machines trending-skills collection on GitHub. The listing's security audits are Gen Agent Trust Hub: Pass, Socket: Pass and Snyk: Pass. The 40 percent figure is the page's own claim, and a developer should measure it on their own data before relying on it.…
Highlights
- Encode JSON data in a more compact, token-efficient form
- Use indentation for nested objects and tables for uniform arrays
- Install the @toon-format/toon package with npm, pnpm or yarn
- Work from an expert guide to the format
- Reduce prompt tokens for structured data
Ratings & Reviews
No ratings yet
Be the first to rate toon-format.
People also visit

documenting-contracts
Documenting an HTTP API, message payloads, queue contracts, DTOs, file formats
toon-format FAQ
What does TOON change?
It keeps the JSON data model but writes it more compactly, with YAML-style indentation for nested objects and CSV-style tables for uniform arrays.
How much does it save?
The page says about 40 percent fewer tokens, while keeping or improving model comprehension. It is the page's own figure, so measure it on your data.
How do I install it?
Run npm install @toon-format/toon, or use pnpm add or yarn add with the same package name.
What security audits has it passed?
Gen Agent Trust Hub: Pass. Socket: Pass. Snyk: Pass.
What are the best toon-format alternatives?
Popular alternatives to toon-format include caveman, text-optimizer and prompt-engineer. See all toon-format alternatives

















