apps/ holds the desktop and mobile apps, packages/ holds the first-party plugins, and crates/ pulls in native dependencies such as the Electron runtime as submodules.
Frontend
apps/desktop/src/ contains components, configuration, hooks, internationalization, layouts, stores, styles, and utilities. It renders installation and loading states, desktop settings, and UI surrounding the embedded Harness client.
Native backend
Theapps/desktop/src-tauri/src/service/ modules are organized around capabilities such as downloads, core selection, profiles, plugins, CLI integration, updates, workflows, and scheduling. bridge/ exposes selected capabilities as Tauri commands; UI code should not bypass that boundary. Windows and the event loop run inside Electron through crates/tauri-runtime-electron, while Rust keeps commands, CSP, and ACL.
First-party plugins
Eachpackages/builtin-plugin-* directory is its own package; pnpm build:plugins deploys them into apps/desktop/src-tauri/resources/node_modules at build time. The plugins.built-in list in resources/manifest.jsonc decides which IDs ship with the app, and plugin sources are no longer hosted in a separate repository.
Where to make a change
Keep operating-system differences behind focused Rust services and preserve the release
and debug isolation model when adding paths, ports, or stores.