A native GPU-rendered Rust UI framework for macOS, Windows, Linux and the web, with its own renderer, text, layout and springs.
open sourceMITself-hostablefree
Rune is a Rust UI framework from Anomaly, the makers of OpenCode, that draws everything itself on the GPU (its own Metal backend on macOS, wgpu elsewhere) with Taffy layout, its own text engine and spring animation. Apps describe their interface with a view function over state; the runtime diffs it and animates property changes without re-running views. Every app can also run headless with a fixed virtual clock, so a coding agent can render PNGs or video, dump the element and accessibility tree and drive it with scripted input to check its own work. It comes with a component kit (rune-kit), AccessKit accessibility, media, rich text editing and an experimental WebGPU web target. It's pre-release and published only on GitHub, and the project takes issues but not pull requests.
Problems it solves
- build a fast native desktop app in Rust without shipping a browser engine
- let my coding agent render my desktop app to PNG and inspect it headlessly to check its own UI changes
- a Rust GUI with smooth spring animations, blur and glass effects like a polished Mac app
- drive a native app's UI with scripted input in tests and record the result as video
- accessible native UI in Rust that VoiceOver, NVDA and Orca can read
- one Rust UI codebase for macOS, Windows, Linux and a WebGPU build in the browser
- the desktop app framework I use is too slow to launch and uses too much memory
Features
- view function API with keyed elements, layout and style methods and press, drag and input handlers
- own GPU renderer: Metal backend on macOS, wgpu elsewhere, precompiled Metal shaders for fast launch
- Taffy layout, own text engine, rich text editing, selectable text and rich clipboard
- spring animation, shared-element motion, backdrop blur, frosted panels and system materials
- headless agent tooling: --snap PNGs, scripted input, video, element and accessibility tree dumps
- accessibility through AccessKit: UI Automation, NSAccessibility and AT-SPI
- rune-kit components, multiple windows, overlays, tray windows, file dialogs, drag in and out
- video and audio playback and recording (rune-media)
- experimental WebGPU web target
- live Rust editing during desktop development
Limitations
Alternatives
The same job
These do what Rune does.
- Tauri Build small, fast desktop and mobile apps with a web frontend and a Rust backend.
