mischasigtermans/laravel-toon
TOON encoding for Laravel. Encode data for AI/LLMs with ~50% fewer tokens than JSON.
This project helps developers working with Large Language Models (LLMs) to optimize the data they send to these models. It takes structured data, like user profiles or database records, and converts it into a highly compact TOON format. The result is significantly smaller data that takes up less of the LLM's context window, allowing more information to be processed or reducing API costs.
129 stars.
Use this if you are building applications with Laravel and frequently send structured data to LLMs, where every token in the prompt matters for cost or context window limitations.
Not ideal if your application does not use Laravel, or if you don't interact with LLMs where token count is a critical concern.
Stars
129
Forks
6
Language
PHP
License
MIT
Category
Last pushed
Jan 21, 2026
Commits (30d)
0
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/llm-tools/mischasigtermans/laravel-toon"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.
Compare
Higher-rated alternatives
toon-format/toon
🎒 Token-Oriented Object Notation (TOON) – Compact, human-readable, schema-aware JSON for LLM...
dweve-ai/hedl
Token-efficient data serialization for LLM/AI. 50% fewer tokens than JSON, 93% better...
tonl-dev/tonl
TONL (Token-Optimized Notation Language)
toon-format/toon-java
☕ Community-driven Java implementation of TOON
ISON-format/ison
🔥 🔥 Alternative to JSON 🔥 🔥