CodableKit and swift-codable-macro
These are competitors offering overlapping solutions for reducing boilerplate in Swift's Codable implementation, though CodableKit focuses specifically on default values while swift-codable-macro emphasizes customizable conformance generation.
About CodableKit
WendellXY/CodableKit
A Swift macro package designed to simplify the use of Swift's Codable protocol by allowing easy integration of default values, reducing the amount of auxiliary code you need to write.
This package helps Swift developers reliably handle incoming and outgoing JSON data, even when it's poorly structured or changes frequently. It takes your Swift data models and automatically generates the necessary code to convert them to and from JSON, letting you define how to handle missing data or complex nesting. Mobile app developers, backend engineers, or anyone building applications that interact with external APIs will find this useful.
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