| Crates.io | vibe-graph-viz |
| lib.rs | vibe-graph-viz |
| version | 0.1.1 |
| created_at | 2026-01-02 18:32:34.325432+00 |
| updated_at | 2026-01-21 00:57:01.336002+00 |
| description | WASM-compatible egui visualization for Vibe-Graph |
| homepage | https://github.com/pinsky-three/vibe-graph |
| repository | https://github.com/pinsky-three/vibe-graph |
| max_upload_size | |
| id | 2019039 |
| size | 409,036 |
WASM-compatible egui visualization for Vibe-Graph source code graphs.
# Install dev tools (one-time setup)
make deps
This installs:
cargo-watch - for hot reloadtrunk - for WASM dev serverwasm32-unknown-unknown targetBest for rapid iteration - faster compile times, native debugging.
make dev
# or explicitly:
make dev-native
This runs the app as a native desktop window with hot reload. Changes to src/ trigger automatic rebuild and restart.
For testing WASM-specific features or final verification.
make dev-wasm
Opens http://127.0.0.1:8080 in your browser with live reload.
| Command | Description |
|---|---|
make dev |
Native desktop with hot reload (default) |
make dev-wasm |
WASM in browser with hot reload |
make build |
Build native release |
make build-wasm |
Build WASM release |
make check |
Run cargo check (native + WASM) |
make lint |
Run clippy (native + WASM) |
make fmt |
Format code |
make clean |
Clean build artifacts |
src/
├── lib.rs # WASM entry point + exports
├── app.rs # Main VibeGraphApp implementation
└── settings.rs # UI settings structures
examples/
└── native.rs # Native desktop runner
index.html # WASM host page
Trunk.toml # Trunk (WASM bundler) config
native - Enable native desktop support (eframe default features)The app loads a sample graph by default. For custom data, modify examples/native.rs.
Set window.VIBE_GRAPH_DATA before the app initializes:
<script>
window.VIBE_GRAPH_DATA = JSON.stringify({
nodes: [...],
edges: [...],
metadata: {...}
});
</script>
Run make deps to install development tools.
The .cargo/config.toml should handle this. Ensure you're building from this crate's directory.
cargo-watch is installedtrunk is installed and serving from this directory