blit
blit is an experimental immediate-mode ui toolkit for rust.
the core is ~5k lines of no_std, zero-dependency rust with a fast, composable api for layout, interaction and animation.
https://github.com/user-attachments/assets/0350260c-592f-4337-b541-9762faf7a96d
try it
terminal:
desktop + CPU:
desktop + GPU:
example
each frame, blit:
- builds widgets into a tree of nodes
- solves layouts and assigns final rectangles
- paints each node (usually recording draw commands) with its resolved area
use KeyboardEvent;
use ;
install
tui:
desktop (pick cpu or gpu):
blit-ui exposes its library as blit, so import it with use blit::....
crates
blit-ui: the coreblit-widget: layouts, widgets and interactionsblit-tui: runs blit in a terminalblit-desktop: runs blit in a native window (macos + wayland)
for custom backends:
blit-gui: 2d drawing commandsblit-cpuandblit-gpu: renderers forblit-guiblit-text-parley: text layout with parleyblit-gui-widget: widgets that needblit-gui, like text input
acknowledgments
blit wouldn't exist without the people who shared their work and ideas so openly.
- clay by nic barker, the biggest inspiration
- dear imgui by omar cornut
- egui by emil ernerfeldt
- hashless imgui by anton mikhailov
thank you