Taffy LayoutThe High-Performance Layout Engine
A flexible, high-performance flexbox and grid layout engine for the web, mobile, and beyond. Built with Rust and WASM.
- Flexbox and Grid layouts without a DOM.
- Fast, deterministic layout for custom renderers.
- Portable API built for real-world UI engines.
GRID
ROW
COL
Why Taffy
Lightning Fast
Written in Rust and compiled to WebAssembly. Benchmarked for maximum efficiency and minimal latency.
Flexbox & Grid
CSS Flexbox and Grid layout algorithms for computing positions and sizes without a browser DOM.
Modern Standard
Familiar CSS layout concepts exposed through a typed JavaScript API. See the styling guide for supported properties and values.
Multi-Platform
Run everywhere. Perfect for game engines, desktop apps, mobile frameworks, and high-performance web apps.