# ionanderbo/cardiopatch-project architecture

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

- Interactive diagram: https://gitdiagram.com/ionanderbo/cardiopatch-project
- Repository: https://github.com/ionanderbo/cardiopatch-project

## Overview

CardioPatch’s repository is a static showcase and interactive browser prototype, not an implementation of the described wearable or cloud backend. A visitor navigates the overview and supporting clinical, comparison, and Health 4.0 pages, then can open the demo monitor to select a sample patient and view simulated ECG and vital trends. The graph also preserves the README’s major product capabilities as documented context; those sensing, AI, telemetry, and escalation stages are not implemented in the sampled runtime. Edges reflect explicit source behavior or README descriptions.

Main entry points: [`shared.js`](https://github.com/ionanderbo/cardiopatch-project/blob/main/shared.js) (Navigation Chrome), [`health40.html`](https://github.com/ionanderbo/cardiopatch-project/blob/main/health40.html) (Health 4.0), [`README.md`](https://github.com/ionanderbo/cardiopatch-project/blob/main/README.md) (Edge AI Filtering), [`index.html`](https://github.com/ionanderbo/cardiopatch-project/blob/main/index.html) (Overview)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_site["Showcase Site"]
  node_overview["Overview<br/>[index.html]"]
  node_clinical["Clinical Needs"]
  node_comparison["Why Us<br/>[why-us.html]"]
  node_health40["Health 4.0<br/>[health40.html]"]
end

subgraph group_shared["Shared Frontend"]
  node_navdata[("Site Data<br/>[data.js]")]
  node_chrome["Navigation Chrome<br/>[shared.js]"]
end

subgraph group_demo["Interactive Demo"]
  node_prototypepage["Prototype Page<br/>[prototype.html]"]
  node_patientdemo["Patient Demo<br/>[prototype.js]"]
  node_signalwidget["ECG Widget<br/>[widgets.js]"]
end

subgraph group_product["Documented Product"]
  node_sensing["Chest Sensing<br/>[README.md]"]
  node_edgeai["Edge AI Filtering<br/>[README.md]"]
  node_telemetry["IoT Telemetry<br/>[README.md]"]
  node_clinicalportal["Clinical Portal<br/>[README.md]"]
  node_escalation["Alert Escalation<br/>[README.md]"]
end

node_visitor(("Visitor"))
node_careteam(("Care Team"))

node_visitor -->|"opens"| node_overview
node_visitor -->|"opens"| node_clinical
node_visitor -->|"opens"| node_comparison
node_visitor -->|"opens"| node_health40
node_visitor -->|"opens"| node_prototypepage
node_chrome -->|"reads navigation"| node_navdata
node_overview -.->|"renders shared navigation"| node_chrome
node_clinical -.->|"renders shared navigation"| node_chrome
node_comparison -.->|"renders shared navigation"| node_chrome
node_health40 -.->|"renders shared navigation"| node_chrome
node_prototypepage -->|"hosts demo"| node_patientdemo
node_health40 -->|"hosts preview"| node_signalwidget
node_sensing -->|"provides signals"| node_edgeai
node_edgeai -->|"flags events"| node_telemetry
node_telemetry -->|"synchronizes data"| node_clinicalportal
node_clinicalportal -->|"presents alerts"| node_careteam
node_edgeai -->|"triggers ladder"| node_escalation
node_escalation -->|"notifies caregivers"| node_careteam

click node_overview "https://github.com/ionanderbo/cardiopatch-project/blob/main/index.html"
click node_clinical "https://github.com/ionanderbo/cardiopatch-project/blob/main/clinical-needs.html"
click node_comparison "https://github.com/ionanderbo/cardiopatch-project/blob/main/why-us.html"
click node_health40 "https://github.com/ionanderbo/cardiopatch-project/blob/main/health40.html"
click node_navdata "https://github.com/ionanderbo/cardiopatch-project/blob/main/data.js"
click node_chrome "https://github.com/ionanderbo/cardiopatch-project/blob/main/shared.js"
click node_prototypepage "https://github.com/ionanderbo/cardiopatch-project/blob/main/prototype.html"
click node_patientdemo "https://github.com/ionanderbo/cardiopatch-project/blob/main/prototype.js"
click node_signalwidget "https://github.com/ionanderbo/cardiopatch-project/blob/main/widgets.js"
click node_sensing "https://github.com/ionanderbo/cardiopatch-project/blob/main/README.md"
click node_edgeai "https://github.com/ionanderbo/cardiopatch-project/blob/main/README.md"
click node_telemetry "https://github.com/ionanderbo/cardiopatch-project/blob/main/README.md"
click node_clinicalportal "https://github.com/ionanderbo/cardiopatch-project/blob/main/README.md"
click node_escalation "https://github.com/ionanderbo/cardiopatch-project/blob/main/README.md"

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_overview,node_clinical,node_comparison,node_health40 toneBlue
class node_navdata,node_chrome toneAmber
class node_prototypepage,node_patientdemo,node_signalwidget toneMint
class node_sensing,node_edgeai,node_telemetry,node_clinicalportal,node_escalation toneRose
class node_visitor,node_careteam toneIndigo
```

## Components

### Showcase Site

- [Overview](https://github.com/ionanderbo/cardiopatch-project/blob/main/index.html): `index.html`
- [Clinical Needs](https://github.com/ionanderbo/cardiopatch-project/blob/main/clinical-needs.html): `clinical-needs.html`
- [Why Us](https://github.com/ionanderbo/cardiopatch-project/blob/main/why-us.html): `why-us.html`
- [Health 4.0](https://github.com/ionanderbo/cardiopatch-project/blob/main/health40.html): `health40.html`

### Shared Frontend

- [Site Data](https://github.com/ionanderbo/cardiopatch-project/blob/main/data.js): `data.js`
- [Navigation Chrome](https://github.com/ionanderbo/cardiopatch-project/blob/main/shared.js): `shared.js`

### Interactive Demo

- [Prototype Page](https://github.com/ionanderbo/cardiopatch-project/blob/main/prototype.html): `prototype.html`
- [Patient Demo](https://github.com/ionanderbo/cardiopatch-project/blob/main/prototype.js): `prototype.js`
- [ECG Widget](https://github.com/ionanderbo/cardiopatch-project/blob/main/widgets.js): `widgets.js`

### Documented Product

- [Chest Sensing](https://github.com/ionanderbo/cardiopatch-project/blob/main/README.md): `README.md`
- [Edge AI Filtering](https://github.com/ionanderbo/cardiopatch-project/blob/main/README.md): `README.md`
- [IoT Telemetry](https://github.com/ionanderbo/cardiopatch-project/blob/main/README.md): `README.md`
- [Clinical Portal](https://github.com/ionanderbo/cardiopatch-project/blob/main/README.md): `README.md`
- [Alert Escalation](https://github.com/ionanderbo/cardiopatch-project/blob/main/README.md): `README.md`

### Other components

- **Visitor**
- **Care Team**

## Connections

- Visitor → Overview: opens (evidence: `README.md`)
- Visitor → Clinical Needs: opens (evidence: `README.md`)
- Visitor → Why Us: opens (evidence: `README.md`)
- Visitor → Health 4.0: opens (evidence: `README.md`)
- Visitor → Prototype Page: opens (evidence: `README.md`)
- Navigation Chrome → Site Data: reads navigation (evidence: `shared.js`)
- Overview → Navigation Chrome: renders shared navigation
- Clinical Needs → Navigation Chrome: renders shared navigation
- Why Us → Navigation Chrome: renders shared navigation
- Health 4.0 → Navigation Chrome: renders shared navigation
- Prototype Page → Patient Demo: hosts demo (evidence: `README.md`)
- Health 4.0 → ECG Widget: hosts preview (evidence: `README.md`)
- Chest Sensing → Edge AI Filtering: provides signals (evidence: `README.md`)
- Edge AI Filtering → IoT Telemetry: flags events (evidence: `README.md`)
- IoT Telemetry → Clinical Portal: synchronizes data (evidence: `README.md`)
- Clinical Portal → Care Team: presents alerts (evidence: `README.md`)
- Edge AI Filtering → Alert Escalation: triggers ladder (evidence: `README.md`)
- Alert Escalation → Care Team: notifies caregivers (evidence: `README.md`)
