qmetrics.net

Nicbarker CLAY

High performance C UI auto layout library

Nicbarker CLAY screenshot

Clay is a 2D UI layout engine in C with a flex-box-like model, declarative element macros, and microsecond-scale layout times. It emits renderer-agnostic primitives for games, native apps, WASM in the browser, or HTML.

Overview

Clay (C Layout) targets developers who need responsive interface layout without tying themselves to one graphics stack. It uses nested declarative macros in C that mirror familiar UI hierarchy patterns while remaining ordinary C code with loops and conditionals.

The layout model supports text wrapping, scroll containers, aspect-ratio scaling, floating overlays, and pointer-driven scrolling. A transition API can animate layout and style properties. Layout results arrive as a sorted list of render commands (rectangles, text, images) that any engine or an HTML backend can consume.

The implementation ships as a single header with no external dependencies and static arena memory without malloc. It can compile to a small WASM bundle for browser use. Official examples include Raylib, WebGL canvas, and an HTML renderer; the project site itself is laid out with Clay.

Built-in inspector-style debug tooling overlays hierarchy and configuration. Bindings and ports exist for languages beyond C, listed in the project documentation.

Key features

  • Microsecond layout performance
  • Flex-box-like responsive model
  • Single header, zero dependencies
  • WASM build for browsers
  • Static arena memory, no malloc
  • Transition API for animations
  • Renderer-agnostic render commands
  • Built-in layout debug inspector

Use cases

  • Custom game engine UI layout
  • Browser UIs via WASM
  • Retained-mode rendering integration
  • Immediate-mode UI redraw each frame

Tags

Similar software

Manim

Programmatic animation engine for explanatory math videos

ManimGL drives precise programmatic animations for explanatory math videos. The 3Blue1Brown variant installs via the manimgl package

★ 97k⟳ 2 months agoMIT
Frameworks & PlatformsDesktop/CLI app

ImGui

Minimal immediate-mode C++ graphical user interface library

Dear ImGui is a portable C++ GUI library that emits draw batches for your renderer. It targets debug tools, editors, and in-engine tooling rather than consumer-facing apps.

★ 77.3k⟳ yesterdayMIT
Frameworks & PlatformsDesktop/CLI app

Anime.js

JavaScript library for web animations

Anime.js animates CSS properties, SVG, DOM attributes, and JavaScript objects through a modular ES module API for browsers and npm installs.

★ 75.1k⟳ 3 months agoMIT
Frameworks & PlatformsDesktop/CLI app

AdminLTE

Bootstrap 5 responsive admin dashboard UI template

AdminLTE is a responsive admin dashboard template on Bootstrap 5 with vanilla JavaScript, reusable components, and demo pages for back-office UIs.

★ 45.7k⟳ yesterdayMIT
Frameworks & PlatformsDesktop/CLI app

Chakra UI

Accessible modular React component system for web apps

Chakra UI is a React component system for building web applications and design systems. Components emphasize accessibility and work with modern React frameworks including Next.js.

★ 40.8k⟳ 2 days agoMIT
Frameworks & PlatformsDesktop/CLI app

xyflow

Node-based UI libraries for React, Svelte, and Vue

xyflow maintains React Flow, Svelte Flow, and Vue Flow—libraries for building customizable node-based editors and interactive diagrams in those frameworks.

★ 39.2k⟳ 4 days agoMIT
Frameworks & PlatformsDesktop/CLI app