toon-format/toon-java

☕ Community-driven Java implementation of TOON

52
/ 100
Established

This project helps Java developers convert their Java objects or existing JSON data into the TOON format, a compact, human-readable serialization format designed to significantly reduce token count for Large Language Model (LLM) contexts. It takes standard Java data structures or JSON strings as input and produces TOON-formatted text, ideal for anyone working with LLMs who needs to optimize prompt length.

140 stars.

Use this if you are a Java developer building applications that interact with Large Language Models and need to efficiently serialize data to reduce token usage and cost.

Not ideal if you are not a Java developer or if your primary goal is general-purpose data serialization not specifically aimed at LLM context optimization.

LLM-prompt-engineering Java-development data-serialization token-optimization AI-application-development
No Package No Dependents
Maintenance 10 / 25
Adoption 10 / 25
Maturity 13 / 25
Community 19 / 25

How are scores calculated?

Stars

140

Forks

24

Language

Java

License

MIT

Last pushed

Mar 05, 2026

Commits (30d)

0

Get this data via API

curl "https://pt-edge.onrender.com/api/v1/quality/llm-tools/toon-format/toon-java"

Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.