RepositoryTypeScript
toon-format

toon-format/toon

🎒 Token-Oriented Object Notation (TOON) – compact, human-readable serialization of JSON data for LLM prompts. TypeScript SDK, CLI, benchmarks.

25.7kstars
1.1kforks
0issues
11views

Featured achievements

The project's latest awards

1
TINIX TRENDING·Topic: tokenization

#1 Repository of the week

1
TINIX TRENDING·Topic: data-format

#1 Repository of the week

1
TINIX TRENDING·Topic: serialization

#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.

RepositoryTypeScript
firecrawl/firecrawl

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.

215.1k
Dec 2, 2026
RepositoryGo
ollama/ollama

Get up and running with Inkling, Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.

188.9k
Dec 2, 2026
RepositoryPython
Significant-Gravitas/AutoGPT

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.

188.2k
Nov 29, 2026
RepositoryRust
ron-rs/ron

Rusty Object Notation

4.1k
Nov 29, 2026
RepositoryTypeScript
openclaw/openclaw

The AI that really does things. Any OS. Any Platform. The lobster way. 🦞

395.6k
Dec 2, 2026
RepositoryJavaScript
affaan-m/ECC

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

315.1k
Dec 1, 2026
RepositoryPython
NousResearch/hermes-agent

The agent that grows with you

267.7k
Dec 2, 2026
RepositoryJavaScript
DietrichGebert/ponytail

Makes your AI agent think like the laziest senior dev in the room. The best code is the code you never wrote.

203.5k
Nov 22, 2026
RepositoryPython
langgenius/dify

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.

162.3k
Dec 2, 2026