# ruvnet/wifi-densepose architecture

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

- Interactive diagram: https://gitdiagram.com/ruvnet/wifi-densepose
- Repository: https://github.com/ruvnet/wifi-densepose

## Overview

RuView is a WiFi sensing platform: ESP32 nodes capture CSI, which the system processes into presence, pose, activity, and vital-sign estimates for people and room monitoring. The repository also documents model training/loading, RF sensor fusion, privacy-bounded evidence, smart-home integrations, and an AI operator toolkit. The graph preserves those product branches, but several are represented at their existing directory level because their implementation was not sampled; dashed edges mark relationships not demonstrated by the excerpts.

Main entry points: [`firmware/esp32-csi-node/main`](https://github.com/ruvnet/wifi-densepose/tree/main/firmware/esp32-csi-node/main) (ESP32 CSI Node), [`v2/crates/wifi-densepose-pointcloud/src/csi_pipeline.rs`](https://github.com/ruvnet/wifi-densepose/blob/main/v2/crates/wifi-densepose-pointcloud/src/csi_pipeline.rs) (CSI Processing), [`ui/app.js`](https://github.com/ruvnet/wifi-densepose/blob/main/ui/app.js) (Sensing Dashboard), [`scripts/ruview-hap-bridge.py`](https://github.com/ruvnet/wifi-densepose/blob/main/scripts/ruview-hap-bridge.py) (Home Assistant)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_edge["Sensing Edge"]
  node_esp32["ESP32 CSI Node"]
end

subgraph group_intelligence["Sensing Intelligence"]
  node_pointcloud["CSI Processing<br/>[csi_pipeline.rs]"]
  node_posefusion["Pose Fusion<br/>[fusion-engine.js]"]
  node_physics["Pose Physics<br/>[engine.rs]"]
  node_sensingserver["Sensing Server<br/>[rvf_pipeline.rs]"]
  node_rvf["RVF Container<br/>[rvf_container.rs]"]
  node_nvsim["Sensor Simulation<br/>[pipeline.rs]"]
end

subgraph group_experience["User Interfaces"]
  node_sensingui["Sensing Dashboard<br/>[app.js]"]
  node_liveui["Live Demo<br/>[LiveDemoTab.js]"]
  node_websocket["WebSocket Service"]
  node_nvsimui["Simulation Dashboard<br/>[main.ts]"]
  node_nvsimclient["Simulation Client<br/>[NvsimClient.ts]"]
end

subgraph group_integration["Integrations"]
  node_homeassistant["Home Assistant"]
  node_matter["Matter Bridge<br/>[runtime.rs]"]
  node_privshield["Privacy Shield<br/>[veil_shield.c]"]
  node_ris["RIS Controller"]
end

subgraph group_operations["Model And Operator Tools"]
  node_training["Model Workflow"]
  node_metaharness["RuView Operator<br/>[cli.js]"]
  node_automation["Homecore Automation<br/>[engine.rs]"]
end

node_user(("Room Operator"))

node_user -.->|"deploys sensors"| node_esp32
node_esp32 -.->|"supplies CSI"| node_pointcloud
node_pointcloud -.->|"supports pose fusion"| node_posefusion
node_pointcloud -.->|"supplies pose estimates"| node_physics
node_sensingserver -->|"builds RVF models"| node_rvf
node_user -.->|"monitors rooms"| node_sensingui
node_sensingui -->|"opens sensing view"| node_liveui
node_sensingui -.->|"receives live data"| node_websocket
node_nvsimui -->|"selects transport"| node_nvsimclient
node_nvsimclient -.->|"runs simulation"| node_nvsim
node_esp32 -.->|"publishes sensing states"| node_homeassistant
node_homeassistant -.->|"exposes Matter endpoint"| node_matter
node_esp32 -.->|"uses privacy controls"| node_privshield
node_privshield -->|"controls RIS"| node_ris
node_user -.->|"trains models"| node_training
node_user -.->|"onboards and verifies"| node_metaharness
node_user -.->|"configures automations"| node_automation
node_automation -.->|"exposes home control"| node_homeassistant

click node_esp32 "https://github.com/ruvnet/wifi-densepose/tree/main/firmware/esp32-csi-node/main"
click node_pointcloud "https://github.com/ruvnet/wifi-densepose/blob/main/v2/crates/wifi-densepose-pointcloud/src/csi_pipeline.rs"
click node_posefusion "https://github.com/ruvnet/wifi-densepose/blob/main/ui/pose-fusion/js/fusion-engine.js"
click node_physics "https://github.com/ruvnet/wifi-densepose/blob/main/v2/crates/wifi-densepose-physics/src/engine.rs"
click node_sensingserver "https://github.com/ruvnet/wifi-densepose/blob/main/v2/crates/wifi-densepose-sensing-server/src/rvf_pipeline.rs"
click node_rvf "https://github.com/ruvnet/wifi-densepose/blob/main/v2/crates/wifi-densepose-sensing-server/src/rvf_container.rs"
click node_sensingui "https://github.com/ruvnet/wifi-densepose/blob/main/ui/app.js"
click node_liveui "https://github.com/ruvnet/wifi-densepose/blob/main/ui/components/LiveDemoTab.js"
click node_websocket "https://github.com/ruvnet/wifi-densepose/blob/main/ui/services/websocket.service.js"
click node_nvsimui "https://github.com/ruvnet/wifi-densepose/blob/main/dashboard/src/main.ts"
click node_nvsimclient "https://github.com/ruvnet/wifi-densepose/blob/main/dashboard/src/transport/NvsimClient.ts"
click node_nvsim "https://github.com/ruvnet/wifi-densepose/blob/main/v2/crates/nvsim/src/pipeline.rs"
click node_homeassistant "https://github.com/ruvnet/wifi-densepose/blob/main/scripts/ruview-hap-bridge.py"
click node_matter "https://github.com/ruvnet/wifi-densepose/blob/main/v2/crates/cog-ha-matter/src/runtime.rs"
click node_privshield "https://github.com/ruvnet/wifi-densepose/blob/main/firmware/privshield/core/veil_shield.c"
click node_ris "https://github.com/ruvnet/wifi-densepose/blob/main/firmware/privshield/esp32/veil_ris_controller/veil_ris_controller.c"
click node_training "https://github.com/ruvnet/wifi-densepose/blob/main/ui/services/training.service.js"
click node_metaharness "https://github.com/ruvnet/wifi-densepose/blob/main/harness/ruview/src/cli.js"
click node_automation "https://github.com/ruvnet/wifi-densepose/blob/main/v2/crates/homecore-automation/src/engine.rs"

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_esp32 toneBlue
class node_pointcloud,node_posefusion,node_physics,node_sensingserver,node_rvf,node_nvsim toneAmber
class node_sensingui,node_liveui,node_websocket,node_nvsimui,node_nvsimclient toneMint
class node_homeassistant,node_matter,node_privshield,node_ris toneRose
class node_training,node_metaharness,node_automation,node_user toneIndigo
```

## Components

### Sensing Edge

- [ESP32 CSI Node](https://github.com/ruvnet/wifi-densepose/tree/main/firmware/esp32-csi-node/main): `firmware/esp32-csi-node/main`

### Sensing Intelligence

- [CSI Processing](https://github.com/ruvnet/wifi-densepose/blob/main/v2/crates/wifi-densepose-pointcloud/src/csi_pipeline.rs): `v2/crates/wifi-densepose-pointcloud/src/csi_pipeline.rs`
- [Pose Fusion](https://github.com/ruvnet/wifi-densepose/blob/main/ui/pose-fusion/js/fusion-engine.js): `ui/pose-fusion/js/fusion-engine.js`
- [Pose Physics](https://github.com/ruvnet/wifi-densepose/blob/main/v2/crates/wifi-densepose-physics/src/engine.rs): `v2/crates/wifi-densepose-physics/src/engine.rs`
- [Sensing Server](https://github.com/ruvnet/wifi-densepose/blob/main/v2/crates/wifi-densepose-sensing-server/src/rvf_pipeline.rs): `v2/crates/wifi-densepose-sensing-server/src/rvf_pipeline.rs`
- [RVF Container](https://github.com/ruvnet/wifi-densepose/blob/main/v2/crates/wifi-densepose-sensing-server/src/rvf_container.rs): `v2/crates/wifi-densepose-sensing-server/src/rvf_container.rs`
- [Sensor Simulation](https://github.com/ruvnet/wifi-densepose/blob/main/v2/crates/nvsim/src/pipeline.rs): `v2/crates/nvsim/src/pipeline.rs`

### User Interfaces

- [Sensing Dashboard](https://github.com/ruvnet/wifi-densepose/blob/main/ui/app.js): `ui/app.js`
- [Live Demo](https://github.com/ruvnet/wifi-densepose/blob/main/ui/components/LiveDemoTab.js): `ui/components/LiveDemoTab.js`
- [WebSocket Service](https://github.com/ruvnet/wifi-densepose/blob/main/ui/services/websocket.service.js): `ui/services/websocket.service.js`
- [Simulation Dashboard](https://github.com/ruvnet/wifi-densepose/blob/main/dashboard/src/main.ts): `dashboard/src/main.ts`
- [Simulation Client](https://github.com/ruvnet/wifi-densepose/blob/main/dashboard/src/transport/NvsimClient.ts): `dashboard/src/transport/NvsimClient.ts`

### Integrations

- [Home Assistant](https://github.com/ruvnet/wifi-densepose/blob/main/scripts/ruview-hap-bridge.py): `scripts/ruview-hap-bridge.py`
- [Matter Bridge](https://github.com/ruvnet/wifi-densepose/blob/main/v2/crates/cog-ha-matter/src/runtime.rs): `v2/crates/cog-ha-matter/src/runtime.rs`
- [Privacy Shield](https://github.com/ruvnet/wifi-densepose/blob/main/firmware/privshield/core/veil_shield.c): `firmware/privshield/core/veil_shield.c`
- [RIS Controller](https://github.com/ruvnet/wifi-densepose/blob/main/firmware/privshield/esp32/veil_ris_controller/veil_ris_controller.c): `firmware/privshield/esp32/veil_ris_controller/veil_ris_controller.c`

### Model And Operator Tools

- [Model Workflow](https://github.com/ruvnet/wifi-densepose/blob/main/ui/services/training.service.js): `ui/services/training.service.js`
- [RuView Operator](https://github.com/ruvnet/wifi-densepose/blob/main/harness/ruview/src/cli.js): `harness/ruview/src/cli.js`
- [Homecore Automation](https://github.com/ruvnet/wifi-densepose/blob/main/v2/crates/homecore-automation/src/engine.rs): `v2/crates/homecore-automation/src/engine.rs`

### Other components

- **Room Operator**

## Connections

- Room Operator → ESP32 CSI Node: deploys sensors (evidence: `README.md`)
- ESP32 CSI Node → CSI Processing: supplies CSI (evidence: `README.md`)
- CSI Processing → Pose Fusion: supports pose fusion (evidence: `README.md`)
- CSI Processing → Pose Physics: supplies pose estimates (evidence: `README.md`)
- Sensing Server → RVF Container: builds RVF models (evidence: `v2/crates/wifi-densepose-sensing-server/src/rvf_pipeline.rs`)
- Room Operator → Sensing Dashboard: monitors rooms (evidence: `README.md`)
- Sensing Dashboard → Live Demo: opens sensing view (evidence: `ui/app.js`)
- Sensing Dashboard → WebSocket Service: receives live data (evidence: `ui/app.js`)
- Simulation Dashboard → Simulation Client: selects transport (evidence: `dashboard/src/main.ts`)
- Simulation Client → Sensor Simulation: runs simulation
- ESP32 CSI Node → Home Assistant: publishes sensing states (evidence: `README.md`)
- Home Assistant → Matter Bridge: exposes Matter endpoint (evidence: `README.md`)
- ESP32 CSI Node → Privacy Shield: uses privacy controls (evidence: `README.md`)
- Privacy Shield → RIS Controller: controls RIS (evidence: `firmware/privshield/esp32/veil_ris_controller/veil_ris_controller.c`)
- Room Operator → Model Workflow: trains models (evidence: `README.md`)
- Room Operator → RuView Operator: onboards and verifies (evidence: `README.md`)
- Room Operator → Homecore Automation: configures automations (evidence: `README.md`)
- Homecore Automation → Home Assistant: exposes home control
