marksands/BetterCodable
Better Codable through Property Wrappers observed · 2026-08-28
Health v2 · maintenance only
23/100
- Activity 0
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 2510
- days_rel: n/a
- days_push: 1014
- n_releases_24m: 0
Adoption not part of the score
1804 stars · 82 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A Swift library providing property wrappers like @LossyArray, @LossyDictionary, and @DefaultCodable that simplify Codable JSON decoding. It eliminates boilerplate custom Decodable initializers by handling nulls, invalid elements, and default values declaratively.
Use cases
- decode json arrays filtering out null or invalid elements
- provide default values for missing json fields in swift structs
- avoid writing custom init(from decoder:) boilerplate
- tolerate messy api responses with null values
- decode dictionaries while dropping invalid key-value pairs
When to choose
- your swift app consumes json apis with inconsistent or null data
- you want declarative, wrapper-based Codable customization instead of manual initializers
- you use Swift 5.1+ with Swift Package Manager
When to avoid
- you need strict decoding that fails on any malformed data
- your project targets Swift versions before 5.1
- you need wrappers for formats beyond what the library provides and don't want to write custom strategies
Facets
library · maturity maintenance
serialization parser developer-tools apis mobile-development codable property-wrappers json-decoding swift-package-manager swift ios macos
2 sources
- readme: https://github.com/marksands/BetterCodable · fetched 2026-08-28 · 0c0b55a6bf2e
- homepage: http://marksands.github.io/2019/10/21/better-codable-through-property-wrappers.html · fetched 2026-08-29 · 9b5afe8a9292
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| marksands/BetterCodable | main | 23 |
For agents
markdown · JSON · MCP: product_card(name="marksands/BetterCodable")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem