# aeris-team/aeris-project architecture

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

- Interactive diagram: https://gitdiagram.com/aeris-team/aeris-project
- Repository: https://github.com/aeris-team/aeris-project

## Overview

AERIS is a drone-assisted search-and-rescue monitoring system. An onboard Raspberry Pi captures camera footage, detects people, and sends telemetry and detections to the FastAPI ground-station backend; the React dashboard receives backend updates and presents mission, detection, map, settings, and video views. The repository also includes a local drone simulator and a separate onboard Flask dashboard. Unsampled module internals are represented as capabilities, but their call relationships are omitted where the excerpts and README do not establish them.

Main entry points: [`ground-station/frontend/src/App.tsx`](https://github.com/aeris-team/aeris-project/blob/main/ground-station/frontend/src/App.tsx) (Dashboard routing), [`drone-onboard/raspberry-pi-5/main.py`](https://github.com/aeris-team/aeris-project/blob/main/drone-onboard/raspberry-pi-5/main.py) (Onboard runtime), [`ground-station/backend/main.py`](https://github.com/aeris-team/aeris-project/blob/main/ground-station/backend/main.py) (API and video proxy), [`ground-station/backend/simulate_drone.py`](https://github.com/aeris-team/aeris-project/blob/main/ground-station/backend/simulate_drone.py) (Fake drone)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_onboard["Onboard drone"]
  node_pi_main["Onboard runtime<br/>[main.py]"]
  node_person_detection["Person detection<br/>[human_detection.py]"]
  node_vital_signs["Vital signs<br/>[vital_signs.py]"]
  node_packet["Detection packets<br/>[packet.py]"]
  node_sender["LoRa sender<br/>[sender.py]"]
  node_receiver["LoRa receiver<br/>[receiver.py]"]
  node_device_sim["Hardware telemetry"]
  node_pi_dashboard["Onboard dashboard<br/>[dashboard.py]"]
  node_gcs_link["Backend HTTP link<br/>[gcs_link.py]"]
end

subgraph group_backend["Ground backend"]
  node_backend_api["API and video proxy<br/>[main.py]"]
end

subgraph group_frontend["Ground dashboard"]
  node_frontend_app["Dashboard routing<br/>[App.tsx]"]
  node_websocket["Live updates<br/>[useWebSocket.ts]"]
  node_app_store["Mission state<br/>[appStore.ts]"]
  node_dashboard_views["Mission and map views<br/>[Dashboard.tsx]"]
  node_detection_views["Detection views<br/>[DetectionsPage.tsx]"]
  node_live_views["Live video views<br/>[LiveFeedPage.tsx]"]
  node_settings_view["Settings view<br/>[SettingsPage.tsx]"]
end

subgraph group_simulation["Simulation"]
  node_sim_drone["Fake drone<br/>[simulate_drone.py]"]
end

node_drone_actor(("Drone or simulator"))
node_frontend_user(("Operator"))

node_pi_main -->|"runs detection"| node_person_detection
node_pi_main -->|"sends telemetry"| node_gcs_link
node_pi_main -->|"starts dashboard"| node_pi_dashboard
node_pi_main -->|"starts simulation"| node_device_sim
node_device_sim -->|"provides status"| node_pi_dashboard
node_drone_actor -.->|"supplies camera feed"| node_pi_main
node_gcs_link -->|"posts telemetry"| node_backend_api
node_backend_api -->|"serves dashboard data"| node_frontend_app
node_backend_api -->|"proxies video"| node_drone_actor
node_sim_drone -->|"posts telemetry"| node_backend_api
node_sim_drone -->|"posts detections"| node_backend_api
node_frontend_app -->|"opens connection"| node_websocket
node_websocket -->|"updates state"| node_app_store
node_frontend_app -->|"routes to"| node_dashboard_views
node_frontend_app -->|"routes to"| node_detection_views
node_frontend_app -->|"routes to"| node_live_views
node_frontend_app -->|"routes to"| node_settings_view
node_frontend_user -->|"uses dashboard"| node_frontend_app

click node_pi_main "https://github.com/aeris-team/aeris-project/blob/main/drone-onboard/raspberry-pi-5/main.py"
click node_person_detection "https://github.com/aeris-team/aeris-project/blob/main/drone-onboard/raspberry-pi-5/human_detection.py"
click node_vital_signs "https://github.com/aeris-team/aeris-project/blob/main/drone-onboard/raspberry-pi-5/vital_signs.py"
click node_packet "https://github.com/aeris-team/aeris-project/blob/main/drone-onboard/raspberry-pi-5/packet.py"
click node_sender "https://github.com/aeris-team/aeris-project/blob/main/drone-onboard/raspberry-pi-5/sender.py"
click node_receiver "https://github.com/aeris-team/aeris-project/blob/main/drone-onboard/raspberry-pi-5/receiver.py"
click node_device_sim "https://github.com/aeris-team/aeris-project/blob/main/drone-onboard/raspberry-pi-5/hardware_simulator.py"
click node_pi_dashboard "https://github.com/aeris-team/aeris-project/blob/main/drone-onboard/raspberry-pi-5/dashboard.py"
click node_gcs_link "https://github.com/aeris-team/aeris-project/blob/main/drone-onboard/gcs_link.py"
click node_backend_api "https://github.com/aeris-team/aeris-project/blob/main/ground-station/backend/main.py"
click node_frontend_app "https://github.com/aeris-team/aeris-project/blob/main/ground-station/frontend/src/App.tsx"
click node_websocket "https://github.com/aeris-team/aeris-project/blob/main/ground-station/frontend/src/hooks/useWebSocket.ts"
click node_app_store "https://github.com/aeris-team/aeris-project/blob/main/ground-station/frontend/src/stores/appStore.ts"
click node_dashboard_views "https://github.com/aeris-team/aeris-project/blob/main/ground-station/frontend/src/pages/Dashboard.tsx"
click node_detection_views "https://github.com/aeris-team/aeris-project/blob/main/ground-station/frontend/src/pages/DetectionsPage.tsx"
click node_live_views "https://github.com/aeris-team/aeris-project/blob/main/ground-station/frontend/src/pages/LiveFeedPage.tsx"
click node_settings_view "https://github.com/aeris-team/aeris-project/blob/main/ground-station/frontend/src/pages/SettingsPage.tsx"
click node_sim_drone "https://github.com/aeris-team/aeris-project/blob/main/ground-station/backend/simulate_drone.py"

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_pi_main,node_person_detection,node_vital_signs,node_packet,node_sender,node_receiver,node_device_sim,node_pi_dashboard,node_gcs_link toneBlue
class node_backend_api toneAmber
class node_frontend_app,node_websocket,node_app_store,node_dashboard_views,node_detection_views,node_live_views,node_settings_view toneMint
class node_sim_drone toneRose
class node_drone_actor,node_frontend_user toneIndigo
```

## Components

### Onboard drone

- [Onboard runtime](https://github.com/aeris-team/aeris-project/blob/main/drone-onboard/raspberry-pi-5/main.py): `drone-onboard/raspberry-pi-5/main.py`
- [Person detection](https://github.com/aeris-team/aeris-project/blob/main/drone-onboard/raspberry-pi-5/human_detection.py): `drone-onboard/raspberry-pi-5/human_detection.py`
- [Vital signs](https://github.com/aeris-team/aeris-project/blob/main/drone-onboard/raspberry-pi-5/vital_signs.py): `drone-onboard/raspberry-pi-5/vital_signs.py`
- [Detection packets](https://github.com/aeris-team/aeris-project/blob/main/drone-onboard/raspberry-pi-5/packet.py): `drone-onboard/raspberry-pi-5/packet.py`
- [LoRa sender](https://github.com/aeris-team/aeris-project/blob/main/drone-onboard/raspberry-pi-5/sender.py): `drone-onboard/raspberry-pi-5/sender.py`
- [LoRa receiver](https://github.com/aeris-team/aeris-project/blob/main/drone-onboard/raspberry-pi-5/receiver.py): `drone-onboard/raspberry-pi-5/receiver.py`
- [Hardware telemetry](https://github.com/aeris-team/aeris-project/blob/main/drone-onboard/raspberry-pi-5/hardware_simulator.py): `drone-onboard/raspberry-pi-5/hardware_simulator.py`
- [Onboard dashboard](https://github.com/aeris-team/aeris-project/blob/main/drone-onboard/raspberry-pi-5/dashboard.py): `drone-onboard/raspberry-pi-5/dashboard.py`
- [Backend HTTP link](https://github.com/aeris-team/aeris-project/blob/main/drone-onboard/gcs_link.py): `drone-onboard/gcs_link.py`

### Ground backend

- [API and video proxy](https://github.com/aeris-team/aeris-project/blob/main/ground-station/backend/main.py): `ground-station/backend/main.py`

### Ground dashboard

- [Dashboard routing](https://github.com/aeris-team/aeris-project/blob/main/ground-station/frontend/src/App.tsx): `ground-station/frontend/src/App.tsx`
- [Live updates](https://github.com/aeris-team/aeris-project/blob/main/ground-station/frontend/src/hooks/useWebSocket.ts): `ground-station/frontend/src/hooks/useWebSocket.ts`
- [Mission state](https://github.com/aeris-team/aeris-project/blob/main/ground-station/frontend/src/stores/appStore.ts): `ground-station/frontend/src/stores/appStore.ts`
- [Mission and map views](https://github.com/aeris-team/aeris-project/blob/main/ground-station/frontend/src/pages/Dashboard.tsx): `ground-station/frontend/src/pages/Dashboard.tsx`
- [Detection views](https://github.com/aeris-team/aeris-project/blob/main/ground-station/frontend/src/pages/DetectionsPage.tsx): `ground-station/frontend/src/pages/DetectionsPage.tsx`
- [Live video views](https://github.com/aeris-team/aeris-project/blob/main/ground-station/frontend/src/pages/LiveFeedPage.tsx): `ground-station/frontend/src/pages/LiveFeedPage.tsx`
- [Settings view](https://github.com/aeris-team/aeris-project/blob/main/ground-station/frontend/src/pages/SettingsPage.tsx): `ground-station/frontend/src/pages/SettingsPage.tsx`

### Simulation

- [Fake drone](https://github.com/aeris-team/aeris-project/blob/main/ground-station/backend/simulate_drone.py): `ground-station/backend/simulate_drone.py`

### Other components

- **Drone or simulator**
- **Operator**

## Connections

- Onboard runtime → Person detection: runs detection (evidence: `README.md`)
- Onboard runtime → Backend HTTP link: sends telemetry (evidence: `README.md`)
- Onboard runtime → Onboard dashboard: starts dashboard (evidence: `README.md`)
- Onboard runtime → Hardware telemetry: starts simulation (evidence: `drone-onboard/raspberry-pi-5/hardware_simulator.py`)
- Hardware telemetry → Onboard dashboard: provides status (evidence: `drone-onboard/raspberry-pi-5/hardware_simulator.py`)
- Drone or simulator → Onboard runtime: supplies camera feed
- Backend HTTP link → API and video proxy: posts telemetry (evidence: `drone-onboard/gcs_link.py`)
- API and video proxy → Dashboard routing: serves dashboard data (evidence: `README.md`)
- API and video proxy → Drone or simulator: proxies video (evidence: `README.md`)
- Fake drone → API and video proxy: posts telemetry (evidence: `README.md`)
- Fake drone → API and video proxy: posts detections (evidence: `README.md`)
- Dashboard routing → Live updates: opens connection (evidence: `ground-station/frontend/src/App.tsx`)
- Live updates → Mission state: updates state (evidence: `ground-station/frontend/src/hooks/useWebSocket.ts`)
- Dashboard routing → Mission and map views: routes to (evidence: `ground-station/frontend/src/App.tsx`)
- Dashboard routing → Detection views: routes to (evidence: `ground-station/frontend/src/App.tsx`)
- Dashboard routing → Live video views: routes to (evidence: `ground-station/frontend/src/App.tsx`)
- Dashboard routing → Settings view: routes to (evidence: `ground-station/frontend/src/App.tsx`)
- Operator → Dashboard routing: uses dashboard (evidence: `README.md`)
