Rune: Native UI framework
★ 5,998⑂ 200👁 16⑃ 172● 161▤ 0◈ 0
5,998
stars
+428
200
forks
16
watchers
172
prs
161
issues
0
releases
0
discussions
README
Rune
A native GPU-rendered Rust UI framework for macOS, Windows, Linux and the web, with its own renderer, text, layout and springs.
Every app can run headless, so an agent can render to PNG, dump the element tree and drive it with scripted input.
rust
fn view(s: &State, _: &mut Cx) - El {
let t = tok::theme(true);
let label = text(if s.on { "Lights on" } else { "Lights off" })
.font(type_::TITLE).color(t.text);
let knob = el().key("knob").size(18.0, 18.0).radius(9.0).fill(t.knob)
.absolute(if s.on { 18.0 } else { 2.0 }, 2.0);
let switch = el().key("switch").role("switch").label("Lights").checked(s.on)
.focusable(true).size(38.0, 22.0).radius(11.0)
.fill(if s.on { tok::accent(0, true) } else { t.control_off })
.motion(motion::SNAPPY)
.on_press(|s: &mut State| s.on = !s.on)
.child(knob);
col().w_full().h_full().center().gap(16.0).fill(t.bg).child(label).child(switch)
}
Use it with your agent
Give your coding agent this repo. Have it start from examples/hello and crates/rune/README.md, then check its own work headlessly by rendering PNGs and inspecting the element tree.
Build me a with Rune (github.com/anomalyco/rune). Start from examples/hello and check your work headlessly.
Add it
toml
rune = { git = "https://github.com/anomalyco/rune", rev = "" }
Rune is pre-release. Pin a rev of dev; dev is never rewritten.
Docs · Components · Examples · Changelog
Contributing
We don't take pull requests. Have your agent open an issue
describing the bug or idea, and our agents usually turn it around fast.
MIT, © Anomaly.Top issues
#85Linux/GNOME Wayland: support interactive XWayland overlays (meeting capsules / Annotate)3 comments · 2026-11-04#146Displays: the list is a startup snapshot, with no change event and no way to add a window later2 comments · 2026-11-06#145Cursors: no diagonal resize cursors for corner handles2 comments · 2026-11-06#80Expose GPU memory policy and allocation block sizing2 comments · 2026-11-03#314Represented file and edited state for macOS windows1 comments · 2026-11-08#296WARP / software adapters: a 380 × 1080 panel costs 0.67 CPU-s per frame; damage-limited redraw or a cheaper software path1 comments · 2026-11-08#295Windows: let an app turn off the 1 s post-change present hold (STEADY) for windows that don't need it1 comments · 2026-11-08#265Input: pointer moves reach elements under a pinned sibling1 comments · 2026-11-08
相关报道 (2)
News & coverage (9)
Hacker NewsRune: A native GPU-rendered Rust UI framework for macOS, Windows, Linux and web▲ 179 · 131 comments · 2026-11-06Hacker NewsDocument poisoning in RAG systems: How attackers corrupt AI's sources▲ 155 · 48 comments · 2026-03-12Hacker NewsShow HN: BetterDB – Valkey/Redis monitoring that persists what servers forget▲ 4 · 0 comments · 2026-02-12Hacker NewsMatrixTransformer: Structural Pattern Discovery Without Training▲ 3 · 0 comments · 2025-07-23It's FOSSRune Goes Open Source, Looks to Share Revenue With Contributors2026-09-15LinuxiacRune Keyboard-Driven IDE Is Now Open Source Under GPLv32026-09-13FortuneExclusive: Who covers the damage when an AI agent goes rogue? This startup has an insurance policy for that2025-07-23Marketplace.orgThe Arctic vault built to preserve humanity’s data2025-02-17SYFYIn case of apocalypse, all 21 TB of GitHub code moved to cold storage at an actual Arctic vault2020-07-16