# vx2-sagar-codes/fitscale-repo architecture

> Architecture diagram of the GitHub repository vx2-sagar-codes/fitscale-repo, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-09-26). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/vx2-sagar-codes/fitscale-repo
- Repository: https://github.com/vx2-sagar-codes/fitscale-repo

## Overview

Fitscale is a small Streamlit health-calculator app. The user enters measurements or selects options in a tabbed interface; the app calculates BMI, BMR, target heart-rate ranges, TDEE, or goal-based macros and displays the result. All five workflows are implemented together in `Fitscale/healthcalc.py`, so the graph reflects functional stages, not separate runtime modules. The README documents these capabilities; the sampled source confirms their implementation. No separate storage or external service is shown.

Main entry points: [`Fitscale/healthcalc.py`](https://github.com/vx2-sagar-codes/fitscale-repo/blob/main/Fitscale/healthcalc.py) (Tabbed interface)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_health_calculators["Health calculators"]
  node_streamlit_app["Tabbed interface<br/>[healthcalc.py]"]
  node_bmi["BMI<br/>[healthcalc.py]"]
  node_bmr["BMR<br/>[healthcalc.py]"]
  node_heart_rate["Heart rate<br/>[healthcalc.py]"]
  node_tdee["TDEE<br/>[healthcalc.py]"]
  node_macros["Macros<br/>[healthcalc.py]"]
  node_results["Displayed results<br/>[healthcalc.py]"]
end

node_user(("User"))

node_user -->|"enters inputs"| node_streamlit_app
node_streamlit_app -->|"calculates BMI"| node_bmi
node_streamlit_app -->|"calculates BMR"| node_bmr
node_streamlit_app -->|"calculates ranges"| node_heart_rate
node_streamlit_app -->|"calculates TDEE"| node_tdee
node_streamlit_app -->|"calculates macros"| node_macros
node_bmi -->|"displays BMI"| node_results
node_bmr -->|"displays BMR"| node_results
node_heart_rate -->|"displays ranges"| node_results
node_tdee -->|"displays TDEE"| node_results
node_macros -->|"displays macros"| node_results

click node_streamlit_app "https://github.com/vx2-sagar-codes/fitscale-repo/blob/main/Fitscale/healthcalc.py"
click node_bmi "https://github.com/vx2-sagar-codes/fitscale-repo/blob/main/Fitscale/healthcalc.py"
click node_bmr "https://github.com/vx2-sagar-codes/fitscale-repo/blob/main/Fitscale/healthcalc.py"
click node_heart_rate "https://github.com/vx2-sagar-codes/fitscale-repo/blob/main/Fitscale/healthcalc.py"
click node_tdee "https://github.com/vx2-sagar-codes/fitscale-repo/blob/main/Fitscale/healthcalc.py"
click node_macros "https://github.com/vx2-sagar-codes/fitscale-repo/blob/main/Fitscale/healthcalc.py"
click node_results "https://github.com/vx2-sagar-codes/fitscale-repo/blob/main/Fitscale/healthcalc.py"

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_streamlit_app,node_bmi,node_bmr,node_heart_rate,node_tdee,node_macros,node_results,node_user toneBlue
```

## Components

### Health calculators

- [Tabbed interface](https://github.com/vx2-sagar-codes/fitscale-repo/blob/main/Fitscale/healthcalc.py): `Fitscale/healthcalc.py`
- [BMI](https://github.com/vx2-sagar-codes/fitscale-repo/blob/main/Fitscale/healthcalc.py): `Fitscale/healthcalc.py`
- [BMR](https://github.com/vx2-sagar-codes/fitscale-repo/blob/main/Fitscale/healthcalc.py): `Fitscale/healthcalc.py`
- [Heart rate](https://github.com/vx2-sagar-codes/fitscale-repo/blob/main/Fitscale/healthcalc.py): `Fitscale/healthcalc.py`
- [TDEE](https://github.com/vx2-sagar-codes/fitscale-repo/blob/main/Fitscale/healthcalc.py): `Fitscale/healthcalc.py`
- [Macros](https://github.com/vx2-sagar-codes/fitscale-repo/blob/main/Fitscale/healthcalc.py): `Fitscale/healthcalc.py`
- [Displayed results](https://github.com/vx2-sagar-codes/fitscale-repo/blob/main/Fitscale/healthcalc.py): `Fitscale/healthcalc.py`

### Other components

- **User**

## Connections

- User → Tabbed interface: enters inputs
- Tabbed interface → BMI: calculates BMI
- Tabbed interface → BMR: calculates BMR
- Tabbed interface → Heart rate: calculates ranges
- Tabbed interface → TDEE: calculates TDEE
- Tabbed interface → Macros: calculates macros
- BMI → Displayed results: displays BMI
- BMR → Displayed results: displays BMR
- Heart rate → Displayed results: displays ranges
- TDEE → Displayed results: displays TDEE
- Macros → Displayed results: displays macros
