# react/yoga

Yoga is an embeddable layout engine targeting web standards.

Repository: https://github.com/react/yoga
Canonical: https://ross.abutalabs.com/products/yoga
Homepage: https://yogalayout.dev/
Language: C++
License: MIT
License Family: permissive
Last push: 2026-08-24T10:51:31+00:00

## Health v2 (maintenance only)
Score: 79/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 40, longevity 100
- inputs: {"age_days": 4532, "days_push": 9, "days_rel": 629, "gap_med": 10, "n_releases_24m": 2}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 18889, forks 1555 (observed 2026-08-28T04:11:27.192798+00:00)

## What it is
Yoga is an embeddable, high-performance flexbox layout engine written in C++ with a public C API and bindings for multiple languages. It computes the size and position of boxes using a familiar subset of CSS, and powers UI frameworks like React Native.

## Use cases
- compute flexbox layout for a native UI framework
- share layout code between native platforms and the browser
- embed a CSS flexbox layout engine in a C++ application
- calculate element positions without a browser rendering engine
- build a custom UI toolkit with web-standard layout

## When to choose
- you need fast, embeddable flexbox layout without a full UI framework
- you want consistent layout behavior across web and native platforms
- you need layout computation in C++, Java, JavaScript, or other languages via bindings

## When to avoid
- you need a complete UI framework with drawing and interaction
- you need full CSS support beyond the Flexbox subset
- you only target the browser, where native CSS layout suffices

## Facets
- artifact type: library
- maturity: active
- function: ui-components, graphics
- domain: cross-platform, frontend, mobile-development, web-development
- platform: cpp, cross-platform, python, jvm
- tags: flexbox, layout-engine, css, react-native, bindings, nodejs

## Member repositories
- react/yoga (main) score 79

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:11:27.192798+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:01:16.552019+00:00, confidence not recorded.
  - readme: https://github.com/react/yoga (fetched 2026-08-28T04:11:27.192798+00:00, sha 1cfaa744c194)
  - homepage: https://yogalayout.dev/ (fetched 2026-08-29T07:59:08.871064+00:00, sha 3e65abf77ccc)
  - site_page: https://www.yogalayout.dev/docs/about-yoga (fetched 2026-08-29T07:59:08.873870+00:00, sha ea23cadf8378)
- Data as of 2026-08-30T08:39:29.467469+00:00.
