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.
This project helps Swift developers streamline how their data structures convert to and from formats like JSON or property lists. It takes your Swift data models and, using special annotations, automatically generates the complex code needed to handle data serialization and deserialization. It's designed for Swift app developers who regularly work with external data sources and need efficient, less error-prone ways to map that data to their app's internal structures.
About swift-codable-macro
Star-Lord-PHB/swift-codable-macro
Macros for automatically generating customizable conformance to `Codable` protocol.
This helps Swift developers more easily work with data from external sources like REST APIs, where the incoming data structure doesn't perfectly match their application's data models. Instead of writing extensive manual code to convert data, developers can use macros to automatically generate the necessary `Codable` conformance. This project is for Swift application developers who need to integrate with external data formats without boilerplate.
Related comparisons
Scores updated daily from GitHub, PyPI, and npm data. How scores work