Hasty Briefsbeta

Codables – Swift-inspired, declarative JSON serialization

18 days ago
  • #Serialization
  • #TypeScript
  • #JSON
  • CodableJSON is a declarative JSON serialization library for TypeScript/JavaScript.
  • Uses decorators (@codableClass and @codable) to mark data model classes as serializable.
  • 3x faster than SuperJSON, with benchmarks to prove it.
  • Features include declarative and extensible design, type-safety, zero dependencies, and framework agnosticism.
  • Supports a wide range of JavaScript types out of the box, including Date, Map, Set, and more.
  • Includes security features like built-in protection against prototype pollution.
  • Offers a playground for experimentation and comprehensive documentation.
  • Installable via npm, yarn, or pnpm.
  • Provides both high-level (declarative) and low-level (custom types) APIs.
  • MIT licensed.