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.

MetaCodable
50
Established
swift-codable-macro
23
Experimental
Maintenance 10/25
Adoption 10/25
Maturity 16/25
Community 14/25
Maintenance 2/25
Adoption 4/25
Maturity 9/25
Community 8/25
Stars: 763
Forks: 43
Downloads:
Commits (30d): 0
Language: Swift
License: MIT
Stars: 8
Forks: 1
Downloads:
Commits (30d): 0
Language: Swift
License: MIT
No Package No Dependents
Stale 6m No Package No Dependents

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