# prashantkumar14104-svg/vaxiquest architecture

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

- Interactive diagram: https://gitdiagram.com/prashantkumar14104-svg/vaxiquest
- Repository: https://github.com/prashantkumar14104-svg/vaxiquest

## Overview

VaxiQuest is a role-based immunization service. Users enter through the web interface, authenticate to the server, then use role-specific workflows for family care, vaccination work, program oversight, or administration. The server also owns schedule generation, gamification, and persistent records. README capabilities are represented even where their route implementations were not sampled; those links are documented rather than verified from excerpts.

Main entry points: [`public/index.html`](https://github.com/prashantkumar14104-svg/vaxiquest/blob/main/public/index.html) (Web interface), [`data/db.json`](https://github.com/prashantkumar14104-svg/vaxiquest/blob/main/data/db.json) (Vaccination database), [`server.js`](https://github.com/prashantkumar14104-svg/vaxiquest/blob/main/server.js) (Worker dashboard)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_access["Access and identity"]
  node_web["Web interface<br/>[index.html]"]
  node_auth["Login and RBAC<br/>[server.js]"]
end

subgraph group_care["Immunization workflows"]
  node_parent_care["Parent dashboard<br/>[server.js]"]
  node_worker_care["Worker dashboard<br/>[server.js]"]
  node_registration["Child registration<br/>[server.js]"]
  node_vaccination["Vaccine schedule and records<br/>[server.js]"]
  node_offline["Offline sync<br/>[index.html]"]
end

subgraph group_engagement["Engagement and insights"]
  node_engagement["Rewards and quizzes<br/>[server.js]"]
  node_reminders["Reminders and guidance<br/>[server.js]"]
  node_analytics["Coverage analytics<br/>[server.js]"]
end

subgraph group_operations["Administration and records"]
  node_admin_tools["User and reward management<br/>[server.js]"]
  node_audit_consent["Audit and consent<br/>[server.js]"]
  node_database[("Vaccination database<br/>[db.json]")]
end

node_parent_actor(("Parent / caregiver"))
node_worker_actor(("Healthcare worker"))
node_manager_actor(("Program manager"))
node_admin_actor(("Administrator"))

node_parent_actor -->|"uses"| node_web
node_worker_actor -->|"uses"| node_web
node_manager_actor -->|"uses"| node_web
node_admin_actor -->|"uses"| node_web
node_web -->|"authenticates"| node_auth
node_auth -->|"reads users"| node_database
node_web -->|"requests dashboard"| node_parent_care
node_web -->|"requests dashboard"| node_worker_care
node_web -->|"requests reports"| node_analytics
node_web -->|"manages users"| node_admin_tools
node_parent_care -->|"reads records"| node_database
node_worker_care -->|"reads tasks"| node_database
node_worker_care -->|"records doses"| node_vaccination
node_web -->|"queues records"| node_offline
node_offline -->|"syncs records"| node_worker_care
node_web -->|"registers child"| node_registration
node_registration -->|"generates schedule"| node_vaccination
node_registration -->|"writes child"| node_database
node_parent_care -->|"shows rewards"| node_engagement
node_parent_care -->|"shows reminders"| node_reminders
node_worker_care -->|"reports performance"| node_analytics
node_analytics -->|"reads coverage data"| node_database
node_web -->|"records consent"| node_audit_consent
node_auth -->|"logs access"| node_audit_consent
node_audit_consent -->|"saves changes"| node_database
node_admin_tools -->|"updates records"| node_database

click node_web "https://github.com/prashantkumar14104-svg/vaxiquest/blob/main/public/index.html"
click node_auth "https://github.com/prashantkumar14104-svg/vaxiquest/blob/main/server.js"
click node_parent_care "https://github.com/prashantkumar14104-svg/vaxiquest/blob/main/server.js"
click node_worker_care "https://github.com/prashantkumar14104-svg/vaxiquest/blob/main/server.js"
click node_registration "https://github.com/prashantkumar14104-svg/vaxiquest/blob/main/server.js"
click node_vaccination "https://github.com/prashantkumar14104-svg/vaxiquest/blob/main/server.js"
click node_engagement "https://github.com/prashantkumar14104-svg/vaxiquest/blob/main/server.js"
click node_reminders "https://github.com/prashantkumar14104-svg/vaxiquest/blob/main/server.js"
click node_offline "https://github.com/prashantkumar14104-svg/vaxiquest/blob/main/public/index.html"
click node_analytics "https://github.com/prashantkumar14104-svg/vaxiquest/blob/main/server.js"
click node_admin_tools "https://github.com/prashantkumar14104-svg/vaxiquest/blob/main/server.js"
click node_audit_consent "https://github.com/prashantkumar14104-svg/vaxiquest/blob/main/server.js"
click node_database "https://github.com/prashantkumar14104-svg/vaxiquest/blob/main/data/db.json"

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_web,node_auth toneBlue
class node_parent_care,node_worker_care,node_registration,node_vaccination,node_offline toneAmber
class node_engagement,node_reminders,node_analytics toneMint
class node_admin_tools,node_audit_consent,node_database,node_worker_actor toneRose
class node_parent_actor,node_manager_actor,node_admin_actor toneIndigo
```

## Components

### Access and identity

- [Web interface](https://github.com/prashantkumar14104-svg/vaxiquest/blob/main/public/index.html): `public/index.html`
- [Login and RBAC](https://github.com/prashantkumar14104-svg/vaxiquest/blob/main/server.js): `server.js`

### Immunization workflows

- [Parent dashboard](https://github.com/prashantkumar14104-svg/vaxiquest/blob/main/server.js): `server.js`
- [Worker dashboard](https://github.com/prashantkumar14104-svg/vaxiquest/blob/main/server.js): `server.js`
- [Child registration](https://github.com/prashantkumar14104-svg/vaxiquest/blob/main/server.js): `server.js`
- [Vaccine schedule and records](https://github.com/prashantkumar14104-svg/vaxiquest/blob/main/server.js): `server.js`
- [Offline sync](https://github.com/prashantkumar14104-svg/vaxiquest/blob/main/public/index.html): `public/index.html`

### Engagement and insights

- [Rewards and quizzes](https://github.com/prashantkumar14104-svg/vaxiquest/blob/main/server.js): `server.js`
- [Reminders and guidance](https://github.com/prashantkumar14104-svg/vaxiquest/blob/main/server.js): `server.js`
- [Coverage analytics](https://github.com/prashantkumar14104-svg/vaxiquest/blob/main/server.js): `server.js`

### Administration and records

- [User and reward management](https://github.com/prashantkumar14104-svg/vaxiquest/blob/main/server.js): `server.js`
- [Audit and consent](https://github.com/prashantkumar14104-svg/vaxiquest/blob/main/server.js): `server.js`
- [Vaccination database](https://github.com/prashantkumar14104-svg/vaxiquest/blob/main/data/db.json): `data/db.json`

### Other components

- **Parent / caregiver**
- **Healthcare worker**
- **Program manager**
- **Administrator**

## Connections

- Parent / caregiver → Web interface: uses (evidence: `README.md`)
- Healthcare worker → Web interface: uses (evidence: `README.md`)
- Program manager → Web interface: uses (evidence: `README.md`)
- Administrator → Web interface: uses (evidence: `README.md`)
- Web interface → Login and RBAC: authenticates (evidence: `README.md`)
- Login and RBAC → Vaccination database: reads users (evidence: `server.js`)
- Web interface → Parent dashboard: requests dashboard (evidence: `README.md`)
- Web interface → Worker dashboard: requests dashboard (evidence: `README.md`)
- Web interface → Coverage analytics: requests reports (evidence: `README.md`)
- Web interface → User and reward management: manages users (evidence: `README.md`)
- Parent dashboard → Vaccination database: reads records (evidence: `server.js`)
- Worker dashboard → Vaccination database: reads tasks (evidence: `server.js`)
- Worker dashboard → Vaccine schedule and records: records doses (evidence: `server.js`)
- Web interface → Offline sync: queues records (evidence: `README.md`)
- Offline sync → Worker dashboard: syncs records (evidence: `README.md`)
- Web interface → Child registration: registers child (evidence: `README.md`)
- Child registration → Vaccine schedule and records: generates schedule (evidence: `server.js`)
- Child registration → Vaccination database: writes child (evidence: `server.js`)
- Parent dashboard → Rewards and quizzes: shows rewards (evidence: `README.md`)
- Parent dashboard → Reminders and guidance: shows reminders (evidence: `README.md`)
- Worker dashboard → Coverage analytics: reports performance (evidence: `README.md`)
- Coverage analytics → Vaccination database: reads coverage data (evidence: `README.md`)
- Web interface → Audit and consent: records consent (evidence: `README.md`)
- Login and RBAC → Audit and consent: logs access (evidence: `server.js`)
- Audit and consent → Vaccination database: saves changes (evidence: `server.js`)
- User and reward management → Vaccination database: updates records (evidence: `README.md`)
