develop GPUI components in isolation
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.** [![Rust 1.85+](https://img.shields.io/badge/Rust-1.85%2B-202124?style=flat-square&logo=rust)](https://www.rust-lang.org/) [![GPUI 0.2.2](https://img.shields.io/badge/GPUI-0.2.2-7357d8?style=flat-square)](https://gpui.rs/) [![Status: pre-1.0](https://img.shields.io/badge/status-pre--1.0-258b63?style=flat-square)](#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…