# robb/Cartography

A declarative Auto Layout DSL for Swift :iphone::triangular_ruler:

Repository: https://github.com/robb/Cartography
Canonical: https://ross.abutalabs.com/products/cartography
Language: Swift
License: NOASSERTION
License Family: other
Last push: 2025-09-05T16:39:30+00:00

## Health v2 (maintenance only)
Score: 41/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 40, release rhythm 8, longevity 100
- inputs: {"age_days": 4460, "days_push": 362, "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 7325, forks 527 (observed 2026-08-28T04:09:58.241950+00:00)

## What it is
Cartography is a declarative DSL for building Auto Layout constraints in Swift, replacing verbose NSLayoutConstraint code with concise operator-based syntax. It supports iOS and macOS views, constraint groups, and constraint replacement.

## Use cases
- lay out iOS views with Auto Layout in declarative Swift code
- replace verbose NSLayoutConstraint boilerplate with readable constraints
- animate view layout changes by replacing constraint groups
- define constraints between UIKit or AppKit views using operators

## When to choose
- you build UIKit/AppKit interfaces in Swift and want concise, type-safe Auto Layout code
- you prefer operator-based constraint DSLs over Interface Builder or raw NSLayoutConstraint

## When to avoid
- you use SwiftUI or programmatic layoutAnchor APIs which cover most needs natively
- you need a library under a standard permissive license or with very active development

## Facets
- artifact type: library
- maturity: maintenance
- function: ui-components, developer-tools
- domain: mobile-development, cross-platform
- platform: -
- tags: auto-layout, dsl, constraints, uikit, swift, ios, macos, mobile

## Member repositories
- robb/Cartography (main) score 41

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:58.241950+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:38:38.906029+00:00, confidence not recorded.
  - readme: https://github.com/robb/Cartography (fetched 2026-08-28T04:09:58.241950+00:00, sha 87f46191556c)
- Data as of 2026-08-30T08:39:29.467469+00:00.
