GitHunt
IA

๐Ÿฆ€ ui

Motif

An immediate-mode UI framework for Rust with GPU rendering.

Note: This project is in early development. APIs are unstable.

Features

  • Type-safe geometry with coordinate space distinction (logical vs device pixels)
  • Painter's stack model for hierarchical drawing
  • Metal GPU backend (macOS)
  • Debug CLI for runtime inspection
  • Hot reload support via cargo-hot

Crates

Crate Description
motif Main crate, re-exports core
motif_core Core types, Metal renderer, text system
motif_debug Debug server (Unix socket IPC)
motif_debug_cli motif-debug CLI binary
motif_test Test utilities

Quick Start

cargo run --example playground

Hot Reload

cargo hot --example hot --features hot

Edit crates/motif/examples/hot.rs and save to see live changes.

Debug CLI

cargo install --path crates/motif_debug_cli
motif-debug scene.stats
motif-debug screenshot

See motif_debug_cli/README.md for full command reference.

License

Licensed under either of:

at your option.

Languages

Rust97.8%Shell1.1%Metal1.1%

Contributors

Apache License 2.0
Created February 12, 2026
Updated March 4, 2026