MetaCodable and swift-codable-macro
These are competitors—both use Swift macros to auto-generate `Codable` conformance with customization options, serving the same use case of reducing boilerplate for encoding/decoding, with MetaCodable being the more mature and adopted option.
About MetaCodable
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.
About swift-codable-macro
Star-Lord-PHB/swift-codable-macro
Macros for automatically generating customizable conformance to `Codable` protocol.
Related comparisons
Scores updated daily from GitHub, PyPI, and npm data. How scores work