toon_formater 1.0.2 copy "toon_formater: ^1.0.2" to clipboard
toon_formater: ^1.0.2 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.2 2025-01-XX #

Fixed #

  • Updated dependencies to latest compatible versions
  • Fixed repository URL to point to package directory
  • Improved documentation for code generation methods

1.0.1 2025-01-XX #

Fixed #

  • Fixed unnecessary cast warnings in tabular array encoding
  • Added .pubignore to exclude test output files

1.0.0 2025-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
130
points
8
downloads

Publisher

verified publisherabdelrhmantolba.online

Weekly Downloads

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

Documentation

API reference

License

MIT (license)

Dependencies

analyzer, build, meta, source_gen

More

Packages that depend on toon_formater