r.b/ All workStart a project
01 / CLIENT PROJECT

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.

SECTORAI developer tooling
ROLERuby gem author
TECHNOLOGIESRuby · Serialization · LLM optimization
01
Ruby gem author
THE CHALLENGE

JSON is expressive but verbose, which increases token usage and makes structured data harder to scan in LLM workflows.

THE OUTCOME

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.

NEXT PROJECTHimalayan Bowl & Juice Bar

Have a similar challenge?

Let’s talk about your project