# JohnSundell/Codextended

Extensions giving Swift's Codable API type inference super powers 🦸‍♂️🦹‍♀️

Repository: https://github.com/JohnSundell/Codextended
Canonical: https://ross.abutalabs.com/products/codextended
Language: Swift
License: MIT
License Family: permissive
Topics: swift, codable, json-parsing, type-inference
Last push: 2021-04-11T19:36:14+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 2706, "days_push": 1970, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1510, forks 86 (observed 2026-08-28T04:04:55.851554+00:00)

## What it is
Codextended is a lightweight Swift library of extensions that augments the built-in Codable API with type inference-powered conveniences. It reduces boilerplate for encoding and decoding values, such as one-liner encode/decode calls and easy key-level customization.

## Use cases
- decode  into swift types with less boilerplate
- encode swift structs to  in one line
- provide default values for missing keys when decoding
- transform values during decoding
- simplify custom codable implementations
- avoid verbose JSONEncoder/JSONDecoder setup

## When to choose
- you use Swift's Codable and want terser, type-inferred encode/decode calls
- you need lightweight key-level customization without a full serialization framework
- you want a zero-dependency extension layer over Codable on macOS or Linux

## When to avoid
- you need serialization formats beyond what Codable supports
- you want a full-featured JSON mapping framework with heavy customization
- you need a library with frequent updates and active maintenance

## Facets
- artifact type: library
- maturity: maintenance
- function: serialization, parser
- domain: developer-tools, programming-languages, apis
- platform: -
- tags: codable, -parsing, type-inference, swift-package-manager, extensions, macos, linux, swift

## Member repositories
- JohnSundell/Codextended (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:55.851554+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:32:24.540011+00:00, confidence not recorded.
  - readme: https://github.com/JohnSundell/Codextended (fetched 2026-08-28T04:04:55.851554+00:00, sha 356709a91b15)
- Data as of 2026-08-30T08:39:29.467469+00:00.
