# adityarai300adi/jayshree-analytics-hub architecture

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

- Interactive diagram: https://gitdiagram.com/adityarai300adi/jayshree-analytics-hub
- Repository: https://github.com/adityarai300adi/jayshree-analytics-hub

## Overview

Jayshree Analytics Hub is a LAN-hosted Excel analytics web app. A user signs in, selects a workbook, and the browser builds a dashboard without retaining the workbook; the server handles accounts and records analyzed filenames. The README also documents protected-workbook unlocking, registration and profile flows, and admin user/activity tools. The frontend implementation and most backend routes were not sampled, so several documented capabilities are represented at subsystem level, with only explicit relationships shown.

Main entry points: [`static/index.html`](https://github.com/adityarai300adi/jayshree-analytics-hub/blob/main/static/index.html) (Dashboard UI), [`app.py`](https://github.com/adityarai300adi/jayshree-analytics-hub/blob/main/app.py) (Activity log)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web experience"]
  node_browser["Dashboard UI<br/>[index.html]"]
end

subgraph group_accounts["Identity and access"]
  node_auth["Authentication<br/>[app.py]"]
  node_registration["Registration and recovery<br/>[app.py]"]
  node_profile["Profile management<br/>[app.py]"]
  node_admin["Admin tools<br/>[app.py]"]
end

subgraph group_analytics["Workbook analytics"]
  node_unlock["Workbook unlocking<br/>[app.py]"]
  node_dashboard["Dashboard generation<br/>[index.html]"]
end

subgraph group_operations["Server and records"]
  node_activity["Activity log<br/>[app.py]"]
  node_database[("SQLite data<br/>[app.py]")]
  node_server["Flask server<br/>[app.py]"]
end

node_user(("User"))
node_firebase["Google Firebase"]
node_workbook["Selected workbook"]

node_user -->|"uses"| node_browser
node_browser -->|"calls APIs"| node_server
node_browser -->|"authenticates"| node_auth
node_auth -->|"reads and writes"| node_database
node_browser -.->|"verifies identity"| node_firebase
node_server -->|"validates token"| node_firebase
node_browser -->|"registers and recovers"| node_registration
node_browser -->|"updates profile"| node_profile
node_browser -->|"manages users"| node_admin
node_user -->|"selects"| node_workbook
node_browser -->|"reads locally"| node_workbook
node_browser -->|"builds dashboard"| node_dashboard
node_browser -->|"requests unlock"| node_unlock
node_unlock -.->|"unlocks workbook"| node_server
node_browser -->|"records analysis"| node_activity
node_activity -.->|"stores log"| node_database
node_admin -->|"views log"| node_activity

click node_browser "https://github.com/adityarai300adi/jayshree-analytics-hub/blob/main/static/index.html"
click node_auth "https://github.com/adityarai300adi/jayshree-analytics-hub/blob/main/app.py"
click node_registration "https://github.com/adityarai300adi/jayshree-analytics-hub/blob/main/app.py"
click node_profile "https://github.com/adityarai300adi/jayshree-analytics-hub/blob/main/app.py"
click node_admin "https://github.com/adityarai300adi/jayshree-analytics-hub/blob/main/app.py"
click node_unlock "https://github.com/adityarai300adi/jayshree-analytics-hub/blob/main/app.py"
click node_dashboard "https://github.com/adityarai300adi/jayshree-analytics-hub/blob/main/static/index.html"
click node_activity "https://github.com/adityarai300adi/jayshree-analytics-hub/blob/main/app.py"
click node_database "https://github.com/adityarai300adi/jayshree-analytics-hub/blob/main/app.py"
click node_server "https://github.com/adityarai300adi/jayshree-analytics-hub/blob/main/app.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_browser,node_user toneBlue
class node_auth,node_registration,node_profile,node_admin toneAmber
class node_unlock,node_dashboard toneMint
class node_activity,node_database,node_server toneRose
class node_firebase,node_workbook toneIndigo
```

## Components

### Web experience

- [Dashboard UI](https://github.com/adityarai300adi/jayshree-analytics-hub/blob/main/static/index.html): `static/index.html`

### Identity and access

- [Authentication](https://github.com/adityarai300adi/jayshree-analytics-hub/blob/main/app.py): `app.py`
- [Registration and recovery](https://github.com/adityarai300adi/jayshree-analytics-hub/blob/main/app.py): `app.py`
- [Profile management](https://github.com/adityarai300adi/jayshree-analytics-hub/blob/main/app.py): `app.py`
- [Admin tools](https://github.com/adityarai300adi/jayshree-analytics-hub/blob/main/app.py): `app.py`

### Workbook analytics

- [Workbook unlocking](https://github.com/adityarai300adi/jayshree-analytics-hub/blob/main/app.py): `app.py`
- [Dashboard generation](https://github.com/adityarai300adi/jayshree-analytics-hub/blob/main/static/index.html): `static/index.html`

### Server and records

- [Activity log](https://github.com/adityarai300adi/jayshree-analytics-hub/blob/main/app.py): `app.py`
- [SQLite data](https://github.com/adityarai300adi/jayshree-analytics-hub/blob/main/app.py): `app.py`
- [Flask server](https://github.com/adityarai300adi/jayshree-analytics-hub/blob/main/app.py): `app.py`

### Other components

- **User**
- **Google Firebase**
- **Selected workbook**

## Connections

- User → Dashboard UI: uses (evidence: `README.md`)
- Dashboard UI → Flask server: calls APIs (evidence: `README.md`)
- Dashboard UI → Authentication: authenticates (evidence: `README.md`)
- Authentication → SQLite data: reads and writes (evidence: `app.py`)
- Dashboard UI → Google Firebase: verifies identity (evidence: `README.md`)
- Flask server → Google Firebase: validates token (evidence: `app.py`)
- Dashboard UI → Registration and recovery: registers and recovers (evidence: `README.md`)
- Dashboard UI → Profile management: updates profile (evidence: `README.md`)
- Dashboard UI → Admin tools: manages users (evidence: `README.md`)
- User → Selected workbook: selects (evidence: `README.md`)
- Dashboard UI → Selected workbook: reads locally (evidence: `README.md`)
- Dashboard UI → Dashboard generation: builds dashboard (evidence: `README.md`)
- Dashboard UI → Workbook unlocking: requests unlock (evidence: `README.md`)
- Workbook unlocking → Flask server: unlocks workbook (evidence: `app.py`)
- Dashboard UI → Activity log: records analysis (evidence: `README.md`)
- Activity log → SQLite data: stores log (evidence: `app.py`)
- Admin tools → Activity log: views log (evidence: `README.md`)
