# gowtham101008/fitcare architecture

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

- Interactive diagram: https://gitdiagram.com/gowtham101008/fitcare
- Repository: https://github.com/gowtham101008/fitcare

## Overview

FitCare is a browser-only fitness and wellness prototype. The principal workflow is entering daily lifestyle metrics, calculating a rule-based score, awarding demo points, and updating the dashboard; users can also simulate redeeming sample rewards. The JavaScript excerpt shows these behaviors in one file, so several domain components share that path. The README documents the page, styling, sample chart, and browser storage; HTML and CSS were not excerpted, so their internal wiring is not shown.

Main entry points: [`script.js`](https://github.com/gowtham101008/fitcare/blob/main/script.js) (Input submission), [`index.html`](https://github.com/gowtham101008/fitcare/blob/main/index.html) (Daily tracker form)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["User experience"]
  node_page["FitCare page<br/>[index.html]"]
  node_responsive["Responsive layout<br/>[style.css]"]
end

subgraph group_wellness["Wellness tracking"]
  node_tracker["Daily tracker form<br/>[index.html]"]
  node_submission["Input submission<br/>[script.js]"]
  node_score["Wellness scoring<br/>[script.js]"]
  node_suggestions["Lifestyle suggestions<br/>[script.js]"]
  node_dashboard["Progress dashboard<br/>[script.js]"]
  node_weekly["Sample weekly chart<br/>[index.html]"]
  node_state["Demo state<br/>[script.js]"]
  node_storage[("Browser storage<br/>[script.js]")]
end

subgraph group_rewards["Points and rewards"]
  node_points["FitPoints awards<br/>[script.js]"]
  node_rewardcards["Healthcare reward cards<br/>[index.html]"]
  node_redemption["Simulated redemption<br/>[script.js]"]
end

node_user(("User"))

node_user -->|"enters metrics"| node_tracker
node_tracker -->|"submits"| node_submission
node_submission -->|"calculates"| node_score
node_submission -->|"updates"| node_state
node_submission -->|"awards"| node_points
node_submission -->|"saves"| node_storage
node_submission -->|"refreshes"| node_dashboard
node_dashboard -->|"displays"| node_score
node_dashboard -->|"renders"| node_suggestions
node_dashboard -->|"reads"| node_state
node_dashboard -->|"updates today bar"| node_weekly
node_user -->|"views"| node_rewardcards
node_rewardcards -->|"selects reward"| node_redemption
node_redemption -->|"deducts"| node_points
node_redemption -->|"saves"| node_storage
node_redemption -->|"refreshes"| node_dashboard
node_storage -->|"loads and saves"| node_state

click node_page "https://github.com/gowtham101008/fitcare/blob/main/index.html"
click node_responsive "https://github.com/gowtham101008/fitcare/blob/main/style.css"
click node_tracker "https://github.com/gowtham101008/fitcare/blob/main/index.html"
click node_submission "https://github.com/gowtham101008/fitcare/blob/main/script.js"
click node_score "https://github.com/gowtham101008/fitcare/blob/main/script.js"
click node_suggestions "https://github.com/gowtham101008/fitcare/blob/main/script.js"
click node_dashboard "https://github.com/gowtham101008/fitcare/blob/main/script.js"
click node_weekly "https://github.com/gowtham101008/fitcare/blob/main/index.html"
click node_state "https://github.com/gowtham101008/fitcare/blob/main/script.js"
click node_storage "https://github.com/gowtham101008/fitcare/blob/main/script.js"
click node_points "https://github.com/gowtham101008/fitcare/blob/main/script.js"
click node_rewardcards "https://github.com/gowtham101008/fitcare/blob/main/index.html"
click node_redemption "https://github.com/gowtham101008/fitcare/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_page,node_responsive,node_user toneBlue
class node_tracker,node_submission,node_score,node_suggestions,node_dashboard,node_weekly,node_state,node_storage toneAmber
class node_points,node_rewardcards,node_redemption toneMint
```

## Components

### User experience

- [FitCare page](https://github.com/gowtham101008/fitcare/blob/main/index.html): `index.html`
- [Responsive layout](https://github.com/gowtham101008/fitcare/blob/main/style.css): `style.css`

### Wellness tracking

- [Daily tracker form](https://github.com/gowtham101008/fitcare/blob/main/index.html): `index.html`
- [Input submission](https://github.com/gowtham101008/fitcare/blob/main/script.js): `script.js`
- [Wellness scoring](https://github.com/gowtham101008/fitcare/blob/main/script.js): `script.js`
- [Lifestyle suggestions](https://github.com/gowtham101008/fitcare/blob/main/script.js): `script.js`
- [Progress dashboard](https://github.com/gowtham101008/fitcare/blob/main/script.js): `script.js`
- [Sample weekly chart](https://github.com/gowtham101008/fitcare/blob/main/index.html): `index.html`
- [Demo state](https://github.com/gowtham101008/fitcare/blob/main/script.js): `script.js`
- [Browser storage](https://github.com/gowtham101008/fitcare/blob/main/script.js): `script.js`

### Points and rewards

- [FitPoints awards](https://github.com/gowtham101008/fitcare/blob/main/script.js): `script.js`
- [Healthcare reward cards](https://github.com/gowtham101008/fitcare/blob/main/index.html): `index.html`
- [Simulated redemption](https://github.com/gowtham101008/fitcare/blob/main/script.js): `script.js`

### Other components

- **User**

## Connections

- User → Daily tracker form: enters metrics (evidence: `README.md`)
- Daily tracker form → Input submission: submits (evidence: `script.js`)
- Input submission → Wellness scoring: calculates (evidence: `script.js`)
- Input submission → Demo state: updates (evidence: `script.js`)
- Input submission → FitPoints awards: awards (evidence: `script.js`)
- Input submission → Browser storage: saves (evidence: `script.js`)
- Input submission → Progress dashboard: refreshes (evidence: `script.js`)
- Progress dashboard → Wellness scoring: displays (evidence: `script.js`)
- Progress dashboard → Lifestyle suggestions: renders (evidence: `script.js`)
- Progress dashboard → Demo state: reads (evidence: `script.js`)
- Progress dashboard → Sample weekly chart: updates today bar (evidence: `script.js`)
- User → Healthcare reward cards: views (evidence: `README.md`)
- Healthcare reward cards → Simulated redemption: selects reward (evidence: `script.js`)
- Simulated redemption → FitPoints awards: deducts (evidence: `script.js`)
- Simulated redemption → Browser storage: saves (evidence: `script.js`)
- Simulated redemption → Progress dashboard: refreshes (evidence: `script.js`)
- Browser storage → Demo state: loads and saves (evidence: `script.js`)
