# alif40550/beatwell architecture

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

- Interactive diagram: https://gitdiagram.com/alif40550/beatwell
- Repository: https://github.com/alif40550/beatwell

## Overview

BeatWell is an Android health app intended to help prevent coronary heart disease. Its documented user-facing capabilities include CHD risk prediction and monitoring, daily food and activity recommendations, and health news. The repository also includes an Express API and TensorFlow/Python models, but the README does not describe how these components communicate or which implements each capability; those links are therefore omitted.

Main entry points: [`BeatWell-apps`](https://github.com/alif40550/beatwell/tree/master/BeatWell-apps) (BeatWell app)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_mobile["Android app"]
  node_app["BeatWell app"]
  node_prediction["CHD risk prediction"]
  node_monitoring["Health monitoring"]
  node_food["Food recommendations"]
  node_activity["Activity recommendations"]
  node_news["Health news"]
end

subgraph group_backend["Backend API"]
  node_api["Express API"]
end

subgraph group_ml["ML models"]
  node_models["Prediction and chatbot models"]
end

node_user(("Android user"))

node_user -->|"uses"| node_app
node_app -->|"offers"| node_prediction
node_app -->|"offers"| node_monitoring
node_app -->|"offers"| node_food
node_app -->|"offers"| node_activity
node_app -->|"offers"| node_news

click node_app "https://github.com/alif40550/beatwell/tree/master/BeatWell-apps"
click node_prediction "https://github.com/alif40550/beatwell/tree/master/BeatWell-apps"
click node_monitoring "https://github.com/alif40550/beatwell/tree/master/BeatWell-apps"
click node_food "https://github.com/alif40550/beatwell/tree/master/BeatWell-apps"
click node_activity "https://github.com/alif40550/beatwell/tree/master/BeatWell-apps"
click node_news "https://github.com/alif40550/beatwell/tree/master/BeatWell-apps"
click node_api "https://github.com/alif40550/beatwell/tree/master/BeatWell-API"
click node_models "https://github.com/alif40550/beatwell/tree/master/BeatWell-models"

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_app,node_prediction,node_monitoring,node_food,node_activity,node_news,node_user toneBlue
class node_api toneAmber
class node_models toneMint
```

## Components

### Android app

- [BeatWell app](https://github.com/alif40550/beatwell/tree/master/BeatWell-apps): `BeatWell-apps`
- [CHD risk prediction](https://github.com/alif40550/beatwell/tree/master/BeatWell-apps): `BeatWell-apps`
- [Health monitoring](https://github.com/alif40550/beatwell/tree/master/BeatWell-apps): `BeatWell-apps`
- [Food recommendations](https://github.com/alif40550/beatwell/tree/master/BeatWell-apps): `BeatWell-apps`
- [Activity recommendations](https://github.com/alif40550/beatwell/tree/master/BeatWell-apps): `BeatWell-apps`
- [Health news](https://github.com/alif40550/beatwell/tree/master/BeatWell-apps): `BeatWell-apps`

### Backend API

- [Express API](https://github.com/alif40550/beatwell/tree/master/BeatWell-API): `BeatWell-API`

### ML models

- [Prediction and chatbot models](https://github.com/alif40550/beatwell/tree/master/BeatWell-models): `BeatWell-models`

### Other components

- **Android user**

## Connections

- Android user → BeatWell app: uses (evidence: `README.md`)
- BeatWell app → CHD risk prediction: offers (evidence: `README.md`)
- BeatWell app → Health monitoring: offers (evidence: `README.md`)
- BeatWell app → Food recommendations: offers (evidence: `README.md`)
- BeatWell app → Activity recommendations: offers (evidence: `README.md`)
- BeatWell app → Health news: offers (evidence: `README.md`)
