# vislyhq/stretch

High performance flexbox implementation written in rust

Repository: https://github.com/vislyhq/stretch
Canonical: https://ross.abutalabs.com/products/stretch
Homepage: https://vislyhq.github.io/stretch/
Language: Rust
License: MIT
License Family: permissive
Topics: rust, flexbox, cross-platform, android, ios
Last push: 2023-01-26T16:14:25+00:00

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

## Adoption (not part of the score)
Stars 2030, forks 106 (observed 2026-08-28T04:06:07.192469+00:00)

## What it is
Stretch is a high-performance Flexbox layout engine written in Rust with bindings for Rust, JavaScript/TypeScript, Kotlin (Android), and Swift (iOS). It computes layout trees compatible with Chrome's flexbox behavior and is optimized for mobile with a small binary footprint.

## Use cases
- compute flexbox layout for native mobile apps
- share layout logic between iOS and Android
- implement a custom UI toolkit with flexbox layout
- replace Yoga or Taffy for cross-platform layout calculation
- lay out nodes in a Rust-rendered application
- test layout results against Chrome's flexbox implementation

## When to choose
- you need fast, cross-platform flexbox layout in Rust, Swift, Kotlin, or JavaScript
- you are building a mobile UI framework or custom rendering engine
- binary size and memory usage on mobile matter
- you need web-compatible flexbox semantics verified against Chrome

## When to avoid
- you need CSS grid or other layout algorithms beyond flexbox
- you want a full UI toolkit with widgets rather than just layout computation
- you need a project with frequent updates and active maintenance
- you only target the web and can use the browser's native flexbox

## Facets
- artifact type: library
- maturity: maintenance
- function: graphics, ui-components, developer-tools
- domain: cross-platform, mobile-development, web-development, graphics
- platform: rust, cross-platform
- tags: flexbox, layout-engine, language-bindings, mobile-optimized, android, ios, nodejs

## Member repositories
- vislyhq/stretch (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:07.192469+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-30T02:59:36.337347+00:00, confidence not recorded.
  - readme: https://github.com/vislyhq/stretch (fetched 2026-08-28T04:06:07.192469+00:00, sha 442b08e59ab4)
  - homepage: https://vislyhq.github.io/stretch/ (fetched 2026-08-29T10:39:26.733124+00:00, sha 3b5be7c1aa4a)
  - registry_crates: https://crates.io/api/v1/crates/stretch (fetched 2026-08-29T10:39:26.742040+00:00, sha 8a682fdec1e6)
- Data as of 2026-08-30T08:39:29.467469+00:00.
