# Mantle/Mantle

Model framework for Cocoa and Cocoa Touch

Repository: https://github.com/Mantle/Mantle
Canonical: https://ross.abutalabs.com/products/mantle
Language: Objective-C
License: NOASSERTION
License Family: other
Topics: objective-c, json, boilerplate
Last push: 2022-10-18T09:40:02+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 5110, "days_push": 1415, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 11255, forks 1465 (observed 2026-08-28T04:10:46.560192+00:00)

## What it is
Mantle is an Objective-C model framework for Cocoa and Cocoa Touch that simplifies writing model objects by reducing boilerplate for JSON deserialization, serialization, and NSCoding/NSCopying support. It provides a base model class with automatic key mapping and value transformation.

## Use cases
- map JSON API responses to Objective-C model objects
- reduce boilerplate in iOS model classes
- implement NSCoding and NSCopying without repetitive code
- deserialize nested JSON dictionaries into typed models
- serialize models back to JSON for persistence or networking

## When to choose
- you maintain an Objective-C Cocoa or Cocoa Touch app with a JSON-backed model layer
- you want battle-tested JSON-to-model mapping without hand-writing initializers
- your project already uses CocoaPods, Carthage, or SPM and needs a lightweight model framework

## When to avoid
- you are starting a new Swift project - Swift's Codable is the modern standard
- you need cross-platform serialization outside Apple ecosystems
- you require active development or frequent updates - the project is in maintenance mode

## Facets
- artifact type: library
- maturity: maintenance
- function: serialization, developer-tools
- domain: developer-tools, mobile-development, web-development
- platform: cpp
- tags: objective-c, model-layer, json-mapping, cocoa, cocoa-touch, boilerplate-reduction, macos, ios, swift

## Member repositories
- Mantle/Mantle (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:46.560192+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-29T17:16:24.712149+00:00, confidence not recorded.
  - readme: https://github.com/Mantle/Mantle (fetched 2026-08-28T04:10:46.560192+00:00, sha 926e065a4f21)
- Data as of 2026-08-30T08:39:29.467469+00:00.
