mirror of
https://github.com/tinyhumansai/openhuman.git
synced 2026-07-27 21:08:00 +00:00
Tauri shell documentation (app/src-tauri/)
This folder is the desktop host for OpenHuman: Tauri v2 + WebView, IPC commands, window management, and bridging to the openhuman Rust sidecar (core JSON-RPC). It does not duplicate the full domain stack — that lives in the repo-root Rust crate (openhuman_core, src/bin/openhuman.rs).
Quick reference
| Document | Description |
|---|---|
| Architecture | Modules, core process, sidecar staging |
| IPC commands | invoke commands registered in lib.rs |
| Core bridge | core_process, core_rpc, daemon helpers |
Responsibilities
- Web UI — Load the Vite build from
app/dist(or dev server on port 1420). - IPC — Expose a small, explicit set of Tauri commands (see
02-commands.md). - Core lifecycle — Ensure the
openhumanbinary is running (child process and/or service) and proxy JSON-RPC viacore_rpc_relay. - AI prompts on disk — Resolve bundled
src/openhuman/agent/promptsfrom resources / dev cwd forai_get_config/write_ai_config_file. - Window + tray — Desktop window behavior and system tray (see
lib.rs).
Building the sidecar
app/package.json core:stage runs scripts/stage-core-sidecar.mjs, which cargo build --bin openhuman at the repo root and copies the binary into app/src-tauri/binaries/ for Tauri externalBin.
Related
- Full stack narrative:
../ARCHITECTURE.md - Frontend:
../src/README.md