Back to directory

Yoga

An embeddable, performant flexbox layout engine with bindings for multiple languages, targeting web layout standards.

Yoga

Yoga is an embeddable and performant flexbox layout engine with bindings for multiple languages, implementing layout according to web standards so it can be embedded in non-web environments. Its main implementation targets C++20, with accompanying build logic in CMake, and a wrapper script builds the library and runs its unit tests, optionally using Ninja for faster builds if it is installed.

Many of Yoga's own tests are generated automatically from HTML fixtures that describe a node structure; these fixtures are rendered in Chrome to produce an expected layout result for the corresponding tree, and new fixtures can be added under gentest/fixtures and turned into tests with a yarn gentest command after installing dependencies with Yarn Classic.

The project is part of the vcpkg collection of ports maintained by Microsoft and community contributors, and ships a VS Code launch configuration for debugging its C++ unit tests with lldb or the Visual Studio debugger.

More in Libraries

See all 292
  • OpenDecision

    deepanwadhwa.github.io

    An open-source Python package that answers typed questions about application state or documents using a local natural-language-inference model, returning structured choice, score, yes/no or evidence-relation values instead of free text.

  • TradeCanvas

    bonguynvan.github.io

    A zero-dependency canvas charting engine for building TradingView-style trading charts in JavaScript, with 66 technical indicators, 24 drawing tools, 17 chart types, and real-time streaming.

  • 3d retro graphics

    3d-retro.com

    A free, CC0-licensed library of copy-paste retro 3D and demoscene graphics effects, such as plasma, raytracing, and voxel terrain, runnable as WebGL 1 or plain 2D canvas.