Something went wrong. Try again.
develop GPUI components in isolation
Something went wrong. Try again.
Files
- Rust 94%
- Shell 5%
- JavaScript <1%
README.md
<div align="center">
<img src="assets/logo/hblank-mark.svg" alt="Hblank logo" width="128" height="128">
# hblank
**Develop GPUI components in isolation.**
[](https://www.rust-lang.org/)
[](https://gpui.rs/)
[](#project-status)
<p><a href="docs/README.md">docs</a></p>
</div>
Building a component should not require booting the whole application, loading test data, and clicking through three screens to reach the state you care about.
Hblank gives each GPUI component a small Rust fixture file. Run one command to browse its states, edit real props, read its docs, and check changes in a native GPUI window.
<picture>
<source media="(prefers-color-scheme: dark)" srcset="assets/hblank-harness-dark.png">
<img src="assets/hblank-harness.png" alt="Hblank's own Callout component in the native catalog, with fixture navigation and generated controls">
</picture>
## Why Hblank
Most component work happens in states that the full app makes awkward to reach. Empty lists. Long labels. Disabled buttons. One exact error. Hblank puts those states one click away.
- Work on a component without starting its parent screen or backend.
- Change typed Rust props through generated controls and see the result at once.
- Save a Rust file and let Hblank rebuild the preview. A bad build leaves the last good window open.
- Keep examples, docs, and tests beside the component instead of rebuilding them in a browser tool.
There is no JavaScript layer and no second JSON version of your props. Hblank runs the same GPUI code your application runs.
## Add Hblank to a project
Run these commands from the existing GPUI project:
```bash
cargo install hblank-cli
cargo add hblank
hblank init
hblank dev
```
`hblank init` creates a private preview crate under `.hblank/`. It leaves your hos…