SwiftyLab/MetaCodable

Supercharge Swift's Codable implementations with macros meta-programming.

50
/ 100
Established

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.

No Package No Dependents
Maintenance 10 / 25
Adoption 10 / 25
Maturity 16 / 25
Community 14 / 25

How are scores calculated?

Stars

763

Forks

43

Language

Swift

License

MIT

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.