Hey r/coolgithubprojects ,
I've been building a desktop UI library in pure Go called gowaku (currently v0.3.0, MIT licensed).
Repo (screenshots in README): https://github.com/bankai-tensei/gowaku
Docs & widget catalog: https://bankai-tensei.github.io/gowaku/
You can try the widget gallery in one command (no cgo or C compiler needed):
go run github.com/bankai-tensei/gowaku/examples/gallery@latest
A quick overview of how it works:
- No cgo on any OS: it talks directly to Direct3D 11 + Win32 on Windows, Vulkan + Wayland/X11 on Linux, and Metal + AppKit on macOS (Apple Silicon). Cross-compiling works with plain GOOS=... go build.
- 0% idle CPU: there's no background render loop. Frames only run when state changes or an animation ticker is active, and when nothing moves, nothing runs.
- Declarative three-tree architecture (Widget / Element / RenderObject), similar to Flutter. Widgets are plain value structs that work at their zero value, with no builder chains or struct-field reflection.
- Headless UI testing in go test: core, layout, paint, and widgets have no GPU dependency, so UI tests run on the CPU with a fake clock (gowakutest) without opening a window.
- First-class text & IME support: vertical text, ruby, W3C JLReq line breaking, inline IME composition, emoji, and RTL. I needed proper Japanese text handling from day one rather than bolting it on later.
- 100+ widgets including virtualized lists/tables, a code editor (there's a bigfile example that opens a 10 GB file in ~80 ms using ~84 MB RAM), dock layout, and command palette.
Benchmarks & honest trade-offs:
I benchmarked a few scenarios against Gio and Cogent Core on Windows 11 (details and macOS numbers are in docs/BENCH.md). gowaku came out ahead on startup (89 ms to first frame), idle CPU (0%), and CPU usage under 100 concurrent animations (7.8% vs 44.4% for Gio), while Gio still beats it on scroll peak memory (159 MB vs 240 MB) and hello-world binary size (6.4 MB vs 7.7 MB).
Current rough edges (still pre-1.0):
- APIs may still change in minor releases before v1.0.
- Linux has only been tested under X11/Wayland with a software Vulkan driver so far, not on GNOME/KDE with a real GPU yet (and X11 IME currently shows its own composition window).
- macOS currently requires Apple Silicon.
I'd really appreciate feedback on the Go API design (plain struct literals vs other patterns) and architecture, and if anyone on Linux with a real GPU is willing to run the gallery example and tell me what breaks, that would help a ton!