qmetrics.net

TOON

Compact JSON serialization format for LLM prompts

TOON screenshot

TOON encodes JSON-shaped data in a compact, human-readable text form aimed at model prompts. A TypeScript SDK and CLI convert between JSON and TOON with lossless round-trips.

Overview

Token-Oriented Object Notation mirrors the JSON data model while using indentation for nested objects and CSV-like tables for uniform record lists. Row counts and field headers are declared explicitly so models can spot truncated or malformed output.

Uniform arrays of objects gain the largest token savings versus pretty JSON, while deeply nested or irregular structures may stay closer to compact JSON. Authors can keep JSON in code and translate to TOON when building prompts.

Forms include inline primitive arrays, tabular arrays, keyed maps of uniform objects, and list-style fallbacks for mixed shapes. A growing multi-language ecosystem shares one specification and conformance tests.

Published benchmarks compare retrieval accuracy and token counts against JSON, YAML, XML, and CSV on varied datasets. A command-line tool supports encode and decode workflows alongside programmatic SDK usage.

The format is presented as stable but evolving, with community input welcome on the specification.

Key features

  • Lossless JSON round-trip encoding
  • Declared row and field widths
  • Tabular uniform object layout
  • Inline and keyed table forms
  • TypeScript SDK implementation
  • CLI encode and decode tool
  • Shared cross-language conformance tests
  • Benchmarked LLM retrieval accuracy

Use cases

  • Shrinking structured LLM prompts
  • Validating model-generated tables
  • Shipping uniform record lists to models
  • Converting API JSON before inference
  • Cross-language TOON interchange

Tags

Similar software

OpenClaw

Open-source personal AI assistant running on your devices and chat apps

Open-source AI assistant that runs on your own computer and answers in chat apps such as WhatsApp, Telegram, Slack and Discord. State, memory and credentials stay on your hardware.

★ 395.3k⟳ todayMIT
Open Source Alternative to:ChatGPTChatGPT Plus+3

DeepSeek Harness

Open-source plugin-based agent harness from DeepSeek

DeepSeek Harness is an open-source agent harness built on an everything-is-a-plugin architecture powered by Cordis. It offers a web UI, desktop app, and extensible plugins for daily work, coding, and automation.

★ 288k⟳ 6 days agoMIT

Hermes Agent

Self-improving open-source AI agent with memory, skills and messaging gateway

Open-source AI agent from Nous Research that keeps persistent memory, creates skills from experience, and runs from a terminal, desktop app or messaging platforms with any model provider.

★ 266.6k⟳ todayMIT
Open Source Alternative to:Anthropic ClaudeChatGPT+5

Ollama

Run open AI models locally or in the cloud

Ollama runs open language models such as Gemma, Qwen, DeepSeek and gpt-oss on macOS, Windows and Linux, locally or in the cloud. It offers a CLI, a REST API, and Python and JavaScript libraries.

★ 188.3k⟳ 2 days agoMIT
Open Source Alternative to:OpenAI API

Stable Diffusion Webui

Gradio web interface for Stable Diffusion

AUTOMATIC1111’s web UI wraps Stable Diffusion with txt2img, img2img, inpainting, upscalers, training tabs, and a settings-driven Gradio front end. Install scripts target NVIDIA and AMD GPUs plus Apple Silicon.

★ 165.4k⟳ 2 years agoAGPL-3.0
AI Interaction & InterfacesNo commits in 18+ monthsSelf-hostable

Open WebUI

Self-hosted AI interface for Ollama and OpenAI-compatible models

Open WebUI is a self-hosted AI platform that runs offline and connects to local models through Ollama or to cloud models through OpenAI-compatible APIs. It can be extended with Python.

★ 159.7k⟳ 3 days agoBSD-3-Clause
Open Source Alternative to:Anthropic ClaudeChatGPT+4