sbsaga/toon
TOON — Laravel AI package for compact, human-readable, token-efficient data format with JSON ⇄ TOON conversion for ChatGPT, OpenAI, and other LLM prompts.
This package helps Laravel developers working with AI to efficiently send structured data to large language models (LLMs) or store it in logs. It takes your existing JSON or PHP array data and converts it into a more compact, human-readable 'TOON' format. This makes your prompts more token-efficient for services like ChatGPT, and your debug logs cleaner. This is for developers building applications with Laravel and integrating with AI services.
Use this if you are a Laravel developer sending structured data to AI models or storing it in logs, and you want to reduce token usage and improve human readability compared to standard JSON.
Not ideal if your primary goal is maximum data compression for long-term storage or if you are not working within the Laravel PHP framework.
Stars
57
Forks
8
Language
PHP
License
MIT
Category
Last pushed
Jan 03, 2026
Commits (30d)
0
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/prompt-engineering/sbsaga/toon"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.
Compare
Higher-rated alternatives
connectaman/LoPace
LoPace is a bi-directional encoding framework designed to reduce the storage footprint of...
LakshmiN5/promptqc
ESLint for your system prompts — catch contradictions, anti-patterns, injection vulnerabilities,...
roli-lpci/lintlang
Static linter for AI agent tool descriptions, system prompts, and configs. Catches vague...
nooscraft/tokuin
CLI tool – estimates LLM tokens/costs and runs provider-aware load tests for OpenAI, Anthropic,...
therohanparmar/t3-toon
TOON for TYPO3 — a compact, human-readable, and token-efficient data format for AI prompts & LLM...