# nayakbnk/workforce-productivity-wellbeing architecture

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

- Interactive diagram: https://gitdiagram.com/nayakbnk/workforce-productivity-wellbeing
- Repository: https://github.com/nayakbnk/workforce-productivity-wellbeing

## Overview

MindEase is a browser-based workforce wellbeing platform. Its visible workflow loads employee data from CSV, derives stress scores and levels, then presents staff analytics and shift recommendations; users can also send notifications and optimization requests to an API. The repository includes named analytics, statistics, optimizer, and footprint pages, plus image-processing utilities, but no backend implementation. Connections among those pages and the image utilities are not established by the available excerpts, so they are shown without inferred call flows.

Main entry points: [`script.js`](https://github.com/nayakbnk/workforce-productivity-wellbeing/blob/main/script.js) (CSV intake), [`index.html`](https://github.com/nayakbnk/workforce-productivity-wellbeing/blob/main/index.html) (Workforce dashboard), [`optimizer.html`](https://github.com/nayakbnk/workforce-productivity-wellbeing/blob/main/optimizer.html) (Shift optimizer), [`analytics.html`](https://github.com/nayakbnk/workforce-productivity-wellbeing/blob/main/analytics.html) (Analytics view)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_workforce["Workforce analysis"]
  node_csv["CSV intake<br/>[script.js]"]
  node_employee["Employee processing<br/>[script.js]"]
  node_stress["Stress scoring<br/>[script.js]"]
  node_notifications["Notifications<br/>[script.js]"]
end

subgraph group_insights["Reports and planning"]
  node_dashboard["Workforce dashboard<br/>[index.html]"]
  node_analytics["Analytics view<br/>[analytics.html]"]
  node_statistics["Statistics view<br/>[statistics.html]"]
  node_optimizer["Shift optimizer<br/>[optimizer.html]"]
  node_footprint["Footprint view<br/>[footprint.html]"]
  node_charts["Charts and trends<br/>[script.js]"]
  node_recommendations["Shift recommendations<br/>[script.js]"]
end

subgraph group_integrations["API and image utilities"]
  node_api{{"Workforce API"}}
  node_image_utils["Image utilities<br/>[utils.py]"]
end

node_user(("Workforce user"))

node_user -->|"uploads data"| node_csv
node_csv -->|"parses rows"| node_employee
node_employee -->|"calculates scores"| node_stress
node_user -.->|"views recommendations"| node_optimizer
node_optimizer -->|"renders swaps"| node_recommendations
node_recommendations -->|"sends swaps"| node_api
node_notifications -->|"sends notification"| node_api
node_user -.->|"uses platform"| node_dashboard
node_dashboard -.->|"renders charts"| node_charts
node_user -.->|"views analytics"| node_analytics
node_user -.->|"views statistics"| node_statistics
node_user -.->|"views footprint"| node_footprint

click node_csv "https://github.com/nayakbnk/workforce-productivity-wellbeing/blob/main/script.js"
click node_employee "https://github.com/nayakbnk/workforce-productivity-wellbeing/blob/main/script.js"
click node_stress "https://github.com/nayakbnk/workforce-productivity-wellbeing/blob/main/script.js"
click node_dashboard "https://github.com/nayakbnk/workforce-productivity-wellbeing/blob/main/index.html"
click node_analytics "https://github.com/nayakbnk/workforce-productivity-wellbeing/blob/main/analytics.html"
click node_statistics "https://github.com/nayakbnk/workforce-productivity-wellbeing/blob/main/statistics.html"
click node_optimizer "https://github.com/nayakbnk/workforce-productivity-wellbeing/blob/main/optimizer.html"
click node_footprint "https://github.com/nayakbnk/workforce-productivity-wellbeing/blob/main/footprint.html"
click node_charts "https://github.com/nayakbnk/workforce-productivity-wellbeing/blob/main/script.js"
click node_recommendations "https://github.com/nayakbnk/workforce-productivity-wellbeing/blob/main/script.js"
click node_notifications "https://github.com/nayakbnk/workforce-productivity-wellbeing/blob/main/script.js"
click node_image_utils "https://github.com/nayakbnk/workforce-productivity-wellbeing/blob/main/utils.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_csv,node_employee,node_stress,node_notifications,node_user toneBlue
class node_dashboard,node_analytics,node_statistics,node_optimizer,node_footprint,node_charts,node_recommendations toneAmber
class node_api,node_image_utils toneMint
```

## Components

### Workforce analysis

- [CSV intake](https://github.com/nayakbnk/workforce-productivity-wellbeing/blob/main/script.js): `script.js`
- [Employee processing](https://github.com/nayakbnk/workforce-productivity-wellbeing/blob/main/script.js): `script.js`
- [Stress scoring](https://github.com/nayakbnk/workforce-productivity-wellbeing/blob/main/script.js): `script.js`
- [Notifications](https://github.com/nayakbnk/workforce-productivity-wellbeing/blob/main/script.js): `script.js`

### Reports and planning

- [Workforce dashboard](https://github.com/nayakbnk/workforce-productivity-wellbeing/blob/main/index.html): `index.html`
- [Analytics view](https://github.com/nayakbnk/workforce-productivity-wellbeing/blob/main/analytics.html): `analytics.html`
- [Statistics view](https://github.com/nayakbnk/workforce-productivity-wellbeing/blob/main/statistics.html): `statistics.html`
- [Shift optimizer](https://github.com/nayakbnk/workforce-productivity-wellbeing/blob/main/optimizer.html): `optimizer.html`
- [Footprint view](https://github.com/nayakbnk/workforce-productivity-wellbeing/blob/main/footprint.html): `footprint.html`
- [Charts and trends](https://github.com/nayakbnk/workforce-productivity-wellbeing/blob/main/script.js): `script.js`
- [Shift recommendations](https://github.com/nayakbnk/workforce-productivity-wellbeing/blob/main/script.js): `script.js`

### API and image utilities

- **Workforce API**
- [Image utilities](https://github.com/nayakbnk/workforce-productivity-wellbeing/blob/main/utils.py): `utils.py`

### Other components

- **Workforce user**

## Connections

- Workforce user → CSV intake: uploads data (evidence: `script.js`)
- CSV intake → Employee processing: parses rows (evidence: `script.js`)
- Employee processing → Stress scoring: calculates scores (evidence: `script.js`)
- Workforce user → Shift optimizer: views recommendations
- Shift optimizer → Shift recommendations: renders swaps (evidence: `script.js`)
- Shift recommendations → Workforce API: sends swaps (evidence: `script.js`)
- Notifications → Workforce API: sends notification (evidence: `script.js`)
- Workforce user → Workforce dashboard: uses platform
- Workforce dashboard → Charts and trends: renders charts
- Workforce user → Analytics view: views analytics
- Workforce user → Statistics view: views statistics
- Workforce user → Footprint view: views footprint
