
Toonify
An open-source Ruby gem for Token-Oriented Object Notation, a compact and human-readable format designed to pass structured data to large language models.
JSON is expressive but verbose, which increases token usage and makes structured data harder to scan in LLM workflows.
A reusable open-source gem that helps developers reduce structural noise when preparing data for LLMs while keeping output readable.
Overview
An open-source Ruby gem for Token-Oriented Object Notation, a compact and human-readable format designed to pass structured data to large language models.
The challenge
JSON is expressive but verbose, which increases token usage and makes structured data harder to scan in LLM workflows.
Development
Created a Ruby library that converts between JSON and concise TOON notation, including nested objects and tabular arrays.
Technology architecture
Ruby, Serialization, LLM optimization. Created a Ruby library that converts between JSON and concise TOON notation, including nested objects and tabular arrays.
Results
A reusable open-source gem that helps developers reduce structural noise when preparing data for LLMs while keeping output readable.
About this case study
Project scope and contributions supplied by Ranjan Bir Bajracharya. Diagrams illustrate the workflow; they are not product screenshots.