
Toon Format
Compact, schema-aware JSON encoding that cuts LLM prompt tokens by roughly 40 percent.
- CCM score
- 48 of 100
- skills.sh installs
- 1.3K
- GitHub stars
- 98
- last updated
- Jul 14, 2026
Own this skill? Claim it
What it does
- Covers encoding and decoding between JSON and TOON through a JavaScript API and a
toonCLI - Includes an
encodeanddecodeAPI, pipe support,--prettyand--statsflags, and token-count comparison utilities - Encodes uniform object arrays as compact tables with declared field headers and array length markers
- Designed for prompt construction, RAG context injection, and bulk data passed to LLM calls
Install
$ npx -y skills add reason-machines/trending-skills --skill toon-format -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Token-Oriented Object Notation (TOON)
Skill by ara.so — Daily 2026 Skills collection.
TOON is a compact, human-readable encoding of the JSON data model that minimizes tokens for LLM input. It combines YAML-style indentation for nested objects with CSV-style tabular layout for uniform arrays, achieving ~40% token reduction while maintaining or improving LLM comprehension accuracy.
Installation
# npm
npm install @toon-format/toon
# pnpm
pnpm add @toon-format/toon
# yarn
yarn add @toon-format/toon
CLI
# Install globally
npm install -g @toon-format/toon
# Convert JSON file to TOON
toon encode input.json
toon encode input.json -o output.toon
# Convert TOON back to JSON
toon decode input.toon
toon decode input.toon -o output.json
# Pipe support
cat data.json | toon encode
cat data.toon | toon decode
# Pretty-print JSON output
toon decode input.toon --pretty
# Show token count comparison
toon encode input.json --stats
Core API
encode / stringify
import { encode, decode } from '@toon-format/toon';
Details
- Repository
- github.com/reason-machines/trending-skills
- Categories
- Memory & Context, AI Agents & LLM Apps
- First seen
- Apr 16, 2026
More from reason-machines/trending-skills
All 163- Translate Book Parallel1.3K
- Trump Code Market Signals1.3K
- Vinext Vite Nextjs1.3K
- Voicebox Voice Synthesis1.3K
- Aracli Deploy Management1.2K
- Codex Autoresearch Loop1.2K
- Fabro Workflow Factory1.2K
- Grimmory Self Hosted Library1.2K
- Keyid Agent Kit Mcp1.2K
- Kimodo Motion Diffusion1.2K
- Nightingale Karaoke1.2K
- Openhanako Personal Ai Agent1.2K
- Slug Font Rendering1.2K
- Taiwan Md Knowledge Base1.2K
- Witr Process Inspector1.2K
- Zeroboot Vm Sandbox1.2K
- Code Review Graph1.1K
- Flash Moe Inference1.1K
- Ghostling Libghostty Terminal1.1K
- 724 Office Ai Agent1K
- Claude Peers Mcp1K
- My Brain Is Full Crew1K
- Weixin Agent Sdk1K
- Dingtalk Workspace Cli941
Similar to Toon Format
More Memory & Context
get-toonyPlugindanielrosehill/Claude-Code-Plugins32 starsConvert JSON, CSV, YAML, and other structured data into TOON (Token-Oriented Object Notation) — a compact, lossless re-encoding that uses ~40% fewer tokens than
HeadroomMCP serverchopratejas80.3K starsCompresses tool outputs, logs, files, and RAG chunks to cut LLM input tokens while keeping answers.
caveman-compressSkilljuliusbrussee/caveman448.1K installsCompresses CLAUDE.md and todo-style memory files into caveman format while keeping code and paths intact.
caveman-token-optimizerSkillreason-machines/trending-skills768 installsTerse, token-cutting response style that keeps code and technical terms exact for Claude Code and Codex.
grepai-search-advancedSkillyoanbernabeu/grepai-skills873 installsAdvanced GrepAI search output options for JSON, TOON, and compact formats aimed at scripts and AI agents.
creationix-rx-data-storeSkillreason-machines/trending-skills862 installsEmbedded data store that encodes JSON-shaped data for random-access queries without parsing or heap-heavy object graphs.