# favournene/simple-bmi-calculator architecture

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

- Interactive diagram: https://gitdiagram.com/favournene/simple-bmi-calculator
- Repository: https://github.com/favournene/simple-bmi-calculator

## Overview

A small browser-based BMI calculator: the user enters weight and height, submits them, and sees a BMI value with a weight-category message. The supplied JavaScript shows the calculation and DOM updates; the HTML and styling are present in the tree but were not sampled.

Main entry points: [`index.html`](https://github.com/favournene/simple-bmi-calculator/blob/main/index.html) (Calculator page), [`script.js`](https://github.com/favournene/simple-bmi-calculator/blob/main/script.js) (BMI logic)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_user(("User"))
node_page["Calculator page<br/>[index.html]"]
node_logic["BMI logic<br/>[script.js]"]

node_user -->|"enters measurements"| node_page
node_page -->|"submits form"| node_logic
node_logic -->|"reads inputs"| node_page
node_logic -->|"displays BMI and category"| node_page

click node_page "https://github.com/favournene/simple-bmi-calculator/blob/main/index.html"
click node_logic "https://github.com/favournene/simple-bmi-calculator/blob/main/script.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_user toneBlue
class node_page,node_logic toneTeal
```

## Components

### Other components

- **User**
- [Calculator page](https://github.com/favournene/simple-bmi-calculator/blob/main/index.html): `index.html`
- [BMI logic](https://github.com/favournene/simple-bmi-calculator/blob/main/script.js): `script.js`

## Connections

- User → Calculator page: enters measurements
- Calculator page → BMI logic: submits form
- BMI logic → Calculator page: reads inputs
- BMI logic → Calculator page: displays BMI and category
