Five crates. Strict dependency direction.
Enforced automatically in CI via npm run check:deps over
cargo metadata --locked. Pure logic stays I/O-free; adapters never import one
another.
Cargo Workspace Crates
| Crate | Responsibility | Allowed Workspace Deps |
|---|---|---|
dui-core |
Pure deterministic IR, state planning, diffing, coverage audit, storage repository traits | None (0) |
dui-ports |
Three core ports (TypeOracle, Host,
Renderer), SurfaceAdapter, SurfaceRegistry,
AppStore
|
dui-core |
dui-storage |
SQLite (~/.dui/dui.db) + content-addressed PNG blob archive
(SqliteStore)
|
dui-core, dui-ports |
dui-app |
Port-driven use cases: audit, cache,
comments, diff, graph_view,
inspect, compiler_oracle
|
dui-core, dui-ports (0 adapters) |
dui |
Single binary composition root: wires concrete adapters, CLI, MCP server, and embedded web viewer | All workspace crates |
Verified Surface Support Matrix
Every entry reflects what actually ships and passes automated checks today.
| Surface | Supported Today | Planned |
|---|---|---|
| Web |
Universal Web (static / url / command),
Vite 7 / 8+, React 18 / 19+, Next.js 16, Nitro SSR, Chromium CDP
|
Preact, Solid, Rspack / Rsbuild |
| Desktop |
GPUI (Metal + AccessKit renderTree), Electron 45
(ipcMocks)
|
Tauri 2, Dioxus, egui, Iced |
| Mobile |
Android (adb screencap + uiautomator), iOS Simulator
(xcrun simctl + XCUI), React Native / Expo tsc rules
|
Native SwiftUI, Jetpack Compose, Flutter adapters |
| Terminal (TUI) | Universal PTY + VT100 cell grid PNG & scene tree, Ink 5 rules | Ratatui, Bubble Tea compiler state plans |