toon-format/toon
🎒 Token-Oriented Object Notation (TOON) – compact, human-readable serialization of JSON data for LLM prompts. TypeScript SDK, CLI, benchmarks.
Featured achievements
The project's latest awards
#1 Repository of the week
#1 Repository of the week
#1 Repository of the week
🗜 TOON: Token-Oriented Object Notation
Fewer tokens for the same JSON data
TOON (Token-Oriented Object Notation) is a compact serialization format for JSON data built for LLM prompts. The toon-format/toon repo provides a TypeScript SDK and CLI to convert between JSON and TOON.
✨ Highlights
- JSON-to-TOON encoding: packs JSON structures into a denser, token-lean form.
- Human-readable layout: keeps a scannable form closer to indented/table-like text than minified JSON.
- TypeScript SDK: encode and decode TOON directly in TypeScript projects.
- CLI tool: convert JSON<->TOON from shell without extra code.
- Benchmarks included: repo ships benchmarks to compare token counts vs raw JSON.
- LLM-first focus: aimed at shrinking structured data before sending to LLM prompts.
💡 Why it matters
For LLM prompts, token count is tight. TOON targets that by packing repetitive JSON into a denser form while keeping it readable. Best when sending structured arrays/objects to models where raw JSON would eat too many tokens.
#DataFormat #LLM #Serialization #Tokenization #TiniX
Similar Projects
Discover other similar projects and AI models.
Firecrawl is the knowledge infrastructure to make your agents smarter. It connects your agents to the web, and to Alexandria, our library of everything else.
Get up and running with Inkling, Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.
AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.
The AI that really does things. Any OS. Any Platform. The lobster way. 🦞
The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.
Makes your AI agent think like the laziest senior dev in the room. The best code is the code you never wrote.
Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.