# cashapp/contour

Layouts with lambdas 😎

Repository: https://github.com/cashapp/contour
Canonical: https://ross.abutalabs.com/products/cashapp-contour
Language: Kotlin
License: Apache-2.0
License Family: permissive
Topics: kotlin, android, layouts
Archived: true
Last push: 2023-05-22T19:09:49+00:00

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

## Adoption (not part of the score)
Stars 1526, forks 55 (observed 2026-08-28T04:04:58.392044+00:00)

## What it is
Contour is a Kotlin-first Android layout library that lets developers define view position and size with executable lambdas instead of XML constraints, acting as a thin typesafe wrapper around Android's layout APIs. It is now deprecated, with development ceased in favor of Jetpack Compose.

## Use cases
- build android layouts in pure kotlin without xml
- define view constraints as lambdas instead of xml
- replace constraintlayout xml with programmatic layout code
- create dynamic layouts that adapt to screen size at runtime
- avoid findViewById and R.id ambiguity in android views
- do runtime a/b testing of android ui components

## When to choose
- maintaining an existing android app already built with Contour
- you want programmatic kotlin-only layouts on a legacy non-Compose codebase

## When to avoid
- starting a new android project - use Jetpack Compose instead
- you need a library with active development and community support
- your team prefers xml or standard constraintlayout workflows

## Facets
- artifact type: library
- maturity: abandoned
- function: ui-components, mobile-framework
- domain: mobile-development, frontend, android-tools
- platform: -
- tags: kotlin, layouts, android-ui, deprecated, constraint-layout, declarative-ui, android

## Member repositories
- cashapp/contour (main) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:58.392044+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:31:36.493263+00:00, confidence not recorded.
  - readme: https://github.com/cashapp/contour (fetched 2026-08-28T04:04:58.392044+00:00, sha 19a254e34105)
- Data as of 2026-08-30T08:39:29.467469+00:00.
