toon
A compact, human-readable data format (TOON) that represents JSON more cheaply for LLM prompts. It comes with a TypeScript SDK, a CLI and benchmarks, and aims to cut token use.
Share on XLicense: MIT
Overview
TOON, short for Token-Oriented Object Notation, is a compact and readable way to write the JSON data model, designed to use fewer tokens in LLM prompts. It mixes YAML-style indentation for nested objects with CSV-style tables for uniform data. The idea is to keep JSON in your program and encode it as TOON only when sending it to a model. The repository has a TypeScript SDK, a CLI and benchmarks.
Key features
- Lossless encoding of JSON data for LLM input
- Indentation for nesting, table form for uniform arrays
- TypeScript SDK and command-line tool
- Benchmarks included
Best for
Developers who send lists of similar records to LLMs and want to trim token use. The README says deeply nested or non-uniform data may be more efficient as JSON.
- Upstream
- toon-format/toon
- Fork on GitHub
- Guo-astro/toon
- Upstream stars
- 25k
- Category
- Developer tools and infrastructure
- Language
- TypeScript
- License
- MIT
- Forked
- 2025-11-09
- Sync status
- In syncLast synced 2026-10-11
More in Developer tools and infrastructure
Creates full-stack project scaffolds from compatible stack parts, reducing setup and integration work. Use the CLI, browser builder, or MCP server to generate a project.
Forked 2026-10-09Last synced 2026-10-11License: MITDeveloper tools and infrastructureGitHub
A Python SDK for adding local face detection, landmark extraction, and face comparison to applications on Windows and Linux, without sending images off-device.
Forked 2026-10-09Last synced 2026-10-11No license declaredDeveloper tools and infrastructureGitHub
Whole-disk file search for macOS that finds files by name quickly, handles typos, and searches indexed file contents. Best for local desktop search from the CLI or Rust crate.
Forked 2026-10-08Last synced 2026-10-11License: MITDeveloper tools and infrastructureGitHub
REA helps reverse engineers inspect apps, binaries, and runtime behavior with agent workflows. It is used to understand how a feature works, find evidence, and build a similar capability in a project.
Forked 2026-10-08Last synced 2026-10-11License: MITDeveloper tools and infrastructureGitHub