# slightlyoff/cassowary.js

Cassowary/JS, better, faster, future-ready

Repository: https://github.com/slightlyoff/cassowary.js
Canonical: https://ross.abutalabs.com/products/cassowaryjs
Language: JavaScript
License: NOASSERTION
License Family: other
Last push: 2017-06-11T19:33:45+00:00

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

## Adoption (not part of the score)
Stars 1732, forks 107 (observed 2026-08-28T04:05:28.818238+00:00)

## What it is
A JavaScript port of the Cassowary incremental constraint-solving toolkit, used to compute flexible, responsive layouts from weighted constraints. It powers constraint-based UI layout systems similar to Apple's Auto Layout and runs in browsers, web workers, and Node.js.

## Use cases
- solve weighted constraint systems in JavaScript
- build responsive UI layouts from declarative constraints
- implement Auto Layout-style layout engines
- incrementally re-solve constraints when inputs change
- run a simplex-based constraint solver in a web worker

## When to choose
- you need incremental, weighted constraint solving for UI layout
- you want a dependency-free, fast Cassowary solver in JS
- you're building a layout system or design tool driven by constraints

## When to avoid
- you need general-purpose optimization beyond linear constraints
- you need an actively maintained library with recent updates
- you just need CSS flexbox/grid for standard layouts

## Facets
- artifact type: library
- maturity: maintenance
- function: math, developer-tools
- domain: web-development, frontend, graphics
- platform: browser, cli
- tags: constraint-solver, cassowary, layout-engine, simplex-method, ui-layout, algorithms, nodejs, javascript

## Member repositories
- slightlyoff/cassowary.js (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:28.818238+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-30T03:31:31.549517+00:00, confidence not recorded.
  - readme: https://github.com/slightlyoff/cassowary.js (fetched 2026-08-28T04:05:28.818238+00:00, sha 5796fa954561)
- Data as of 2026-08-30T08:39:29.467469+00:00.
