databee Studio
The visual editor for a databee project: diagram, side panel, findings, snapshots and approval dialogs.
databee Studio is a desktop app (Tauri 2 with a Svelte 5 interface) that works on the same project folder as the CLI. It is in studio/ in the repository and is not part of the cargo workspace.
Build and open
Building needs Rust, Node with pnpm, wasm-pack (the foreign key router is compiled to WebAssembly) and the Tauri CLI:
cd studio/src-tauri
cargo tauri build
cargo tauri build also works from studio/. The bundle target is a macOS app bundle (minimum macOS 10.15); other platforms are not verified. Once databee-studio is on your PATH, or databee Studio.app is in /Applications or ~/Applications:
databee studio path/to/project
Without the app, the command says so and exits.
What it does
- Diagram. Entities with columns, keys and finding counts, foreign key edges with crow’s foot markers, routed orthogonally around the boxes by the same router as the SVG renderer. Positions come from
diagrams/layout.jsonor an automatic layout, and dragging an entity saves its position. - Editing. Entities, columns, primary and unique keys, indexes, foreign keys (also over several columns), enum types, check constraints and namespaces are edited in the side panel. Dragging from a column handle onto a column of another entity creates a foreign key with
ON DELETEandON UPDATEchoices. - Every edit is a changeset. It is checked with a dry run first.
Deleteasks for confirmation and names the foreign keys of other entities that go with the selection. Undo takes back the last step, also after a restart. - Findings. Shown at the entity, at the column and in a list, with an Apply fix button where a fix exists.
- Outside changes. If the project changes on disk, a banner offers a reload. An edit rejected because the project changed meanwhile shows a conflict notice and is not retried.
- DDL, snapshots, ALTER preview. A DDL view with a copy button, named snapshots, and an ALTER preview from a snapshot with lock, rewrite and destructive flags. A destructive plan is approved in a dialog that shows steps, risks and hash and asks for the plan name.
- Keyboard. Entities and foreign keys can be focused, and Enter or Space opens one in the side panel.
Editing is not complete yet; the changelog lists what exists.
Try the interface without Tauri
In studio/ui, pnpm dev:mock runs the interface in a normal browser against a fixture project.