Documents
04 - Backend Overview
04 - Backend Overview
Type
Document
Status
Published
Created
May 26, 2026
Updated
May 26, 2026
Template

Role#

The backend is the Rust side of the Tauri app. It owns local persistence, workspace operations, Git and GitHub actions, streaming orchestration, and the bridge between the UI and sidecar.

Main modules#

  • commands: Tauri command handlers grouped by domain.
  • models and schema: SQLite storage and migrations.
  • workspace: workspace lifecycle, files, editor state, and changes.
  • git and github: repository operations and remote integration.
  • agents and pipeline: streaming, persistence, event accumulation, and message conversion.
  • sidecar: process management for the Bun sidecar.

Data flow#

The backend receives UI commands, runs local or sidecar work, persists the result, then sends typed updates back to the frontend.

Contributor rule#

Keep IPC glue separate from domain logic. Add tests when changing persistence, message pipeline behavior, or storage shape.

04 - Backend Overview | Dosu