SwiftyLab/MetaCodable
Supercharge Swift's Codable implementations with macros meta-programming.
Macro-driven code generation leverages Swift 5.9+ macros to automatically synthesize `Codable` conformance, eliminating manual `CodingKey` enums and custom encode/decode methods. It supports advanced patterns like nested key paths via `@CodedIn()`, fallback decoding chains with `@CodedAs()`, flattened structures, enum case tagging, and property-level default values or conditional encoding. Compatible with SPM and CocoaPods across all Apple platforms plus Linux and Windows.
763 stars.
Stars
763
Forks
43
Language
Swift
License
MIT
Category
Last pushed
Feb 18, 2026
Commits (30d)
0
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/ai-coding/SwiftyLab/MetaCodable"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.
Related tools
WendellXY/CodableKit
A Swift macro package designed to simplify the use of Swift's Codable protocol by allowing easy...
yonaskolb/SwagGen
OpenAPI/Swagger 3.0 Parser and Swift code generator
Lighter-swift/Lighter
Swift APIs for SQLite: Type-safe down to the schema. Very, very, fast. Dependency free.
DanielMSchmidt/objective-c-parser
Get the JSON representation of an Objective-C header file
andreadelfante/PredicateFlow
Write amazing, strong-typed and easy-to-read NSPredicate.