toon

TOON (Token-Oriented Object Notation), JSON veri modelinin LLM istemleri için jeton tasarruflu, okunabilir bir kodlamasıdır. Girintiyle iç içe nesneleri, CSV benzeri tablo biçimiyle tekdüze nesne dizilerini birleştirir ve kayıpsız dönüşüm sağlar. Resmî TypeScript uygulaması, CLI ve kıyaslamalar sunar; MIT lisanslıdır.

TO

toon

New80

toon-format · AI / LLM / RAG

STARS25.6K
FORKS1.1K
COMMITS0
CONTRIBUTORS0
VERSIONv4.4.0
UPDATED22 days ago
data-formatllmserializationtokenizationMIT

Common commercial products in this category: ChatGPT, Claude, Gemini

What can it do?
  • JSON verini LLM'e göndermeden önce TOON'a çevirip jeton harcamasını azaltırsın
  • Tekdüze nesne dizilerini alan listesi bir kez yazılan tablo biçiminde ifade edersin
  • Dizi uzunluğunu [N] ve alan listesini {alanlar} ile bildirerek eksik veya bozuk çıktıyı yakalarsın
User reviews
  • • NeutralHacker News

    TOON – Token Oriented Object Notation

    “If you instead put parentheses around the lexical sequences, then you wouldn't need syntax like `[3]` to denote length. You also wouldn't need indentation levels to be syntactically meaningful. You could also get rid of LLM tokens like square brackets, curly braces, colons, and…”

  • • NeutralHacker News

    TOON – Token Oriented Object Notation

    “FWIW, I ran a test comparing LLM accuracy with TOON versus JSON, CSV and a variety of other formats when using them to represent tabular data: I've only looked at one model (gpt-4.1-nano) so far. I'm hoping to run similar tests on some other models but it gets challenging to…”

Verified against README · Oct 30, 2026 · source

My note

Alternative pages

More in: AI / LLM / RAG