# DioxusLabs/taffy

A high performance rust-powered UI layout library

Repository: https://github.com/DioxusLabs/taffy
Canonical: https://ross.abutalabs.com/products/taffy
Homepage: https://docs.rs/taffy
Language: Rust
License: MIT
License Family: permissive
Topics: flexbox, ui, hacktoberfest, rust, css-grid, layout
Last push: 2026-08-26T22:21:30+00:00

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

## Adoption (not part of the score)
Stars 3539, forks 216 (observed 2026-08-28T04:08:09.162796+00:00)

## What it is
Taffy is a high-performance, cross-platform UI layout library written in Rust that implements the CSS Flexbox, Grid, and Block layout algorithms. It computes sizes and positions for a tree of styled UI nodes and is designed as a dependency for GUI toolkits, game engines, and web engines like Bevy, Servo, Zed, and Slint.

## Use cases
- compute flexbox layout for a custom GUI toolkit in Rust
- implement CSS grid layout in a game engine UI
- lay out terminal UI interfaces
- build a web browser layout engine
- replace Yoga or Stretch as a layout engine in a Rust UI framework
- position UI widgets in a text editor interface

## When to choose
- you need spec-compliant Flexbox, Grid, or Block layout in Rust
- you are building a GUI library, game engine, or web engine and want a battle-tested layout dependency
- you need high-performance incremental layout with caching
- you want a pure layout engine with no rendering or styling opinions

## When to avoid
- you need a full UI toolkit with rendering, input, or widgets - Taffy only computes layout
- you need CSS layout in a web browser via JavaScript - use the browser's native engine instead
- you need layout paradigms beyond Flexbox, Grid, and Block (e.g. full CSS positioning support is still limited)

## Facets
- artifact type: library
- maturity: active
- function: ui-components, graphics, gui
- domain: graphics, cross-platform, developer-tools
- platform: rust, cross-platform
- tags: flexbox, css-grid, layout-engine, ui-layout, css-block-layout, no-rendering, game-development

## Member repositories
- DioxusLabs/taffy (main) score 99

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:09.162796+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-29T18:34:36.389159+00:00, confidence not recorded.
  - readme: https://github.com/DioxusLabs/taffy (fetched 2026-08-28T04:08:09.162796+00:00, sha b4a6e078d708)
  - homepage: https://docs.rs/taffy (fetched 2026-08-29T09:28:48.821942+00:00, sha 1ffb81e90006)
  - site_page: https://docs.rs/crate/taffy/latest/features (fetched 2026-08-29T09:28:48.830221+00:00, sha 3bde1532f9cc)
  - site_page: https://docs.rs/ (fetched 2026-08-29T09:28:48.824818+00:00, sha 8b6abf4d50a5)
  - site_page: https://docs.rs/crate/taffy/latest (fetched 2026-08-29T09:28:48.826649+00:00, sha 283d1614ca2b)
  - site_page: https://docs.rs/document-features/^0.2.7 (fetched 2026-08-29T09:28:48.828421+00:00, sha 69b8abc187ee)
  - site_page: https://docs.rs/about (fetched 2026-08-29T09:28:48.831863+00:00, sha 29ab7986fbf5)
  - site_page: https://docs.rs/about/badges (fetched 2026-08-29T09:28:48.833466+00:00, sha 6588cac258af)
  - site_page: https://docs.rs/about/builds (fetched 2026-08-29T09:28:48.835036+00:00, sha 811231ca4680)
  - site_page: https://docs.rs/about/metadata (fetched 2026-08-29T09:28:48.836737+00:00, sha 0dcdccb2b2b2)
- Data as of 2026-08-30T08:39:29.467469+00:00.
