Iptvnator Sqlite DB Worker
4gray/iptvnator
A skill your agent uses when changing Electron SQLite IPC, database-worker operations, request-scoped progress or cancellation, worker packaging, or runtime verification of non-EPG database work.
Token-Oriented Object Notation is a compact, human-readable encoding of the JSON data model that minimizes tokens and makes structure easy for models to follow.
$ npx skills add butttons/dora --skill toon -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install butttons/dora toon --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/butttons/dora.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.pi/skills/toon .claude/skills/toon && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "toon" agent skill from https://github.com/butttons/dora/tree/main/.pi/skills/toon into .claude/skills/toon/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "toon", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/butttons/dora/tree/main/.pi/skills/toonType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add butttons/dora --skill toon -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install butttons/dora toon --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/butttons/dora.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.pi/skills/toon .agents/skills/toon && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "toon" agent skill from https://github.com/butttons/dora/tree/main/.pi/skills/toon into .agents/skills/toon/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "toon", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add butttons/dora --skill toon -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install butttons/dora toon --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/butttons/dora.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.pi/skills/toon .cursor/skills/toon && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "toon" agent skill from https://github.com/butttons/dora/tree/main/.pi/skills/toon into .cursor/skills/toon/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "toon", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/butttons/dora.git --path .pi/skills/toon--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add butttons/dora --skill toon -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install butttons/dora toon --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/butttons/dora.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.pi/skills/toon .gemini/skills/toon && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "toon" agent skill from https://github.com/butttons/dora/tree/main/.pi/skills/toon into .gemini/skills/toon/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "toon", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install butttons/dora toonInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add butttons/dora --skill toon -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/butttons/dora.git skills-src && mkdir -p .github/skills && cp -r skills-src/.pi/skills/toon .github/skills/toon && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "toon" agent skill from https://github.com/butttons/dora/tree/main/.pi/skills/toon into .github/skills/toon/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "toon", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add butttons/dora --skill toon -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install butttons/dora toon --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/butttons/dora.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.pi/skills/toon .opencode/skills/toon && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "toon" agent skill from https://github.com/butttons/dora/tree/main/.pi/skills/toon into .opencode/skills/toon/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "toon", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
toonToken-Oriented Object Notation is a compact, human-readable encoding of the JSON data model that minimizes tokens and makes structure easy for models to follow.
Toon is an agent skill from butttons/dora. Token-Oriented Object Notation is a compact, human-readable encoding of the JSON data model that minimizes tokens and makes structure easy for models to follow. It's intended for LLM input as a drop-in, lossless representation of your existing JSON.
Its SKILL.md is about 9.4k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Databases. It works with SQLite. The repository describes itself as: CLI built for AI agents to help navigate codebases better. An alternative to grep/find/glob. The licence is MIT.
6 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit f4edb8f. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
npxnpmpnpmyarnFrom the folder's file list and the shell code blocks in SKILL.md.
Links to these hosts (documentation or services it may open):
toonformat.devgithub.comimg.shields.ionpmjs.comcuriouslychase.comtoontools.vercel.appmarketplace.visualstudio.comtoon-format.orgx.comFrom URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Toon loads about 9.4k tokens when it runs. Until then it costs about 64 tokens; SKILL.md has 2,469 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from butttons/dora at commit f4edb8f, republished under its MIT licence (© butttons). 2,469 words, ~9,441 tokens.
.claude/skills/toon/SKILL.md (or your agent's skills folder).Image: TOON logo with step‑by‑step guide
Image: CI Image: npm version Image: SPEC v3.0 Image: npm downloads (total) Image: License: MIT
Token-Oriented Object Notation is a compact, human-readable encoding of the JSON data model that minimizes tokens and makes structure easy for models to follow. It's intended for LLM input as a drop-in, lossless representation of your existing JSON.
TOON combines YAML's indentation-based structure for nested objects with a CSV-style tabular layout for uniform arrays. TOON's sweet spot is uniform arrays of objects (multiple fields per row, same structure across items), achieving CSV-like compactness while adding explicit structure that helps LLMs parse and validate data reliably. For deeply nested or non-uniform data, JSON may be more efficient.
The similarity to CSV is intentional: CSV is simple and ubiquitous, and TOON aims to keep that familiarity while remaining a lossless, drop-in representation of JSON for Large Language Models.
Think of it as a translation layer: use JSON programmatically, and encode it as TOON for LLM input.
[!TIP] The TOON format is stable, but also an idea in progress. Nothing's set in stone – help shape where it goes by contributing to the spec or sharing feedback.
AI is becoming cheaper and more accessible, but larger context windows allow for larger data inputs as well. LLM tokens still cost money – and standard JSON is verbose and token-expensive:
{
"context": {
"task": "Our favorite hikes together",
"location": "Boulder",
"season": "spring_2025"
},
"friends": ["ana", "luis", "sam"],
"hikes": [
{
"id": 1,
"name": "Blue Lake Trail",
"distanceKm": 7.5,
"elevationGain": 320,
"companion": "ana",
"wasSunny": true
},
{
"id": 2,
"name": "Ridge Overlook",
"distanceKm": 9.2,
"elevationGain": 540,
"companion": "luis",
"wasSunny": false
},
{
"id": 3,
"name": "Wildflower Loop",
"distanceKm": 5.1,
"elevationGain": 180,
"companion": "sam",
"wasSunny": true
}
]
}<details>
<summary>YAML already conveys the same information with <strong>fewer tokens</strong>.</summary>
context:
task: Our favorite hikes together
location: Boulder
season: spring_2025
friends:
- ana
- luis
- sam
hikes:
- id: 1
name: Blue Lake Trail
distanceKm: 7.5
elevationGain: 320
companion: ana
wasSunny: true
- id: 2
name: Ridge Overlook
distanceKm: 9.2
elevationGain: 540
companion: luis
wasSunny: false
- id: 3
name: Wildflower Loop
distanceKm: 5.1
elevationGain: 180
companion: sam
wasSunny: true</details>
TOON conveys the same information with even fewer tokens – combining YAML-like indentation with CSV-style tabular arrays:
context:
task: Our favorite hikes together
location: Boulder
season: spring_2025
friends[3]: ana,luis,sam
hikes[3]{id,name,distanceKm,elevationGain,companion,wasSunny}:
1,Blue Lake Trail,7.5,320,ana,true
2,Ridge Overlook,9.2,540,luis,false
3,Wildflower Loop,5.1,180,sam,trueBy convention, TOON files use the .toon extension and the provisional media type text/toon for HTTP and content-type–aware contexts. TOON documents are always UTF-8 encoded; the charset=utf-8 parameter may be specified but defaults to UTF-8 when omitted. See SPEC.md §18.2 for normative details.
TOON excels with uniform arrays of objects, but there are cases where other formats are better:
See benchmarks for concrete comparisons across different data structures.
Benchmarks are organized into two tracks to ensure fair comparisons:
<!-- automd:file src="./benchmarks/results/retrieval-accuracy.md" -->
Benchmarks test LLM comprehension across different input formats using 209 data retrieval questions on 4 models.
<details>
<summary><strong>Show Dataset Catalog</strong></summary>
| Dataset | Rows | Structure | CSV Support | Eligibility |
|---|---|---|---|---|
| Uniform employee records | 100 | uniform | ✓ | 100% |
| E-commerce orders with nested structures | 50 | nested | ✗ | 33% |
| Time-series analytics data | 60 | uniform | ✓ | 100% |
| Top 100 GitHub repositories | 100 | uniform | ✓ | 100% |
| Semi-uniform event logs | 75 | semi-uniform | ✗ | 50% |
| Deeply nested configuration | 11 | deep | ✗ | 0% |
| Valid complete dataset (control) | 20 | uniform | ✓ | 100% |
| Array truncated: 3 rows removed from end | 17 | uniform | ✓ | 100% |
| Extra rows added beyond declared length | 23 | uniform | ✓ | 100% |
| Inconsistent field count (missing salary in row 10) | 20 | uniform | ✓ | 100% |
| Missing required fields (no email in multiple rows) | 20 | uniform | ✓ | 100% |
Structure classes:
CSV Support: ✓ (supported), ✗ (not supported – would require lossy flattening)
Eligibility: Percentage of arrays that qualify for TOON's tabular format (uniform objects with primitive values)
</details>
Each format ranked by efficiency (accuracy percentage per 1,000 tokens):
TOON ████████████████████ 26.9 acc%/1K tok │ 73.9% acc │ 2,744 tokens
JSON compact █████████████████░░░ 22.9 acc%/1K tok │ 70.7% acc │ 3,081 tokens
YAML ██████████████░░░░░░ 18.6 acc%/1K tok │ 69.0% acc │ 3,719 tokens
JSON ███████████░░░░░░░░░ 15.3 acc%/1K tok │ 69.7% acc │ 4,545 tokens
XML ██████████░░░░░░░░░░ 13.0 acc%/1K tok │ 67.1% acc │ 5,167 tokensEfficiency score = (Accuracy % ÷ Tokens) × 1,000. Higher is better.
[!TIP] TOON achieves 73.9% accuracy (vs JSON's 69.7%) while using 39.6% fewer tokens.
Note on CSV: Excluded from ranking as it only supports 109 of 209 questions (flat tabular data only). While CSV is highly token-efficient for simple tabular data, it cannot represent nested structures that other formats handle.
Accuracy across 4 LLMs on 209 data retrieval questions:
claude-haiku-4-5-20251001
→ TOON ████████████░░░░░░░░ 59.8% (125/209)
JSON ███████████░░░░░░░░░ 57.4% (120/209)
YAML ███████████░░░░░░░░░ 56.0% (117/209)
XML ███████████░░░░░░░░░ 55.5% (116/209)
JSON compact ███████████░░░░░░░░░ 55.0% (115/209)
CSV ██████████░░░░░░░░░░ 50.5% (55/109)
gemini-2.5-flash
→ TOON ██████████████████░░ 87.6% (183/209)
CSV █████████████████░░░ 86.2% (94/109)
JSON compact ████████████████░░░░ 82.3% (172/209)
YAML ████████████████░░░░ 79.4% (166/209)
XML ████████████████░░░░ 79.4% (166/209)
JSON ███████████████░░░░░ 77.0% (161/209)
gpt-5-nano
→ TOON ██████████████████░░ 90.9% (190/209)
JSON compact ██████████████████░░ 90.9% (190/209)
JSON ██████████████████░░ 89.0% (186/209)
CSV ██████████████████░░ 89.0% (97/109)
YAML █████████████████░░░ 87.1% (182/209)
XML ████████████████░░░░ 80.9% (169/209)
grok-4-fast-non-reasoning
→ TOON ███████████░░░░░░░░░ 57.4% (120/209)
JSON ███████████░░░░░░░░░ 55.5% (116/209)
JSON compact ███████████░░░░░░░░░ 54.5% (114/209)
YAML ███████████░░░░░░░░░ 53.6% (112/209)
XML ███████████░░░░░░░░░ 52.6% (110/209)
CSV ██████████░░░░░░░░░░ 52.3% (57/109)[!TIP] TOON achieves 73.9% accuracy (vs JSON's 69.7%) while using 39.6% fewer tokens on these datasets.
<details>
<summary><strong>Performance by dataset, model, and question type</strong></summary>
| Question Type | TOON | JSON compact | JSON | CSV | YAML | XML |
|---|---|---|---|---|---|---|
| Field Retrieval | 99.6% | 99.3% | 99.3% | 100.0% | 98.2% | 98.9% |
| Aggregation | 54.4% | 47.2% | 48.8% | 44.0% | 47.6% | 41.3% |
| Filtering | 56.3% | 57.3% | 50.5% | 49.1% | 51.0% | 47.9% |
| Structure Awareness | 88.0% | 83.0% | 83.0% | 85.9% | 80.0% | 80.0% |
| Structural Validation | 70.0% | 45.0% | 50.0% | 80.0% | 60.0% | 80.0% |
| Format | Accuracy | Tokens | Correct/Total |
|---|---|---|---|
csv | 72.0% | 2,352 | 118/164 |
toon | 73.8% | 2,518 | 121/164 |
json-compact | 69.5% | 3,953 | 114/164 |
yaml | 68.3% | 4,982 | 112/164 |
json-pretty | 68.3% | 6,360 | 112/164 |
xml | 69.5% | 7,324 | 114/164 |
| Format | Accuracy | Tokens | Correct/Total |
|---|---|---|---|
toon | 81.1% | 7,232 | 133/164 |
json-compact | 76.8% | 6,794 | 126/164 |
yaml | 75.6% | 8,347 | 124/164 |
json-pretty | 76.2% | 10,713 | 125/164 |
xml | 74.4% | 12,023 | 122/164 |
| Format | Accuracy | Tokens | Correct/Total |
|---|---|---|---|
csv | 73.3% | 1,406 | 88/120 |
toon | 72.5% | 1,548 | 87/120 |
json-compact | 71.7% | 2,349 | 86/120 |
yaml | 71.7% | 2,949 | 86/120 |
json-pretty | 68.3% | 3,676 | 82/120 |
xml | 68.3% | 4,384 | 82/120 |
| Format | Accuracy | Tokens | Correct/Total |
|---|---|---|---|
toon | 62.9% | 8,779 | 83/132 |
csv | 61.4% | 8,527 | 81/132 |
yaml | 59.8% | 13,141 | 79/132 |
json-compact | 55.3% | 11,464 | 73/132 |
json-pretty | 56.1% | 15,157 | 74/132 |
xml | 48.5% | 17,105 | 64/132 |
| Format | Accuracy | Tokens | Correct/Total |
|---|---|---|---|
json-compact | 63.3% | 4,819 | 76/120 |
toon | 57.5% | 5,799 | 69/120 |
json-pretty | 59.2% | 6,797 | 71/120 |
yaml | 48.3% | 5,827 | 58/120 |
xml | 46.7% | 7,709 | 56/120 |
| Format | Accuracy | Tokens | Correct/Total |
|---|---|---|---|
json-compact | 92.2% | 574 | 107/116 |
toon | 95.7% | 666 | 111/116 |
yaml | 91.4% | 686 | 106/116 |
json-pretty | 94.0% | 932 | 109/116 |
xml | 92.2% | 1,018 | 107/116 |
| Format | Accuracy | Tokens | Correct/Total |
|---|---|---|---|
toon | 100.0% | 544 | 4/4 |
json-compact | 100.0% | 795 | 4/4 |
yaml | 100.0% | 1,003 | 4/4 |
json-pretty | 100.0% | 1,282 | 4/4 |
csv | 25.0% | 492 | 1/4 |
xml | 0.0% | 1,467 | 0/4 |
| Format | Accuracy | Tokens | Correct/Total |
|---|---|---|---|
csv | 100.0% | 425 | 4/4 |
xml | 100.0% | 1,251 | 4/4 |
toon | 0.0% | 474 | 0/4 |
json-compact | 0.0% | 681 | 0/4 |
json-pretty | 0.0% | 1,096 | 0/4 |
yaml | 0.0% | 859 | 0/4 |
| Format | Accuracy | Tokens | Correct/Total |
|---|---|---|---|
csv | 100.0% | 566 | 4/4 |
toon | 75.0% | 621 | 3/4 |
xml | 100.0% | 1,692 | 4/4 |
yaml | 75.0% | 1,157 | 3/4 |
json-compact | 50.0% | 917 | 2/4 |
json-pretty | 50.0% | 1,476 | 2/4 |
| Format | Accuracy | Tokens | Correct/Total |
|---|---|---|---|
csv | 75.0% | 489 | 3/4 |
yaml | 100.0% | 996 | 4/4 |
toon | 100.0% | 1,019 | 4/4 |
json-compact | 75.0% | 790 | 3/4 |
xml | 100.0% | 1,458 | 4/4 |
json-pretty | 75.0% | 1,274 | 3/4 |
| Format | Accuracy | Tokens | Correct/Total |
|---|---|---|---|
csv | 100.0% | 329 | 4/4 |
xml | 100.0% | 1,411 | 4/4 |
toon | 75.0% | 983 | 3/4 |
yaml | 25.0% | 960 | 1/4 |
json-pretty | 25.0% | 1,230 | 1/4 |
json-compact | 0.0% | 755 | 0/4 |
| Format | Accuracy | Correct/Total |
|---|---|---|
toon | 59.8% | 125/209 |
json-pretty | 57.4% | 120/209 |
yaml | 56.0% | 117/209 |
xml | 55.5% | 116/209 |
json-compact | 55.0% | 115/209 |
csv | 50.5% | 55/109 |
| Format | Accuracy | Correct/Total |
|---|---|---|
toon | 87.6% | 183/209 |
csv | 86.2% | 94/109 |
json-compact | 82.3% | 172/209 |
yaml | 79.4% | 166/209 |
xml | 79.4% | 166/209 |
json-pretty | 77.0% | 161/209 |
| Format | Accuracy | Correct/Total |
|---|---|---|
toon | 90.9% | 190/209 |
json-compact | 90.9% | 190/209 |
json-pretty | 89.0% | 186/209 |
csv | 89.0% | 97/109 |
yaml | 87.1% | 182/209 |
xml | 80.9% | 169/209 |
| Format | Accuracy | Correct/Total |
|---|---|---|
toon | 57.4% | 120/209 |
json-pretty | 55.5% | 116/209 |
json-compact | 54.5% | 114/209 |
yaml | 53.6% | 112/209 |
xml | 52.6% | 110/209 |
csv | 52.3% | 57/109 |
</details>
This benchmark tests LLM comprehension and data retrieval accuracy across different input formats. Each LLM receives formatted data and must answer questions about it. This does not test the model's ability to generate TOON output – only to read and understand it.
Eleven datasets designed to test different structural patterns and validation capabilities:
Primary datasets:
Structural validation datasets:
[N] length detection)209 questions are generated dynamically across five categories:
Field retrieval (33%): Direct value lookups or values that can be read straight off a record (including booleans and simple counts such as array lengths)
750003John DoeAggregation (30%): Dataset-level totals and averages plus single-condition filters (counts, sums, min/max comparisons)
1745123.5023Filtering (23%): Multi-condition queries requiring compound logic (AND constraints across fields)
58Structure awareness (12%): Tests format-native structural affordances (TOON's [N] count and {fields}, CSV's header row)
100id, name, email, department, salary, yearsExperience, activeSalesStructural validation (2%): Tests ability to detect incomplete, truncated, or corrupted data using structural metadata
YES (control dataset) or NO (corrupted datasets)[N] length validation and {fields} consistency checking50000 = $50,000, Engineering = engineering, 2025-01-01 = January 1, 2025) without requiring an LLM judge.claude-haiku-4-5-20251001, gemini-2.5-flash, gpt-5-nano, grok-4-fast-non-reasoninggpt-tokenizer with o200k_base encoding (GPT-5 tokenizer)<!-- /automd -->
Token counts are measured using the GPT-5 o200k_base tokenizer via gpt-tokenizer. Savings are calculated against formatted JSON (2-space indentation) as the primary baseline, with additional comparisons to compact JSON (minified), YAML, and XML. Actual savings vary by model and tokenizer.
The benchmarks test datasets across different structural patterns (uniform, semi-uniform, nested, deeply nested) to show where TOON excels and where other formats may be better.
<!-- automd:file src="./benchmarks/results/token-efficiency.md" -->
Datasets with nested or semi-uniform structures. CSV excluded as it cannot properly represent these structures.
🛒 E-commerce orders with nested structures ┊ Tabular: 33%
│
TOON █████████████░░░░░░░ 72,771 tokens
├─ vs JSON (−33.1%) 108,806 tokens
├─ vs JSON compact (+5.5%) 68,975 tokens
├─ vs YAML (−14.2%) 84,780 tokens
└─ vs XML (−40.5%) 122,406 tokens
🧾 Semi-uniform event logs ┊ Tabular: 50%
│
TOON █████████████████░░░ 153,211 tokens
├─ vs JSON (−15.0%) 180,176 tokens
├─ vs JSON compact (+19.9%) 127,731 tokens
├─ vs YAML (−0.8%) 154,505 tokens
└─ vs XML (−25.2%) 204,777 tokens
🧩 Deeply nested configuration ┊ Tabular: 0%
│
TOON ██████████████░░░░░░ 631 tokens
├─ vs JSON (−31.3%) 919 tokens
├─ vs JSON compact (+11.9%) 564 tokens
├─ vs YAML (−6.2%) 673 tokens
└─ vs XML (−37.4%) 1,008 tokens
──────────────────────────────────── Total ────────────────────────────────────
TOON ████████████████░░░░ 226,613 tokens
├─ vs JSON (−21.8%) 289,901 tokens
├─ vs JSON compact (+14.9%) 197,270 tokens
├─ vs YAML (−5.6%) 239,958 tokens
└─ vs XML (−31.0%) 328,191 tokensDatasets with flat tabular structures where CSV is applicable.
👥 Uniform employee records ┊ Tabular: 100%
│
CSV ███████████████████░ 46,954 tokens
TOON ████████████████████ 49,831 tokens (+6.1% vs CSV)
├─ vs JSON (−60.7%) 126,860 tokens
├─ vs JSON compact (−36.8%) 78,856 tokens
├─ vs YAML (−50.0%) 99,706 tokens
└─ vs XML (−66.0%) 146,444 tokens
📈 Time-series analytics data ┊ Tabular: 100%
│
CSV ██████████████████░░ 8,388 tokens
TOON ████████████████████ 9,120 tokens (+8.7% vs CSV)
├─ vs JSON (−59.0%) 22,250 tokens
├─ vs JSON compact (−35.8%) 14,216 tokens
├─ vs YAML (−48.9%) 17,863 tokens
└─ vs XML (−65.7%) 26,621 tokens
⭐ Top 100 GitHub repositories ┊ Tabular: 100%
│
CSV ███████████████████░ 8,512 tokens
TOON ████████████████████ 8,744 tokens (+2.7% vs CSV)
├─ vs JSON (−42.3%) 15,144 tokens
├─ vs JSON compact (−23.7%) 11,454 tokens
├─ vs YAML (−33.4%) 13,128 tokens
└─ vs XML (−48.9%) 17,095 tokens
──────────────────────────────────── Total ────────────────────────────────────
CSV ███████████████████░ 63,854 tokens
TOON ████████████████████ 67,695 tokens (+6.0% vs CSV)
├─ vs JSON (−58.8%) 164,254 tokens
├─ vs JSON compact (−35.2%) 104,526 tokens
├─ vs YAML (−48.2%) 130,697 tokens
└─ vs XML (−64.4%) 190,160 tokens<details>
<summary><strong>Show detailed examples</strong></summary>
Savings: 13,130 tokens (59.0% reduction vs JSON)
JSON (22,250 tokens):
{
"metrics": [
{
"date": "2025-01-01",
"views": 5715,
"clicks": 211,
"conversions": 28,
"revenue": 7976.46,
"bounceRate": 0.47
},
{
"date": "2025-01-02",
"views": 7103,
"clicks": 393,
"conversions": 28,
"revenue": 8360.53,
"bounceRate": 0.32
},
{
"date": "2025-01-03",
"views": 7248,
"clicks": 378,
"conversions": 24,
"revenue": 3212.57,
"bounceRate": 0.5
},
{
"date": "2025-01-04",
"views": 2927,
"clicks": 77,
"conversions": 11,
"revenue": 1211.69,
"bounceRate": 0.62
},
{
"date": "2025-01-05",
"views": 3530,
"clicks": 82,
"conversions": 8,
"revenue": 462.77,
"bounceRate": 0.56
}
]
}TOON (9,120 tokens):
metrics[5]{date,views,clicks,conversions,revenue,bounceRate}:
2025-01-01,5715,211,28,7976.46,0.47
2025-01-02,7103,393,28,8360.53,0.32
2025-01-03,7248,378,24,3212.57,0.5
2025-01-04,2927,77,11,1211.69,0.62
2025-01-05,3530,82,8,462.77,0.56Savings: 6,400 tokens (42.3% reduction vs JSON)
JSON (15,144 tokens):
{
"repositories": [
{
"id": 28457823,
"name": "freeCodeCamp",
"repo": "freeCodeCamp/freeCodeCamp",
"description": "freeCodeCamp.org's open-source codebase and curriculum. Learn math, programming,…",
"createdAt": "2014-12-24T17:49:19Z",
"updatedAt": "2025-10-28T11:58:08Z",
"pushedAt": "2025-10-28T10:17:16Z",
"stars": 430886,
"watchers": 8583,
"forks": 42146,
"defaultBranch": "main"
},
{
"id": 132750724,
"name": "build-your-own-x",
"repo": "codecrafters-io/build-your-own-x",
"description": "Master programming by recreating your favorite technologies from scratch.",
"createdAt": "2018-05-09T12:03:18Z",
"updatedAt": "2025-10-28T12:37:11Z",
"pushedAt": "2025-10-10T18:45:01Z",
"stars": 430877,
"watchers": 6332,
"forks": 40453,
"defaultBranch": "master"
},
{
"id": 21737465,
"name": "awesome",
"repo": "sindresorhus/awesome",
"description": "😎 Awesome lists about all kinds of interesting topics",
"createdAt": "2014-07-11T13:42:37Z",
"updatedAt": "2025-10-28T12:40:21Z",
"pushedAt": "2025-10-27T17:57:31Z",
"stars": 410052,
"watchers": 8017,
"forks": 32029,
"defaultBranch": "main"
}
]
}TOON (8,744 tokens):
repositories[3]{id,name,repo,description,createdAt,updatedAt,pushedAt,stars,watchers,forks,defaultBranch}:
28457823,freeCodeCamp,freeCodeCamp/freeCodeCamp,"freeCodeCamp.org's open-source codebase and curriculum. Learn math, programming,…","2014-12-24T17:49:19Z","2025-10-28T11:58:08Z","2025-10-28T10:17:16Z",430886,8583,42146,main
132750724,build-your-own-x,codecrafters-io/build-your-own-x,Master programming by recreating your favorite technologies from scratch.,"2018-05-09T12:03:18Z","2025-10-28T12:37:11Z","2025-10-10T18:45:01Z",430877,6332,40453,master
21737465,awesome,sindresorhus/awesome,😎 Awesome lists about all kinds of interesting topics,"2014-07-11T13:42:37Z","2025-10-28T12:40:21Z","2025-10-27T17:57:31Z",410052,8017,32029,main</details>
<!-- /automd -->
Try TOON instantly with npx:
# Convert JSON to TOON
npx @toon-format/cli input.json -o output.toon
# Pipe from stdin
echo '{"name": "Ada", "role": "dev"}' | npx @toon-format/cliSee the CLI section for all options and examples.
# npm
npm install @toon-format/toon
# pnpm
pnpm add @toon-format/toon
# yarn
yarn add @toon-format/toonExample usage:
import { encode } from "@toon-format/toon";
const data = {
users: [
{ id: 1, name: "Alice", role: "admin" },
{ id: 2, name: "Bob", role: "user" },
],
};
console.log(encode(data));
// users[2]{id,name,role}:
// 1,Alice,admin
// 2,Bob,userStreaming large datasets:
import { encodeLines } from "@toon-format/toon";
const largeData = await fetchThousandsOfRecords();
// Memory-efficient streaming for large data
for (const line of encodeLines(largeData)) {
process.stdout.write(`${line}\n`);
}[!TIP] For streaming decode APIs, see
decodeFromLines()anddecodeStream().
Transforming values with replacer:
import { encode } from "@toon-format/toon";
// Remove sensitive fields
const user = { name: "Alice", password: "secret", email: "alice@example.com" };
const safe = encode(user, {
replacer: (key, value) => (key === "password" ? undefined : value),
});
// name: Alice
// email: alice@example.com
// Transform values
const data = { status: "active", count: 5 };
const transformed = encode(data, {
replacer: (key, value) =>
typeof value === "string" ? value.toUpperCase() : value,
});
// status: ACTIVE
// count: 5[!TIP] The
replacerfunction provides fine-grained control over encoding, similar toJSON.stringify's replacer but with path tracking. See the API Reference for more examples.
Experiment with TOON format interactively using these tools for token comparison, format conversion, and validation.
The TOON Playground lets you convert JSON to TOON in real-time, compare token counts, and share your experiments via URL.
TOON Language Support - Syntax highlighting, validation, conversion, and token analysis.
code --install-extension vishalraut.vscode-toontree-sitter-toon - Grammar for Tree-sitter-compatible editors (Neovim, Helix, Emacs, Zed).
toon.nvim - Lua-based plugin.
Use YAML syntax highlighting as a close approximation.
Command-line tool for quick JSON↔TOON conversions, token analysis, and pipeline integration. Auto-detects format from file extension, supports stdin/stdout workflows, and offers delimiter options for maximum efficiency.
# Encode JSON to TOON (auto-detected)
npx @toon-format/cli input.json -o output.toon
# Decode TOON to JSON (auto-detected)
npx @toon-format/cli data.toon -o output.json
# Pipe from stdin (no argument needed)
cat data.json | npx @toon-format/cli
echo '{"name": "Ada"}' | npx @toon-format/cli
# Output to stdout
npx @toon-format/cli input.json
# Show token savings
npx @toon-format/cli data.json --stats[!TIP] See the full CLI documentation for all options, examples, and advanced usage.
Detailed syntax references, implementation guides, and quick lookups for understanding and using the TOON format.
TOON works best when you show the format instead of describing it. The structure is self-documenting – models parse it naturally once they see the pattern. Wrap data in ```toon code blocks for input, and show the expected header template when asking models to generate TOON. Use tab delimiters for even better token efficiency.
Follow the detailed LLM integration guide for strategies, examples, and validation techniques.
Comprehensive guides, references, and resources to help you get the most out of the TOON format and tools.
TOON has official and community implementations across multiple languages including Python, Rust, Go, Java, Swift, .NET, and many more.
See the full list of implementations in the documentation.
MIT License © 2025-PRESENT Johann Schopplich
© butttons, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in .pi/skills/toon of butttons/dora.
Open the folder on GitHubat commit f4edb8f
Toon next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Toon this skillbutttons/dora | 109 | — | ~9.4k | Automated safety check: Pass | MIT | |
| Iptvnator Sqlite DB Worker4gray/iptvnator | 7.3k | — | ~824 | Automated safety check: Pass | MIT | |
| Analyze Nsys Profilemlc-ai/pith-train | 355 | — | ~1.9k | Automated safety check: Pass | Apache-2.0 | |
| Reactive Sqlite UIfastrepl/anarlog | 9.5k | — | ~699 | Automated safety check: Pass | MIT | |
| Composer Forensicsdxos/dxos | 525 | — | ~3.1k | Automated safety check: Pass | Custom licence | |
| Sqlite Schema Designfastrepl/anarlog | 9.5k | — | ~1.9k | Automated safety check: Pass | MIT |
4gray/iptvnator
A skill your agent uses when changing Electron SQLite IPC, database-worker operations, request-scoped progress or cancellation, worker packaging, or runtime verification of non-EPG database work.
mlc-ai/pith-train
Query a captured PithTrain Nsight Systems profile to measure compute/communication overlap, locate exposed comm by DualPipeV stage, and inspect per-rank stream behavior.
fastrepl/anarlog
Build SQLite-backed reactive UI in apps/desktop using stable patterns for reads, selection, forms, writes, and loading states.
dxos/dxos
Forensically inspect and repair Composer browser profiles — offline (Chrome OPFS / SQLite extract) or live via /recovery.html debug port.
fastrepl/anarlog
Design or review schemas for crates/cloudsync using SQLite Sync constraints, not generic SQLite advice.
deusXmachina-dev/memorylane
Create SQLite migrations for MemoryLane storage schema changes.
Works with
Categories
Token-Oriented Object Notation is a compact, human-readable encoding of the JSON data model that minimizes tokens and makes structure easy for models to follow. Toon is an agent skill from butttons/dora. Token-Oriented Object Notation is a compact, human-readable encoding of the JSON data model that minimizes tokens and makes structure easy for models to follow.
Toon fits situations like: databases work in your project.
Run `npx skills add butttons/dora --skill toon -a claude-code`. Or copy the skill folder (.pi/skills/toon in butttons/dora) into .claude/skills/toon in your project. Claude Code loads it when a task matches its description.
Run `npx skills add butttons/dora --skill toon -a codex`. Or copy the skill folder (.pi/skills/toon in butttons/dora) into .agents/skills/toon in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add butttons/dora --skill toon -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/toon, .gemini/skills/toon, .github/skills/toon and .opencode/skills/toon in your project.
Going by SKILL.md and its folder, Toon needs the command-line tools its instructions call (npx, npm, pnpm and yarn).
SKILL.md names 9 domains. As links in the text: toonformat.dev, github.com, img.shields.io, npmjs.com, curiouslychase.com, toontools.vercel.app, marketplace.visualstudio.com, toon-format.org and x.com. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Toon is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 9.4k tokens (SKILL.md is roughly 38k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Toon: Iptvnator Sqlite DB Worker (4gray/iptvnator, 7.3k stars), Analyze Nsys Profile (mlc-ai/pith-train, 355 stars), Reactive Sqlite UI (fastrepl/anarlog, 9.5k stars) and Composer Forensics (dxos/dxos, 525 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
butttons (a GitHub user) maintains it in butttons/dora, which has 109 GitHub stars. The repository was last updated on March 10, 2026.
Source: butttons/dora on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.