# abdullahhammad652-bot/autonomous-astronaut-health-monitoring-edge-ai-decision-support architecture

> Architecture diagram of the GitHub repository abdullahhammad652-bot/autonomous-astronaut-health-monitoring-edge-ai-decision-support, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-16). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/abdullahhammad652-bot/autonomous-astronaut-health-monitoring-edge-ai-decision-support
- Repository: https://github.com/abdullahhammad652-bot/autonomous-astronaut-health-monitoring-edge-ai-decision-support

## Overview

AstroPulse is an astronaut health-monitoring and medical decision-support application: crew members enter through the web/mobile UI, review health domains and AI triage, and can receive countermeasures or export a report. A separate Express service exposes cached vitals and asynchronous report-job endpoints. The excerpts show the frontend’s component wiring and selected backend calls; no frontend-to-API connection is evidenced, and the Android shell’s runtime behavior is not shown.

Main entry points: [`src/App.jsx`](https://github.com/abdullahhammad652-bot/autonomous-astronaut-health-monitoring-edge-ai-decision-support/blob/main/src/App.jsx) (Mission app), [`server/routes/api.js`](https://github.com/abdullahhammad652-bot/autonomous-astronaut-health-monitoring-edge-ai-decision-support/blob/main/server/routes/api.js) (HTTP API), [`src/components/AuthModal.jsx`](https://github.com/abdullahhammad652-bot/autonomous-astronaut-health-monitoring-edge-ai-decision-support/blob/main/src/components/AuthModal.jsx) (Crew authentication), [`server/index.js`](https://github.com/abdullahhammad652-bot/autonomous-astronaut-health-monitoring-edge-ai-decision-support/blob/main/server/index.js) (Express server)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Application Entry"]
  node_mount["React mount<br/>[main.jsx]"]
  node_app["Mission app<br/>[App.jsx]"]
end

subgraph group_health["Health Monitoring"]
  node_dashboard["Command dashboard"]
  node_radiation["Radiation tracker"]
  node_cardio["Cardio and SANS<br/>[CardioSANS.jsx]"]
  node_musculo["Musculoskeletal tracker<br/>[MusculoTracker.jsx]"]
  node_cognitive["Cognitive PVT<br/>[CognitivePVT.jsx]"]
  node_checkin["Daily check-in<br/>[DailyCheckIn.jsx]"]
  node_telemetry["Telemetry canvas"]
end

subgraph group_decision["Triage and Guidance"]
  node_triage["Health risk model<br/>[modelWeights.js]"]
  node_simulator["Vitals simulator"]
  node_suggestions["Health suggestions"]
  node_officer["Medical officer"]
  node_voice["Voice assistant"]
end

subgraph group_backend["Telemetry Service"]
  node_api["HTTP API<br/>[api.js]"]
  node_cache[("Vitals cache<br/>[redisCache.js]")]
  node_queue["Background job queue<br/>[jobQueue.js]"]
  node_limiter["Rate limiter<br/>[rateLimiter.js]"]
  node_server["Express server<br/>[index.js]"]
end

subgraph group_support["User and Reporting"]
  node_auth["Crew authentication<br/>[AuthModal.jsx]"]
  node_biometric["Biometric modal<br/>[BiometricModal.jsx]"]
  node_header["App header<br/>[Header.jsx]"]
  node_theme["Theme switcher<br/>[ThemeSwitcher.jsx]"]
  node_pdf["Health PDF generator"]
end

node_crew(("Crew member"))

node_crew -->|"opens app"| node_mount
node_mount -->|"renders"| node_app
node_app -->|"renders"| node_dashboard
node_app -->|"renders"| node_radiation
node_app -->|"renders"| node_cardio
node_app -->|"renders"| node_musculo
node_app -->|"renders"| node_cognitive
node_app -->|"renders"| node_checkin
node_app -->|"renders"| node_officer
node_app -->|"renders"| node_simulator
node_app -->|"renders"| node_voice
node_app -->|"renders"| node_auth
node_app -->|"predicts risk"| node_triage
node_cardio -->|"uses"| node_telemetry
node_simulator -->|"uses model"| node_triage
node_dashboard -->|"exports report"| node_pdf
node_pdf -->|"gets suggestions"| node_suggestions
node_auth -->|"opens"| node_biometric
node_auth -->|"uses"| node_theme
node_header -->|"uses"| node_theme
node_server -->|"applies"| node_limiter
node_server -->|"mounts routes"| node_api
node_api -->|"reads and writes"| node_cache
node_api -->|"enqueues jobs"| node_queue

click node_mount "https://github.com/abdullahhammad652-bot/autonomous-astronaut-health-monitoring-edge-ai-decision-support/blob/main/src/main.jsx"
click node_app "https://github.com/abdullahhammad652-bot/autonomous-astronaut-health-monitoring-edge-ai-decision-support/blob/main/src/App.jsx"
click node_dashboard "https://github.com/abdullahhammad652-bot/autonomous-astronaut-health-monitoring-edge-ai-decision-support/blob/main/src/components/CommandDashboard.jsx"
click node_radiation "https://github.com/abdullahhammad652-bot/autonomous-astronaut-health-monitoring-edge-ai-decision-support/blob/main/src/components/RadiationTracker.jsx"
click node_cardio "https://github.com/abdullahhammad652-bot/autonomous-astronaut-health-monitoring-edge-ai-decision-support/blob/main/src/components/CardioSANS.jsx"
click node_musculo "https://github.com/abdullahhammad652-bot/autonomous-astronaut-health-monitoring-edge-ai-decision-support/blob/main/src/components/MusculoTracker.jsx"
click node_cognitive "https://github.com/abdullahhammad652-bot/autonomous-astronaut-health-monitoring-edge-ai-decision-support/blob/main/src/components/CognitivePVT.jsx"
click node_checkin "https://github.com/abdullahhammad652-bot/autonomous-astronaut-health-monitoring-edge-ai-decision-support/blob/main/src/components/DailyCheckIn.jsx"
click node_telemetry "https://github.com/abdullahhammad652-bot/autonomous-astronaut-health-monitoring-edge-ai-decision-support/blob/main/src/components/TelemetryCanvas.jsx"
click node_triage "https://github.com/abdullahhammad652-bot/autonomous-astronaut-health-monitoring-edge-ai-decision-support/blob/main/src/ml/modelWeights.js"
click node_simulator "https://github.com/abdullahhammad652-bot/autonomous-astronaut-health-monitoring-edge-ai-decision-support/blob/main/src/components/VitalsSimulator.jsx"
click node_suggestions "https://github.com/abdullahhammad652-bot/autonomous-astronaut-health-monitoring-edge-ai-decision-support/blob/main/src/components/HealthSuggestions.jsx"
click node_officer "https://github.com/abdullahhammad652-bot/autonomous-astronaut-health-monitoring-edge-ai-decision-support/blob/main/src/components/AstroMedOfficer.jsx"
click node_voice "https://github.com/abdullahhammad652-bot/autonomous-astronaut-health-monitoring-edge-ai-decision-support/blob/main/src/components/VoiceAIAssistant.jsx"
click node_auth "https://github.com/abdullahhammad652-bot/autonomous-astronaut-health-monitoring-edge-ai-decision-support/blob/main/src/components/AuthModal.jsx"
click node_biometric "https://github.com/abdullahhammad652-bot/autonomous-astronaut-health-monitoring-edge-ai-decision-support/blob/main/src/components/BiometricModal.jsx"
click node_header "https://github.com/abdullahhammad652-bot/autonomous-astronaut-health-monitoring-edge-ai-decision-support/blob/main/src/components/Header.jsx"
click node_theme "https://github.com/abdullahhammad652-bot/autonomous-astronaut-health-monitoring-edge-ai-decision-support/blob/main/src/components/ThemeSwitcher.jsx"
click node_pdf "https://github.com/abdullahhammad652-bot/autonomous-astronaut-health-monitoring-edge-ai-decision-support/blob/main/src/utils/generateHealthPDF.js"
click node_api "https://github.com/abdullahhammad652-bot/autonomous-astronaut-health-monitoring-edge-ai-decision-support/blob/main/server/routes/api.js"
click node_cache "https://github.com/abdullahhammad652-bot/autonomous-astronaut-health-monitoring-edge-ai-decision-support/blob/main/server/cache/redisCache.js"
click node_queue "https://github.com/abdullahhammad652-bot/autonomous-astronaut-health-monitoring-edge-ai-decision-support/blob/main/server/queue/jobQueue.js"
click node_limiter "https://github.com/abdullahhammad652-bot/autonomous-astronaut-health-monitoring-edge-ai-decision-support/blob/main/server/middleware/rateLimiter.js"
click node_server "https://github.com/abdullahhammad652-bot/autonomous-astronaut-health-monitoring-edge-ai-decision-support/blob/main/server/index.js"

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_mount,node_app toneBlue
class node_dashboard,node_radiation,node_cardio,node_musculo,node_cognitive,node_checkin,node_telemetry toneAmber
class node_triage,node_simulator,node_suggestions,node_officer,node_voice toneMint
class node_api,node_cache,node_queue,node_limiter,node_server toneRose
class node_auth,node_biometric,node_header,node_theme,node_pdf,node_crew toneIndigo
```

## Components

### Application Entry

- [React mount](https://github.com/abdullahhammad652-bot/autonomous-astronaut-health-monitoring-edge-ai-decision-support/blob/main/src/main.jsx): `src/main.jsx`
- [Mission app](https://github.com/abdullahhammad652-bot/autonomous-astronaut-health-monitoring-edge-ai-decision-support/blob/main/src/App.jsx): `src/App.jsx`

### Health Monitoring

- [Command dashboard](https://github.com/abdullahhammad652-bot/autonomous-astronaut-health-monitoring-edge-ai-decision-support/blob/main/src/components/CommandDashboard.jsx): `src/components/CommandDashboard.jsx`
- [Radiation tracker](https://github.com/abdullahhammad652-bot/autonomous-astronaut-health-monitoring-edge-ai-decision-support/blob/main/src/components/RadiationTracker.jsx): `src/components/RadiationTracker.jsx`
- [Cardio and SANS](https://github.com/abdullahhammad652-bot/autonomous-astronaut-health-monitoring-edge-ai-decision-support/blob/main/src/components/CardioSANS.jsx): `src/components/CardioSANS.jsx`
- [Musculoskeletal tracker](https://github.com/abdullahhammad652-bot/autonomous-astronaut-health-monitoring-edge-ai-decision-support/blob/main/src/components/MusculoTracker.jsx): `src/components/MusculoTracker.jsx`
- [Cognitive PVT](https://github.com/abdullahhammad652-bot/autonomous-astronaut-health-monitoring-edge-ai-decision-support/blob/main/src/components/CognitivePVT.jsx): `src/components/CognitivePVT.jsx`
- [Daily check-in](https://github.com/abdullahhammad652-bot/autonomous-astronaut-health-monitoring-edge-ai-decision-support/blob/main/src/components/DailyCheckIn.jsx): `src/components/DailyCheckIn.jsx`
- [Telemetry canvas](https://github.com/abdullahhammad652-bot/autonomous-astronaut-health-monitoring-edge-ai-decision-support/blob/main/src/components/TelemetryCanvas.jsx): `src/components/TelemetryCanvas.jsx`

### Triage and Guidance

- [Health risk model](https://github.com/abdullahhammad652-bot/autonomous-astronaut-health-monitoring-edge-ai-decision-support/blob/main/src/ml/modelWeights.js): `src/ml/modelWeights.js`
- [Vitals simulator](https://github.com/abdullahhammad652-bot/autonomous-astronaut-health-monitoring-edge-ai-decision-support/blob/main/src/components/VitalsSimulator.jsx): `src/components/VitalsSimulator.jsx`
- [Health suggestions](https://github.com/abdullahhammad652-bot/autonomous-astronaut-health-monitoring-edge-ai-decision-support/blob/main/src/components/HealthSuggestions.jsx): `src/components/HealthSuggestions.jsx`
- [Medical officer](https://github.com/abdullahhammad652-bot/autonomous-astronaut-health-monitoring-edge-ai-decision-support/blob/main/src/components/AstroMedOfficer.jsx): `src/components/AstroMedOfficer.jsx`
- [Voice assistant](https://github.com/abdullahhammad652-bot/autonomous-astronaut-health-monitoring-edge-ai-decision-support/blob/main/src/components/VoiceAIAssistant.jsx): `src/components/VoiceAIAssistant.jsx`

### Telemetry Service

- [HTTP API](https://github.com/abdullahhammad652-bot/autonomous-astronaut-health-monitoring-edge-ai-decision-support/blob/main/server/routes/api.js): `server/routes/api.js`
- [Vitals cache](https://github.com/abdullahhammad652-bot/autonomous-astronaut-health-monitoring-edge-ai-decision-support/blob/main/server/cache/redisCache.js): `server/cache/redisCache.js`
- [Background job queue](https://github.com/abdullahhammad652-bot/autonomous-astronaut-health-monitoring-edge-ai-decision-support/blob/main/server/queue/jobQueue.js): `server/queue/jobQueue.js`
- [Rate limiter](https://github.com/abdullahhammad652-bot/autonomous-astronaut-health-monitoring-edge-ai-decision-support/blob/main/server/middleware/rateLimiter.js): `server/middleware/rateLimiter.js`
- [Express server](https://github.com/abdullahhammad652-bot/autonomous-astronaut-health-monitoring-edge-ai-decision-support/blob/main/server/index.js): `server/index.js`

### User and Reporting

- [Crew authentication](https://github.com/abdullahhammad652-bot/autonomous-astronaut-health-monitoring-edge-ai-decision-support/blob/main/src/components/AuthModal.jsx): `src/components/AuthModal.jsx`
- [Biometric modal](https://github.com/abdullahhammad652-bot/autonomous-astronaut-health-monitoring-edge-ai-decision-support/blob/main/src/components/BiometricModal.jsx): `src/components/BiometricModal.jsx`
- [App header](https://github.com/abdullahhammad652-bot/autonomous-astronaut-health-monitoring-edge-ai-decision-support/blob/main/src/components/Header.jsx): `src/components/Header.jsx`
- [Theme switcher](https://github.com/abdullahhammad652-bot/autonomous-astronaut-health-monitoring-edge-ai-decision-support/blob/main/src/components/ThemeSwitcher.jsx): `src/components/ThemeSwitcher.jsx`
- [Health PDF generator](https://github.com/abdullahhammad652-bot/autonomous-astronaut-health-monitoring-edge-ai-decision-support/blob/main/src/utils/generateHealthPDF.js): `src/utils/generateHealthPDF.js`

### Other components

- **Crew member**

## Connections

- Crew member → React mount: opens app
- React mount → Mission app: renders (evidence: `src/main.jsx`)
- Mission app → Command dashboard: renders (evidence: `src/App.jsx`)
- Mission app → Radiation tracker: renders (evidence: `src/App.jsx`)
- Mission app → Cardio and SANS: renders (evidence: `src/App.jsx`)
- Mission app → Musculoskeletal tracker: renders (evidence: `src/App.jsx`)
- Mission app → Cognitive PVT: renders (evidence: `src/App.jsx`)
- Mission app → Daily check-in: renders (evidence: `src/App.jsx`)
- Mission app → Medical officer: renders (evidence: `src/App.jsx`)
- Mission app → Vitals simulator: renders (evidence: `src/App.jsx`)
- Mission app → Voice assistant: renders (evidence: `src/App.jsx`)
- Mission app → Crew authentication: renders (evidence: `src/App.jsx`)
- Mission app → Health risk model: predicts risk (evidence: `src/App.jsx`)
- Cardio and SANS → Telemetry canvas: uses (evidence: `src/components/CardioSANS.jsx`)
- Vitals simulator → Health risk model: uses model (evidence: `src/components/VitalsSimulator.jsx`)
- Command dashboard → Health PDF generator: exports report (evidence: `src/components/CommandDashboard.jsx`)
- Health PDF generator → Health suggestions: gets suggestions (evidence: `src/utils/generateHealthPDF.js`)
- Crew authentication → Biometric modal: opens (evidence: `src/components/AuthModal.jsx`)
- Crew authentication → Theme switcher: uses (evidence: `src/components/AuthModal.jsx`)
- App header → Theme switcher: uses (evidence: `src/components/Header.jsx`)
- Express server → Rate limiter: applies (evidence: `server/index.js`)
- Express server → HTTP API: mounts routes (evidence: `server/index.js`)
- HTTP API → Vitals cache: reads and writes (evidence: `server/routes/api.js`)
- HTTP API → Background job queue: enqueues jobs (evidence: `server/routes/api.js`)
