How gpui-ce/gpui-component works
GPUI Kit is a Rust framework for building desktop applications with GPUI. The principal workflow is an application using the single-crate kit entry point, then composing styled components or building a custom design system on the unstyled base, which supplies behavior and infrastructure over GPUI. Major product branches include editing, data display, dock layouts, rich content, theming, and WebAssembly. The README documents the layer relationships and capabilities; the source index identifies relevant implementation areas, but many feature implementations were not sampled, so feature links are documented capability associations rather than traced call paths.
Main entry points: component/src Styled components · base/src Behavior and state · lib.rs Kit facade · editor.rs Code editor
Components 18
Application entry
- Rust application
- Kit facade
crates/kit/src/lib.rs
UI layers
- Styled components
crates/component/src - Behavior and state
crates/base/src
Product capabilities
- UI controls
crates/component/src - Code editor
crates/component/src/input/editor.rs - Editor overlays
crates/component/src/input/overlay.rs - Syntax highlighting
crates/component/src/highlighter - Tables and lists
crates/component/src/table - Dock layouts
crates/base/src/dock/layout - Markdown and HTML
crates/base/src/text/format - Charts and plots
crates/component/src/chart - Themes and tokens
crates/component/src/theme - Notifications
crates/component/src/notification.rs
Runtime infrastructure
- GPUI runtime
- WebAssembly support
crates/story-web/src/lib.rs - Performance monitoring
crates/fps/src/sampler.rs - Plot derive macro
crates/component-macros/src/derive_into_plot.rs
Connections 18
- Rust application → Kit facade: depends on
README.md - Kit facade → Styled components: re-exports
README.md - Kit facade → Behavior and state: re-exports
README.md - Styled components → Behavior and state: builds on
README.md - Behavior and state → GPUI runtime: uses runtime
README.md - Styled components → UI controls: provides
README.md - Styled components → Code editor: provides
README.md - Code editor → Editor overlays: uses
crates/component/src/input/overlay.rs - Behavior and state → Syntax highlighting: supports
README.md - Styled components → Tables and lists: provides
README.md - Behavior and state → Dock layouts: provides
README.md - Behavior and state → Markdown and HTML: provides
README.md - Styled components → Charts and plots: provides
README.md - Styled components → Themes and tokens: provides
README.md - Styled components → Notifications: provides
README.md - Styled components → WebAssembly support: supports
README.md - Behavior and state → Performance monitoring: offers monitoring
- Charts and plots → Plot derive macro: can derive plots