# theeussx/zittodb architecture

> Architecture diagram of the GitHub repository theeussx/zittodb, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-10). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/theeussx/zittodb
- Repository: https://github.com/theeussx/zittodb

## Overview

ZittoDB is a local-first Linux desktop GUI for installed Android tools, not a database. Users select an explicit device, invoke typed actions in React, and receive results through the Bridge; Rust validates requests and manages external processes. The graph preserves the documented device, diagnostics, apps/debloat, files, shell/logs, screen, fastboot, history, settings, and update capabilities. Several backend details are unsampled, so subsystem links rely on README architecture statements rather than inferred internal call chains.

Main entry points: [`src/services/bridge.ts`](https://github.com/theeussx/zittodb/blob/main/src/services/bridge.ts) (Typed Bridge), [`src-tauri/src/commands/mod.rs`](https://github.com/theeussx/zittodb/blob/main/src-tauri/src/commands/mod.rs) (Tauri commands), [`src-tauri/src/processes/mod.rs`](https://github.com/theeussx/zittodb/blob/main/src-tauri/src/processes/mod.rs) (Process management), [`src/app/AppShell.tsx`](https://github.com/theeussx/zittodb/blob/main/src/app/AppShell.tsx) (Application shell)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ui["Desktop interface"]
  node_app["Application shell<br/>[AppShell.tsx]"]
  node_device_views["Device views"]
  node_apps["Apps and debloat<br/>[AppsView.tsx]"]
  node_files["File browser<br/>[FilesView.tsx]"]
  node_shell_logs["Shell and logs<br/>[ShellView.tsx]"]
  node_screen["Screen control<br/>[ScreenPanel.tsx]"]
  node_diagnostics["Diagnostics"]
  node_fastboot_ui["Fastboot view<br/>[FastbootView.tsx]"]
  node_history_ui["History view<br/>[HistoryView.tsx]"]
  node_settings_ui["Settings view<br/>[SettingsView.tsx]"]
end

subgraph group_bridge["Bridge and commands"]
  node_bridge["Typed Bridge<br/>[bridge.ts]"]
  node_commands["Tauri commands<br/>[mod.rs]"]
end

subgraph group_runtime["Device runtime"]
  node_adb_ops["ADB operations<br/>[operations.rs]"]
  node_device_discovery["Device discovery<br/>[mod.rs]"]
  node_fastboot["Fastboot runtime<br/>[mod.rs]"]
  node_scrcpy["Screen runtime<br/>[mod.rs]"]
  node_processes["Process management<br/>[mod.rs]"]
  node_security["Validation and risk<br/>[mod.rs]"]
end

subgraph group_state["Local state"]
  node_storage[("Audit, history, settings<br/>[mod.rs]")]
  node_update["Release checker<br/>[updateService.ts]"]
end

node_user(("User"))
node_tools["ADB / scrcpy / fastboot"]
node_github["GitHub releases"]

node_user -->|"uses"| node_app
node_app -->|"presents"| node_device_views
node_device_views -->|"requests device actions"| node_bridge
node_apps -->|"requests package actions"| node_bridge
node_files -->|"requests file actions"| node_bridge
node_shell_logs -->|"requests sessions"| node_bridge
node_screen -->|"requests screen actions"| node_bridge
node_diagnostics -->|"requests diagnostics"| node_bridge
node_fastboot_ui -->|"requests fastboot actions"| node_bridge
node_history_ui -->|"reads history"| node_bridge
node_settings_ui -->|"reads settings"| node_bridge
node_bridge -->|"invokes typed commands"| node_commands
node_commands -->|"dispatches operations"| node_adb_ops
node_commands -->|"dispatches discovery"| node_device_discovery
node_commands -->|"dispatches fastboot"| node_fastboot
node_commands -->|"dispatches screen control"| node_scrcpy
node_commands -->|"uses local storage"| node_storage
node_adb_ops -->|"validates inputs"| node_security
node_fastboot -->|"validates inputs"| node_security
node_scrcpy -->|"validates options"| node_security
node_adb_ops -->|"runs processes"| node_processes
node_fastboot -->|"runs processes"| node_processes
node_scrcpy -->|"manages processes"| node_processes
node_processes -->|"executes installed tools"| node_tools
node_device_discovery -->|"queries adb"| node_tools
node_update -->|"checks releases"| node_github
node_app -->|"checks updates"| node_update

click node_app "https://github.com/theeussx/zittodb/blob/main/src/app/AppShell.tsx"
click node_device_views "https://github.com/theeussx/zittodb/blob/main/src/features/devices/DeviceDashboard.tsx"
click node_apps "https://github.com/theeussx/zittodb/blob/main/src/features/apps/AppsView.tsx"
click node_files "https://github.com/theeussx/zittodb/blob/main/src/features/files/FilesView.tsx"
click node_shell_logs "https://github.com/theeussx/zittodb/blob/main/src/features/shell/ShellView.tsx"
click node_screen "https://github.com/theeussx/zittodb/blob/main/src/features/screen/ScreenPanel.tsx"
click node_diagnostics "https://github.com/theeussx/zittodb/blob/main/src/features/diagnostics/DiagnosticsView.tsx"
click node_fastboot_ui "https://github.com/theeussx/zittodb/blob/main/src/features/fastboot/FastbootView.tsx"
click node_history_ui "https://github.com/theeussx/zittodb/blob/main/src/features/history/HistoryView.tsx"
click node_settings_ui "https://github.com/theeussx/zittodb/blob/main/src/features/settings/SettingsView.tsx"
click node_bridge "https://github.com/theeussx/zittodb/blob/main/src/services/bridge.ts"
click node_commands "https://github.com/theeussx/zittodb/blob/main/src-tauri/src/commands/mod.rs"
click node_adb_ops "https://github.com/theeussx/zittodb/blob/main/src-tauri/src/adb/operations.rs"
click node_device_discovery "https://github.com/theeussx/zittodb/blob/main/src-tauri/src/devices/mod.rs"
click node_fastboot "https://github.com/theeussx/zittodb/blob/main/src-tauri/src/fastboot/mod.rs"
click node_scrcpy "https://github.com/theeussx/zittodb/blob/main/src-tauri/src/scrcpy/mod.rs"
click node_processes "https://github.com/theeussx/zittodb/blob/main/src-tauri/src/processes/mod.rs"
click node_security "https://github.com/theeussx/zittodb/blob/main/src-tauri/src/security/mod.rs"
click node_storage "https://github.com/theeussx/zittodb/blob/main/src-tauri/src/storage/mod.rs"
click node_update "https://github.com/theeussx/zittodb/blob/main/src/services/updateService.ts"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_app,node_device_views,node_apps,node_files,node_shell_logs,node_screen,node_diagnostics,node_fastboot_ui,node_history_ui,node_settings_ui,node_user toneBlue
class node_bridge,node_commands toneAmber
class node_adb_ops,node_device_discovery,node_fastboot,node_scrcpy,node_processes,node_security toneMint
class node_storage,node_update toneRose
class node_tools,node_github toneIndigo
```

## Components

### Desktop interface

- [Application shell](https://github.com/theeussx/zittodb/blob/main/src/app/AppShell.tsx): `src/app/AppShell.tsx`
- [Device views](https://github.com/theeussx/zittodb/blob/main/src/features/devices/DeviceDashboard.tsx): `src/features/devices/DeviceDashboard.tsx`
- [Apps and debloat](https://github.com/theeussx/zittodb/blob/main/src/features/apps/AppsView.tsx): `src/features/apps/AppsView.tsx`
- [File browser](https://github.com/theeussx/zittodb/blob/main/src/features/files/FilesView.tsx): `src/features/files/FilesView.tsx`
- [Shell and logs](https://github.com/theeussx/zittodb/blob/main/src/features/shell/ShellView.tsx): `src/features/shell/ShellView.tsx`
- [Screen control](https://github.com/theeussx/zittodb/blob/main/src/features/screen/ScreenPanel.tsx): `src/features/screen/ScreenPanel.tsx`
- [Diagnostics](https://github.com/theeussx/zittodb/blob/main/src/features/diagnostics/DiagnosticsView.tsx): `src/features/diagnostics/DiagnosticsView.tsx`
- [Fastboot view](https://github.com/theeussx/zittodb/blob/main/src/features/fastboot/FastbootView.tsx): `src/features/fastboot/FastbootView.tsx`
- [History view](https://github.com/theeussx/zittodb/blob/main/src/features/history/HistoryView.tsx): `src/features/history/HistoryView.tsx`
- [Settings view](https://github.com/theeussx/zittodb/blob/main/src/features/settings/SettingsView.tsx): `src/features/settings/SettingsView.tsx`

### Bridge and commands

- [Typed Bridge](https://github.com/theeussx/zittodb/blob/main/src/services/bridge.ts): `src/services/bridge.ts`
- [Tauri commands](https://github.com/theeussx/zittodb/blob/main/src-tauri/src/commands/mod.rs): `src-tauri/src/commands/mod.rs`

### Device runtime

- [ADB operations](https://github.com/theeussx/zittodb/blob/main/src-tauri/src/adb/operations.rs): `src-tauri/src/adb/operations.rs`
- [Device discovery](https://github.com/theeussx/zittodb/blob/main/src-tauri/src/devices/mod.rs): `src-tauri/src/devices/mod.rs`
- [Fastboot runtime](https://github.com/theeussx/zittodb/blob/main/src-tauri/src/fastboot/mod.rs): `src-tauri/src/fastboot/mod.rs`
- [Screen runtime](https://github.com/theeussx/zittodb/blob/main/src-tauri/src/scrcpy/mod.rs): `src-tauri/src/scrcpy/mod.rs`
- [Process management](https://github.com/theeussx/zittodb/blob/main/src-tauri/src/processes/mod.rs): `src-tauri/src/processes/mod.rs`
- [Validation and risk](https://github.com/theeussx/zittodb/blob/main/src-tauri/src/security/mod.rs): `src-tauri/src/security/mod.rs`

### Local state

- [Audit, history, settings](https://github.com/theeussx/zittodb/blob/main/src-tauri/src/storage/mod.rs): `src-tauri/src/storage/mod.rs`
- [Release checker](https://github.com/theeussx/zittodb/blob/main/src/services/updateService.ts): `src/services/updateService.ts`

### Other components

- **User**
- **ADB / scrcpy / fastboot**
- **GitHub releases**

## Connections

- User → Application shell: uses (evidence: `README.md`)
- Application shell → Device views: presents (evidence: `src/app/AppShell.tsx`)
- Device views → Typed Bridge: requests device actions (evidence: `src/features/devices/DeviceDashboard.tsx`)
- Apps and debloat → Typed Bridge: requests package actions (evidence: `src/features/apps/AppsView.tsx`)
- File browser → Typed Bridge: requests file actions (evidence: `src/features/files/FilesView.tsx`)
- Shell and logs → Typed Bridge: requests sessions
- Screen control → Typed Bridge: requests screen actions (evidence: `src/features/screen/ScreenPanel.tsx`)
- Diagnostics → Typed Bridge: requests diagnostics (evidence: `src/features/diagnostics/DiagnosticsView.tsx`)
- Fastboot view → Typed Bridge: requests fastboot actions (evidence: `README.md`)
- History view → Typed Bridge: reads history (evidence: `README.md`)
- Settings view → Typed Bridge: reads settings (evidence: `src/features/settings/SettingsView.tsx`)
- Typed Bridge → Tauri commands: invokes typed commands (evidence: `README.md`)
- Tauri commands → ADB operations: dispatches operations (evidence: `src-tauri/src/commands/mod.rs`)
- Tauri commands → Device discovery: dispatches discovery (evidence: `src-tauri/src/commands/mod.rs`)
- Tauri commands → Fastboot runtime: dispatches fastboot (evidence: `src-tauri/src/commands/mod.rs`)
- Tauri commands → Screen runtime: dispatches screen control (evidence: `src-tauri/src/commands/mod.rs`)
- Tauri commands → Audit, history, settings: uses local storage (evidence: `src-tauri/src/commands/mod.rs`)
- ADB operations → Validation and risk: validates inputs (evidence: `src-tauri/src/adb/operations.rs`)
- Fastboot runtime → Validation and risk: validates inputs (evidence: `src-tauri/src/fastboot/mod.rs`)
- Screen runtime → Validation and risk: validates options (evidence: `src-tauri/src/scrcpy/mod.rs`)
- ADB operations → Process management: runs processes (evidence: `src-tauri/src/adb/client.rs`)
- Fastboot runtime → Process management: runs processes (evidence: `src-tauri/src/fastboot/mod.rs`)
- Screen runtime → Process management: manages processes (evidence: `README.md`)
- Process management → ADB / scrcpy / fastboot: executes installed tools (evidence: `README.md`)
- Device discovery → ADB / scrcpy / fastboot: queries adb (evidence: `README.md`)
- Release checker → GitHub releases: checks releases (evidence: `src/services/updateService.ts`)
- Application shell → Release checker: checks updates (evidence: `src/App.tsx`)
