{"repo":"WendellXY/CodableKit","free":true,"listed":false,"github":"https://github.com/WendellXY/CodableKit","clone":"git clone https://github.com/WendellXY/CodableKit.git","description":"A Swift macro package designed to simplify the use of Swift's Codable protocol by allowing easy integration of default values, reducing the amount of auxiliary code you need to write.","language":"Swift","stars":51,"topics":["codable","macro","swift","code-generation","metaprogramming","swift-macros","swift-package","swift-package-manager"],"license":"MIT","category":"dev-tools","readme_excerpt":"CodableKit Compile-time Codable macros for resilient Swift models. - One-line @Codable , @Encodable , and @Decodable synthesis - Default-aware decoding, nested keys, and graceful fallbacks - Raw-string transcoding, lossy collections, and transformer pipelines - Derived properties computed from already-decoded fields via @DerivedKey - Explicit lifecycle hooks with deterministic generated code CodableKit is a Swift macro package built for the JSON you actually receive: nested payloads, string-encoded objects, partially invalid arrays, and schemas that drift over time. It keeps configuration close to each property, surfaces mistakes with compile-time diagnostics, and avoids runtime reflection or hidden magic. Quick Start · Feature Highlights · Targets · Installation · Migration Guide · Roadmap Quick Start That single model gets generated CodingKeys , init(from:) , and encode(to:) implementations with nested key support, default fallback behavior, and an explicit post-decode hook. Feature Highlights Capability Example What you get --- --- --- Generated conformance @Codable , @Encodable , @Decodable Compile-time synthesis with predictable output Default values var retries: Int = 3 Missing keys can fall back without hand-written decode code Nested coding keys @CodableKey(\"profile.info.name\") Deep key-path mapping without manual containers Graceful failure @CodableKey(options: .useDefaultOnFailure) Recover from bad payloads by falling back to defaults or nil Raw-string transcoding @","default_branch":null,"files":null,"tree":[],"storefront":"/r/WendellXY","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/WendellXY/CodableKit/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}