
DevOp.Toon is a .NET SDK and integration framework for working with TOON (Token-Oriented Object Notation), enabling efficient, structured communication with LLMs and APIs.
It is built for teams that care about transport efficiency, storage footprint, and predictable application integration. You can use it as a simple serializer, a reusable DI service, or a bridge between JSON and TOON while you adopt the format incrementally.
DevOp.Toon implements the Toon Format and extends the protocol with additional optimizations to further reduce token count and payload size.
The existing Toon Format Dotnet reference implementation showed promising size gains but had significant performance gaps relative to System.Text.Json. Rather than patching the upstream project, DevOp.Toon was built from the ground up to close those gaps — resulting in the DevOp.Toon, DevOp.Toon.Core, and DevOp.Toon.API package family.
Up to 77.7% smaller than JSON
TOON removes repeated keys and compresses structure:
Savings continue even after compression:
Faster where it matters
DevOp.Toon is optimized for real-world data:
Use TOON when:
DevOp.Toon is designed for:
ToonEncoder for writing TOONToonDecoder for reading TOONToonService and IToonService for application-level useAddToon(...) for dependency injectionThis package is strongest when payloads contain repeated object rows, nested collections, or catalog-style business data, for example:
If you are evaluating the package for the first time, read these pages in order:
| Package | Use it for |
|---|---|
| DevOp.Toon | Runtime serialization, dependency injection, and JSON interoperability |
| DevOp.Toon.Core | Lightweight contracts, shared enums, and DTO attributes |
| DevOp.Toon.API | ASP.NET Core MVC request and response formatters |
| DevOp.Toon.Client | Typed HTTP access to TOON-first APIs |
See Installation and Package Selection for guidance on which packages belong in each application layer.
For engineering readers: protocol notes, API reference, build configuration, and contributor guidance are included later in the tree so the space stays approachable for new users.
https://www.nuget.org/packages/DevOp.Toon
