# stratopedia/bmi-health-compass architecture

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

- Interactive diagram: https://gitdiagram.com/stratopedia/bmi-health-compass
- Repository: https://github.com/stratopedia/bmi-health-compass

## Overview

BMI Health Compass is a small React app for entering age, gender, height, and weight, validating those inputs, and calculating BMI and its category. The result includes a health score and a compass gauge. The calculation and result presentation live together in App.tsx; the gauge is a separate visualization component. Source excerpts show the React entry point rendering App and App passing BMI to the gauge. No storage or external services are shown.

Main entry points: [`src/App.tsx`](https://github.com/stratopedia/bmi-health-compass/blob/master/src/App.tsx) (BMI Calculator), [`src/main.tsx`](https://github.com/stratopedia/bmi-health-compass/blob/master/src/main.tsx) (React Entry), [`src/components/HealthCompassGauge.tsx`](https://github.com/stratopedia/bmi-health-compass/blob/master/src/components/HealthCompassGauge.tsx) (Compass Gauge)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["BMI App"]
  node_entry["React Entry<br/>[main.tsx]"]
  node_calculator["BMI Calculator<br/>[App.tsx]"]
end

subgraph group_visualization["BMI Visualization"]
  node_gauge["Compass Gauge"]
end

node_user(("User"))

node_user -->|"enters inputs"| node_calculator
node_entry -->|"renders"| node_calculator
node_calculator -->|"renders BMI"| node_gauge

click node_entry "https://github.com/stratopedia/bmi-health-compass/blob/master/src/main.tsx"
click node_calculator "https://github.com/stratopedia/bmi-health-compass/blob/master/src/App.tsx"
click node_gauge "https://github.com/stratopedia/bmi-health-compass/blob/master/src/components/HealthCompassGauge.tsx"

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_entry,node_calculator,node_user toneBlue
class node_gauge toneAmber
```

## Components

### BMI App

- [React Entry](https://github.com/stratopedia/bmi-health-compass/blob/master/src/main.tsx): `src/main.tsx`
- [BMI Calculator](https://github.com/stratopedia/bmi-health-compass/blob/master/src/App.tsx): `src/App.tsx`

### BMI Visualization

- [Compass Gauge](https://github.com/stratopedia/bmi-health-compass/blob/master/src/components/HealthCompassGauge.tsx): `src/components/HealthCompassGauge.tsx`

### Other components

- **User**

## Connections

- User → BMI Calculator: enters inputs (evidence: `src/App.tsx`)
- React Entry → BMI Calculator: renders (evidence: `src/main.tsx`)
- BMI Calculator → Compass Gauge: renders BMI (evidence: `src/App.tsx`)
