# shubham96001/hunar-saathi architecture

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

- Interactive diagram: https://gitdiagram.com/shubham96001/hunar-saathi
- Repository: https://github.com/shubham96001/hunar-saathi

## Overview

Hunar Saarthi is a browser-based artisan-group management prototype. Users move through a guided sequence from artisan profiles and skill checks to product selection, sample ordering, purchase-order review, order tracking, and an earnings estimate. The main workflow and voice help are implemented in one JavaScript file; there is no connected backend. Stage transitions and optional voice behavior are described in the README, but unsampled implementation details are not inferred.

Main entry points: [`js/app.js`](https://github.com/shubham96001/hunar-saathi/blob/master/js/app.js) (Workflow Controller), [`index.html`](https://github.com/shubham96001/hunar-saathi/blob/master/index.html) (Prototype Dashboard), [`landing.html`](https://github.com/shubham96001/hunar-saathi/blob/master/landing.html) (Project Overview)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Entry Pages"]
  node_landing["Project Overview<br/>[landing.html]"]
  node_prototype["Prototype Dashboard<br/>[index.html]"]
end

subgraph group_workflow["Artisan Workflow"]
  node_controller["Workflow Controller<br/>[app.js]"]
  node_profiles["Artisan Profiles<br/>[app.js]"]
  node_training["Skill Progress<br/>[app.js]"]
  node_catalog["Product Selection<br/>[app.js]"]
  node_order["Sample Order<br/>[app.js]"]
  node_purchase["Purchase Order<br/>[app.js]"]
  node_tracking["Order Tracking<br/>[app.js]"]
  node_earnings["Earnings Estimate<br/>[app.js]"]
end

subgraph group_assistance["Voice Assistance"]
  node_voice["Voice Help<br/>[app.js]"]
end

node_user(("Artisan Group User"))
node_speech["Browser Speech APIs"]

node_user -->|"opens overview"| node_landing
node_landing -->|"opens prototype"| node_prototype
node_user -->|"opens directly"| node_prototype
node_prototype -.->|"runs dashboard"| node_controller
node_controller -->|"renders stage"| node_profiles
node_profiles -->|"continues to"| node_training
node_training -->|"continues to"| node_catalog
node_catalog -->|"continues to"| node_order
node_order -->|"continues to"| node_purchase
node_purchase -->|"continues to"| node_tracking
node_tracking -->|"continues to"| node_earnings
node_controller -->|"provides guidance"| node_voice
node_voice -->|"uses speech APIs"| node_speech

click node_landing "https://github.com/shubham96001/hunar-saathi/blob/master/landing.html"
click node_prototype "https://github.com/shubham96001/hunar-saathi/blob/master/index.html"
click node_controller "https://github.com/shubham96001/hunar-saathi/blob/master/js/app.js"
click node_profiles "https://github.com/shubham96001/hunar-saathi/blob/master/js/app.js"
click node_training "https://github.com/shubham96001/hunar-saathi/blob/master/js/app.js"
click node_catalog "https://github.com/shubham96001/hunar-saathi/blob/master/js/app.js"
click node_order "https://github.com/shubham96001/hunar-saathi/blob/master/js/app.js"
click node_purchase "https://github.com/shubham96001/hunar-saathi/blob/master/js/app.js"
click node_tracking "https://github.com/shubham96001/hunar-saathi/blob/master/js/app.js"
click node_earnings "https://github.com/shubham96001/hunar-saathi/blob/master/js/app.js"
click node_voice "https://github.com/shubham96001/hunar-saathi/blob/master/js/app.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_landing,node_prototype,node_user,node_speech toneBlue
class node_controller,node_profiles,node_training,node_catalog,node_order,node_purchase,node_tracking,node_earnings toneAmber
class node_voice toneMint
```

## Components

### Entry Pages

- [Project Overview](https://github.com/shubham96001/hunar-saathi/blob/master/landing.html): `landing.html`
- [Prototype Dashboard](https://github.com/shubham96001/hunar-saathi/blob/master/index.html): `index.html`

### Artisan Workflow

- [Workflow Controller](https://github.com/shubham96001/hunar-saathi/blob/master/js/app.js): `js/app.js`
- [Artisan Profiles](https://github.com/shubham96001/hunar-saathi/blob/master/js/app.js): `js/app.js`
- [Skill Progress](https://github.com/shubham96001/hunar-saathi/blob/master/js/app.js): `js/app.js`
- [Product Selection](https://github.com/shubham96001/hunar-saathi/blob/master/js/app.js): `js/app.js`
- [Sample Order](https://github.com/shubham96001/hunar-saathi/blob/master/js/app.js): `js/app.js`
- [Purchase Order](https://github.com/shubham96001/hunar-saathi/blob/master/js/app.js): `js/app.js`
- [Order Tracking](https://github.com/shubham96001/hunar-saathi/blob/master/js/app.js): `js/app.js`
- [Earnings Estimate](https://github.com/shubham96001/hunar-saathi/blob/master/js/app.js): `js/app.js`

### Voice Assistance

- [Voice Help](https://github.com/shubham96001/hunar-saathi/blob/master/js/app.js): `js/app.js`

### Other components

- **Artisan Group User**
- **Browser Speech APIs**

## Connections

- Artisan Group User → Project Overview: opens overview (evidence: `README.md`)
- Project Overview → Prototype Dashboard: opens prototype (evidence: `README.md`)
- Artisan Group User → Prototype Dashboard: opens directly (evidence: `README.md`)
- Prototype Dashboard → Workflow Controller: runs dashboard
- Workflow Controller → Artisan Profiles: renders stage (evidence: `js/app.js`)
- Artisan Profiles → Skill Progress: continues to (evidence: `README.md`)
- Skill Progress → Product Selection: continues to (evidence: `README.md`)
- Product Selection → Sample Order: continues to (evidence: `README.md`)
- Sample Order → Purchase Order: continues to (evidence: `README.md`)
- Purchase Order → Order Tracking: continues to (evidence: `README.md`)
- Order Tracking → Earnings Estimate: continues to (evidence: `README.md`)
- Workflow Controller → Voice Help: provides guidance (evidence: `js/app.js`)
- Voice Help → Browser Speech APIs: uses speech APIs (evidence: `js/app.js`)
