| Crates.io | create-gpui-docview |
| lib.rs | create-gpui-docview |
| version | 0.1.4 |
| created_at | 2025-11-14 00:04:09.906894+00 |
| updated_at | 2025-11-15 16:34:20.667685+00 |
| description | A CLI tool to create a new GPUI document-view style app. |
| homepage | |
| repository | https://github.com/blacktop/create-gpui-docview |
| max_upload_size | |
| id | 1932043 |
| size | 1,075,162 |
Create a new GPUI document-view application in a single command.
GPUI is a fast, productive UI framework for Rust from the creators of Zed.
This generator scaffolds document-view style applications similar to Zed Editor, with proper Workspace, Pane, Dock, and Panel architecture patterns. For simple GPUI apps, use create-gpui-app instead.
cargo install create-gpui-docview
create-gpui-docview --name my-app
cd my-app
cargo run -p my-app

You'll need to have Rust and Cargo installed on your machine. You can install Rust through rustup.
To create a new document-view app:
create-gpui-docview --name my-app
cd my-app
This will generate a complete workspace structure:
my-app
├── Cargo.toml (workspace root)
├── crates
│ ├── my-app # Main application entry point
│ │ ├── Cargo.toml
│ │ └── src
│ │ └── main.rs
│ ├── pane # Pane, PaneGroup, TabBar
│ │ ├── Cargo.toml
│ │ └── src
│ │ ├── pane.rs
│ │ ├── pane_group.rs
│ │ └── tab_bar.rs
│ ├── docking # Dock system with Panel trait
│ │ ├── Cargo.toml
│ │ └── src
│ │ ├── dock.rs
│ │ └── panel_trait.rs
│ ├── panels # Example panel implementations
│ │ ├── Cargo.toml
│ │ └── src
│ │ ├── file_tree_panel.rs
│ │ ├── settings_panel.rs
│ │ └── terminal_panel.rs
│ ├── modals # Modal components
│ │ ├── Cargo.toml
│ │ └── src
│ │ ├── settings_modal.rs
│ │ ├── picker.rs
│ │ └── dialog.rs
│ ├── statusbar # Status bar component
│ │ ├── Cargo.toml
│ │ └── src
│ │ └── lib.rs
│ └── theme # Theme and settings management
│ ├── Cargo.toml
│ └── src
│ ├── theme.rs
│ └── settings_model.rs
└── README.md
Running create-gpui-docview with no --name argument creates an app called gpui-docview-app.
During development:
cargo run -p my-app
For production/performance testing:
cargo build --release
./target/release/my-app
A full-featured document-view workspace with:
All components follow GPUI best practices with Entity-based architecture and proper event handling.
See the Zed development troubleshooting guide for platform-specific hints: https://github.com/zed-industries/zed/blob/main/docs/src/development/macos.md#troubleshooting
Your contributions are welcome! Please read CONTRIBUTING.md for more details.
create-gpui-docview is open source software licensed as MIT.