The brief: all targets are served; the apps need not be identical; single-platform features are separated. This note is the source of truth for “what runs where” and drives the crate split in Project Structure.
Platform scope
Now: Linux desktop (Arch, NixOS), web, Android — the ones with test devices. Later, no device yet: Windows, macOS, iOS. (A friend builds and tests on macOS since 2026-09-22 — the first macOS report was the keybindings, 027.) Nothing may preclude them: Dioxus targets all six;
dioxus-desktopuses WebView2 / WKWebView there (both have WebGPU, so the Graph View’s plan A is easier than on Linux); packaging goes throughdx bundle(msi/nsis,dmg/.app,ipa). Where a decision is Linux-specific it is marked as such (e.g. Linux Desktop Setup, the GTK overlay in ADR-0011 Desktop graph surface strategy); the window-controls, folder-dialog and session-bus code paths are already per-callback so other OSes plug in without touchingui.
Capability matrix
Checked 2026-10-01
The matrix below is the design; deviations today: folders on the phone are the app’s private storage (no picker, spec 028) and get the same
notifywatcher as on desktop (not verified on the phone); there are no drivers in the Android build; the wasm runtime is absent on the phone; tree-sitter is native (arborium), so the index runs on desktop and the server only; LadybugDB is Linux-only (P-144); secrets are asecrets.json+ environment everywhere (no OS keychain yet); CI checks the web crate for wasm32 and enforces native-driver layering.
| Capability | Desktop (webview) | Web (browser) | Mobile (webview) | Server (api) |
|---|---|---|---|---|
| Workbench UI, all editors | ✅ | ✅ | ✅ (adapted layout) | — |
| Open local folder | ✅ std::fs + notify | ⚠️ OPFS / FS Access API (Chromium) / server folder | ⚠️ scoped dir via picker, no watch | ✅ |
| SQL/graph/KV drivers | ✅ | ❌ → RemoteSource | ❌ → RemoteSource | ✅ |
| Language servers | ✅ spawn (lsp-local) | ⚠️ websocket to server | ⚠️ websocket to server | ✅ spawns |
| Terminal | ✅ PTY (terminal-pty) | ⚠️ remote PTY on server | ⚠️ remote PTY | ✅ PTY |
| Graph view (wgpu) | ⚠️ WebGPU availability varies by webview; WebGL2 fallback | ✅ WebGPU / WebGL2 | ⚠️ WebGL2 | — |
| GPU compute layouts | ⚠️ needs WebGPU | ✅ where WebGPU | ❌ CPU layout | — |
| Static extensions | ✅ | ✅ | ✅ | ✅ |
| WASM extensions | ✅ wasmtime | ⚠️ browser runtime, Worker | ❌ v1 | ✅ wasmtime |
| Secrets | OS keychain | never client-side | Keychain/Keystore | env / vault |
| LLM providers | direct or via server | via server | via server | direct |
| Typst compile | ✅ in-process | ✅ in-process (wasm) | ✅ | ✅ |
| tree-sitter | ✅ wasm grammars | ✅ | ✅ | ✅ |
✅ native · ⚠️ works with caveats / via server · ❌ not available
How the split is enforced
flowchart TB subgraph everywhere["compiles everywhere (incl. wasm32)"] core & ext-api & sources & index & lsp & terminal & llm & editors end subgraph native["native only"] sql[sources-sql] & gdb[sources-graph] & kv[sources-kv] & lspl[lsp-local] & pty[terminal-pty] end subgraph cfg["cfg-gated modules"] fs["project-fs::platform::{native,web,mobile}"] host["ext-host::runtime::{static,wasmtime,browser}"] surf["editor-graph::render::surface"] end api --> native desktop --> native web -.never.-> native
- Separate crate when the feature is absent on some platform (drivers, PTY, LSP spawn).
- cfg-gated module when the feature exists everywhere with different backends (folders, extension runtime, GPU surface).
- The
webcrate must never list a native-only crate in itsCargo.toml; a CI check greps for it.
Platform-specific UX
- Desktop: full workbench; multiple windows later (Dioxus desktop supports it).
- Web: same workbench; “open folder” defaults to a server-side folder; the browser’s reserved shortcuts (
Ctrl+W,Ctrl+T) get alternate keybindings viaKeybindingContribution.web. - Mobile: one panel at a time with a tab strip; the workbench layout collapses (
dioxus-workbenchis CSS-themable; a mobile shell wrapper is a smalluicomponent). Primary use: reading/annotating the knowledge graph, light edits, chatting with the agent. Not a primary coding surface.
Security notes for the remote paths
Remote terminal and remote LSP turn api into a code-execution service. Requirements before shipping either: authenticated sessions, per-user working-directory jail, resource limits, an allow-list of spawnable binaries, and audit logging (shared with LLM and RAG’s audit). Tracked as a high-risk item in Problem Ranking.
Native CI coverage (WP-26, 2026-10-17)
Ubuntu runs the blocking workspace/browser/wasm checks. The new portable job
runs filesystem and platform-branch tests on windows-latest and Apple-silicon
macos-15 (macos-14 until 2026-11-18, when GitHub stopped accepting that runner
label and the job was cancelled before it started), plus the default desktop extension distribution check. Both start
advisory pending their first green GitHub runs; this is not evidence of a
working desktop UI or installer. Desktop driver assembly and Intel macOS remain
covered only by release builds. See How to Write Tests for exact crates,
platform fixture gates and the switch to blocking checks.