toon_formater 1.0.0 copy "toon_formater: ^1.0.0" to clipboard
toon_formater: ^1.0.0 copied to clipboard

Token-Oriented Object Notation (TOON) – A compact, deterministic JSON format for LLM prompts (Dart implementation)

Changelog #

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

1.0.0 2024-01-XX #

Added #

  • Initial release of TOON formatter for Dart/Flutter
  • encode() function to convert Dart objects to TOON format
  • decode() function to parse TOON format strings
  • Support for all JSON types: primitives, objects, arrays
  • Tabular array format for uniform object arrays
  • Code generation support via @ToonSerializable annotation
  • Comprehensive test suite (150+ tests)
  • Performance benchmarks comparing TOON vs JSON
  • Support for custom encoding options (indent, delimiter)
  • String escaping and validation utilities

Features #

  • Compact format: up to 44% smaller than JSON for structured data
  • Fast decoding: up to 18,000x faster than JSON parsing
  • Deterministic output for consistent LLM prompts
  • Type-safe code generation for model classes
0
likes
0
points
22
downloads

Publisher

verified publisherabdelrhmantolba.online

Weekly Downloads

Token-Oriented Object Notation (TOON) – A compact, deterministic JSON format for LLM prompts (Dart implementation)

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

analyzer, build, meta, source_gen

More

Packages that depend on toon_formater