How leoduarte2005/astrovital works
AstroVital is an offline crew-health monitoring system: ESP32 mesh nodes capture Wi-Fi CSI and optional I²C readings; a Go central service receives and buffers them, exchanges windows with a Python edge-AI worker, and serves results to the React interface. The AI extracts features, runs inference, adapts per-crew baselines, and correlates symptoms with clinical knowledge. The interface presents crew health through vitals, a 3D twin, clinical chat, guided self-exam, and games. The graph follows documented README flows and sampled module references; unsampled internals are represented only at supported subsystem paths.
Main entry points: handlers.py AI dispatcher · server.go HTTP and WebSocket · pipeline.go CSI pipeline · correlator.py Clinical correlation
Components 26
Sensor mesh
- ESP32 firmware
firmware/main/app_main.c - CSI capture
firmware/main/csi_capture.c - TDM sync
firmware/main/tdm_sync.c - I²C sensors
firmware/main/i2c_sensors.c - UDP transport
firmware/main/udp_transport.c
Central service
- Central wiring
central/cmd/edgespace-central/wiring.go - UDP receiver
central/internal/udp/receiver.go - Cluster manager
central/internal/cluster/manager.go - CSI pipeline
central/internal/pipeline/pipeline.go - IPC client
central/internal/ipc/ipc.go - Local health store
central/internal/store/store.go - HTTP and WebSocket
central/internal/httpws/server.go
Edge intelligence
- AI IPC server
edge-ai/src/edgespace_ai/ipc/server.py - AI dispatcher
edge-ai/src/edgespace_ai/ipc/handlers.py - CSI feature pipeline
edge-ai/src/edgespace_ai/dsp/feature_extractor.py - ONNX inference
edge-ai/src/edgespace_ai/inference/session_manager.py - Crew adaptation
edge-ai/src/edgespace_ai/adaptation/baseline_registry.py
Clinical knowledge
- Clinical correlation
edge-ai/src/edgespace_ai/correlation/correlator.py - Symptom extraction
edge-ai/src/edgespace_ai/correlation/symptom_extractor.py - Causal knowledge
edge-ai/src/edgespace_ai/correlation/causal_graph.py
Crew interface
- Crew health panel
frontend/src/features/vitals/VitalsPanel.tsx - 3D digital twin
frontend/src/features/twin3d/TwinCanvas.tsx - Clinical chat
frontend/src/features/chat/ChatDrawer.tsx - Self-exam games
frontend/src/features/games/catalog.ts - Crew training
frontend/src/features/training/TrainingScene.tsx
Other components
- Crew member
Connections 24
- Crew member → Crew health panel: views health
README.md - CSI capture → TDM sync: sweeps links
README.md - TDM sync → UDP transport: sends CSI
README.md - I²C sensors → UDP transport: sends readings
README.md - UDP transport → UDP receiver: transmits frames
README.md - UDP receiver → Cluster manager: decodes and tracks
README.md - Cluster manager → CSI pipeline: routes CSI
README.md - CSI pipeline → Local health store: persists data
README.md - CSI pipeline → IPC client: sends windows
README.md - IPC client → AI IPC server: exchanges frames
README.md - AI IPC server → AI dispatcher: dispatches messages
edge-ai/src/edgespace_ai/ipc/server.py - AI dispatcher → CSI feature pipeline: processes CSI
edge-ai/src/edgespace_ai/ipc/handlers.py - AI dispatcher → ONNX inference: runs models
edge-ai/src/edgespace_ai/ipc/handlers.py - AI dispatcher → Crew adaptation: uses crew baseline
edge-ai/src/edgespace_ai/ipc/handlers.py - AI dispatcher → Clinical correlation: correlates reports
edge-ai/src/edgespace_ai/ipc/handlers.py - Clinical correlation → Symptom extraction: extracts symptoms
edge-ai/src/edgespace_ai/correlation/correlator.py - Clinical correlation → Causal knowledge: assesses causes
edge-ai/src/edgespace_ai/correlation/correlator.py - AI dispatcher → HTTP and WebSocket: returns telemetry
README.md - HTTP and WebSocket → Crew health panel: serves health data
README.md - HTTP and WebSocket → 3D digital twin: updates twin
README.md - HTTP and WebSocket → Clinical chat: serves chat
README.md - Crew member → Clinical chat: reports symptoms
README.md - Crew member → Self-exam games: uses self-exam
README.md - Crew member → Crew training: practices training
README.md