# rinaxv/supervision-pc architecture

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

- Interactive diagram: https://gitdiagram.com/rinaxv/supervision-pc
- Repository: https://github.com/rinaxv/supervision-pc

## Overview

Supervision PC is a Tauri desktop system-monitoring and maintenance app. The user enters through the sidebar, selects a tool, and views its results in the corresponding page; several shown pages call native Tauri commands or listen for events. The feature set spans live system/network monitoring, diagnostics, maintenance, storage, and update management. The frontend-to-native boundary is represented, but native command implementations and most page internals were not excerpted, so those links are marked unverified rather than inferred from names.

Main entry points: [`src/App.tsx`](https://github.com/rinaxv/supervision-pc/blob/main/src/App.tsx) (Application shell), [`src-tauri/src/lib.rs`](https://github.com/rinaxv/supervision-pc/blob/main/src-tauri/src/lib.rs) (Tauri native layer), [`src/pages/DataUsage.tsx`](https://github.com/rinaxv/supervision-pc/blob/main/src/pages/DataUsage.tsx) (Data usage), [`src/pages/WifiHealth.tsx`](https://github.com/rinaxv/supervision-pc/blob/main/src/pages/WifiHealth.tsx) (Wi-Fi health)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_shell["App shell"]
  node_app["Application shell<br/>[App.tsx]"]
  node_sidebar["Navigation and theme<br/>[Sidebar.tsx]"]
  node_contracts["Shared data types<br/>[types.ts]"]
  node_native["Tauri native layer<br/>[lib.rs]"]
end

subgraph group_monitoring["Monitoring"]
  node_dashboard["System dashboard<br/>[Dashboard.tsx]"]
  node_diagnostic["System diagnostics<br/>[Diagnostic.tsx]"]
  node_processes["Process monitor<br/>[Processes.tsx]"]
  node_connections["Network connections<br/>[Connections.tsx]"]
  node_networkapps["Network app usage<br/>[NetworkApps.tsx]"]
  node_datausage["Data usage<br/>[DataUsage.tsx]"]
  node_speedtest["Speed test<br/>[SpeedTest.tsx]"]
  node_wifi["Wi-Fi health<br/>[WifiHealth.tsx]"]
  node_diskio["Disk activity<br/>[DiskIO.tsx]"]
  node_battery["Battery status<br/>[Battery.tsx]"]
end

subgraph group_maintenance["Maintenance"]
  node_quickactions["Quick actions<br/>[QuickActions.tsx]"]
  node_maintenancepage["Maintenance<br/>[Maintenance.tsx]"]
  node_drivers["Driver checks<br/>[Drivers.tsx]"]
end

subgraph group_storage["Storage and updates"]
  node_diskcleaner["Disk cleanup<br/>[DiskCleaner.tsx]"]
  node_windowsupdate["Windows updates<br/>[WindowsUpdate.tsx]"]
  node_history["Activity history<br/>[Historique.tsx]"]
end

node_user(("PC user"))

node_user -->|"opens app"| node_app
node_app -->|"renders navigation"| node_sidebar
node_app -->|"routes to"| node_dashboard
node_app -->|"routes to"| node_diagnostic
node_app -->|"routes to"| node_processes
node_app -->|"routes to"| node_connections
node_app -->|"routes to"| node_networkapps
node_app -->|"routes to"| node_datausage
node_app -->|"routes to"| node_speedtest
node_app -->|"routes to"| node_wifi
node_app -->|"routes to"| node_diskio
node_app -->|"routes to"| node_battery
node_app -->|"routes to"| node_quickactions
node_app -->|"routes to"| node_maintenancepage
node_app -->|"routes to"| node_drivers
node_app -->|"routes to"| node_diskcleaner
node_app -->|"routes to"| node_windowsupdate
node_app -->|"routes to"| node_history
node_datausage -.->|"invokes commands"| node_native
node_diskcleaner -.->|"invokes commands"| node_native
node_quickactions -.->|"invokes commands"| node_native
node_wifi -.->|"invokes commands"| node_native
node_windowsupdate -.->|"invokes commands"| node_native

click node_app "https://github.com/rinaxv/supervision-pc/blob/main/src/App.tsx"
click node_sidebar "https://github.com/rinaxv/supervision-pc/blob/main/src/components/Sidebar.tsx"
click node_contracts "https://github.com/rinaxv/supervision-pc/blob/main/src/types.ts"
click node_native "https://github.com/rinaxv/supervision-pc/blob/main/src-tauri/src/lib.rs"
click node_dashboard "https://github.com/rinaxv/supervision-pc/blob/main/src/pages/Dashboard.tsx"
click node_diagnostic "https://github.com/rinaxv/supervision-pc/blob/main/src/pages/Diagnostic.tsx"
click node_processes "https://github.com/rinaxv/supervision-pc/blob/main/src/pages/Processes.tsx"
click node_connections "https://github.com/rinaxv/supervision-pc/blob/main/src/pages/Connections.tsx"
click node_networkapps "https://github.com/rinaxv/supervision-pc/blob/main/src/pages/NetworkApps.tsx"
click node_datausage "https://github.com/rinaxv/supervision-pc/blob/main/src/pages/DataUsage.tsx"
click node_speedtest "https://github.com/rinaxv/supervision-pc/blob/main/src/pages/SpeedTest.tsx"
click node_wifi "https://github.com/rinaxv/supervision-pc/blob/main/src/pages/WifiHealth.tsx"
click node_diskio "https://github.com/rinaxv/supervision-pc/blob/main/src/pages/DiskIO.tsx"
click node_battery "https://github.com/rinaxv/supervision-pc/blob/main/src/pages/Battery.tsx"
click node_quickactions "https://github.com/rinaxv/supervision-pc/blob/main/src/pages/QuickActions.tsx"
click node_maintenancepage "https://github.com/rinaxv/supervision-pc/blob/main/src/pages/Maintenance.tsx"
click node_drivers "https://github.com/rinaxv/supervision-pc/blob/main/src/pages/Drivers.tsx"
click node_diskcleaner "https://github.com/rinaxv/supervision-pc/blob/main/src/pages/DiskCleaner.tsx"
click node_windowsupdate "https://github.com/rinaxv/supervision-pc/blob/main/src/pages/WindowsUpdate.tsx"
click node_history "https://github.com/rinaxv/supervision-pc/blob/main/src/pages/Historique.tsx"

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_sidebar,node_contracts,node_native,node_user toneBlue
class node_dashboard,node_diagnostic,node_processes,node_connections,node_networkapps,node_datausage,node_speedtest,node_wifi,node_diskio,node_battery toneAmber
class node_quickactions,node_maintenancepage,node_drivers toneMint
class node_diskcleaner,node_windowsupdate,node_history toneRose
```

## Components

### App shell

- [Application shell](https://github.com/rinaxv/supervision-pc/blob/main/src/App.tsx): `src/App.tsx`
- [Navigation and theme](https://github.com/rinaxv/supervision-pc/blob/main/src/components/Sidebar.tsx): `src/components/Sidebar.tsx`
- [Shared data types](https://github.com/rinaxv/supervision-pc/blob/main/src/types.ts): `src/types.ts`
- [Tauri native layer](https://github.com/rinaxv/supervision-pc/blob/main/src-tauri/src/lib.rs): `src-tauri/src/lib.rs`

### Monitoring

- [System dashboard](https://github.com/rinaxv/supervision-pc/blob/main/src/pages/Dashboard.tsx): `src/pages/Dashboard.tsx`
- [System diagnostics](https://github.com/rinaxv/supervision-pc/blob/main/src/pages/Diagnostic.tsx): `src/pages/Diagnostic.tsx`
- [Process monitor](https://github.com/rinaxv/supervision-pc/blob/main/src/pages/Processes.tsx): `src/pages/Processes.tsx`
- [Network connections](https://github.com/rinaxv/supervision-pc/blob/main/src/pages/Connections.tsx): `src/pages/Connections.tsx`
- [Network app usage](https://github.com/rinaxv/supervision-pc/blob/main/src/pages/NetworkApps.tsx): `src/pages/NetworkApps.tsx`
- [Data usage](https://github.com/rinaxv/supervision-pc/blob/main/src/pages/DataUsage.tsx): `src/pages/DataUsage.tsx`
- [Speed test](https://github.com/rinaxv/supervision-pc/blob/main/src/pages/SpeedTest.tsx): `src/pages/SpeedTest.tsx`
- [Wi-Fi health](https://github.com/rinaxv/supervision-pc/blob/main/src/pages/WifiHealth.tsx): `src/pages/WifiHealth.tsx`
- [Disk activity](https://github.com/rinaxv/supervision-pc/blob/main/src/pages/DiskIO.tsx): `src/pages/DiskIO.tsx`
- [Battery status](https://github.com/rinaxv/supervision-pc/blob/main/src/pages/Battery.tsx): `src/pages/Battery.tsx`

### Maintenance

- [Quick actions](https://github.com/rinaxv/supervision-pc/blob/main/src/pages/QuickActions.tsx): `src/pages/QuickActions.tsx`
- [Maintenance](https://github.com/rinaxv/supervision-pc/blob/main/src/pages/Maintenance.tsx): `src/pages/Maintenance.tsx`
- [Driver checks](https://github.com/rinaxv/supervision-pc/blob/main/src/pages/Drivers.tsx): `src/pages/Drivers.tsx`

### Storage and updates

- [Disk cleanup](https://github.com/rinaxv/supervision-pc/blob/main/src/pages/DiskCleaner.tsx): `src/pages/DiskCleaner.tsx`
- [Windows updates](https://github.com/rinaxv/supervision-pc/blob/main/src/pages/WindowsUpdate.tsx): `src/pages/WindowsUpdate.tsx`
- [Activity history](https://github.com/rinaxv/supervision-pc/blob/main/src/pages/Historique.tsx): `src/pages/Historique.tsx`

### Other components

- **PC user**

## Connections

- PC user → Application shell: opens app
- Application shell → Navigation and theme: renders navigation (evidence: `src/App.tsx`)
- Application shell → System dashboard: routes to (evidence: `src/App.tsx`)
- Application shell → System diagnostics: routes to (evidence: `src/App.tsx`)
- Application shell → Process monitor: routes to (evidence: `src/App.tsx`)
- Application shell → Network connections: routes to (evidence: `src/App.tsx`)
- Application shell → Network app usage: routes to (evidence: `src/App.tsx`)
- Application shell → Data usage: routes to (evidence: `src/App.tsx`)
- Application shell → Speed test: routes to (evidence: `src/App.tsx`)
- Application shell → Wi-Fi health: routes to (evidence: `src/App.tsx`)
- Application shell → Disk activity: routes to (evidence: `src/App.tsx`)
- Application shell → Battery status: routes to (evidence: `src/App.tsx`)
- Application shell → Quick actions: routes to (evidence: `src/App.tsx`)
- Application shell → Maintenance: routes to (evidence: `src/App.tsx`)
- Application shell → Driver checks: routes to (evidence: `src/App.tsx`)
- Application shell → Disk cleanup: routes to (evidence: `src/App.tsx`)
- Application shell → Windows updates: routes to (evidence: `src/App.tsx`)
- Application shell → Activity history: routes to (evidence: `src/App.tsx`)
- Data usage → Tauri native layer: invokes commands
- Disk cleanup → Tauri native layer: invokes commands
- Quick actions → Tauri native layer: invokes commands
- Wi-Fi health → Tauri native layer: invokes commands
- Windows updates → Tauri native layer: invokes commands
