# atmikanayak/unnathi architecture

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

- Interactive diagram: https://gitdiagram.com/atmikanayak/unnathi
- Repository: https://github.com/atmikanayak/unnathi

## Overview

Unnathi helps women find scholarships, schemes, and internships while learning personal finance. The user-facing flow begins at the home page, routes to opportunity discovery or Money Lab, and offers a dedicated SIP simulator; HerBot is available across routes. The Opportunity Hub loads and filters opportunity records through a Firestore-backed service with local-data fallbacks. Money Lab also includes financial topics, a quiz, and milestones. Evidence is strongest for the sampled route, data, simulator, and chatbot interactions; other README-listed capabilities are represented at their page level.

Main entry points: [`src/App.jsx`](https://github.com/atmikanayak/unnathi/blob/main/src/App.jsx) (Route shell), [`src/pages/OpportunityHub.jsx`](https://github.com/atmikanayak/unnathi/blob/main/src/pages/OpportunityHub.jsx) (Opportunity Hub), [`src/pages/Home.jsx`](https://github.com/atmikanayak/unnathi/blob/main/src/pages/Home.jsx) (Home), [`src/services/db.js`](https://github.com/atmikanayak/unnathi/blob/main/src/services/db.js) (Opportunity data service)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Application shell"]
  node_app["Route shell<br/>[App.jsx]"]
  node_home["Home<br/>[Home.jsx]"]
  node_navbar["Navigation<br/>[Navbar.jsx]"]
  node_footer["Footer<br/>[Footer.jsx]"]
end

subgraph group_opportunities["Opportunity discovery"]
  node_hub["Opportunity Hub<br/>[OpportunityHub.jsx]"]
  node_filters["Opportunity filters<br/>[FilterBar.jsx]"]
  node_scholarships["Scholarship cards"]
  node_schemes["Scheme cards<br/>[SchemeCard.jsx]"]
end

subgraph group_finance["Financial learning"]
  node_money["Money Lab<br/>[MoneyLab.jsx]"]
  node_simulatorpage["Simulator page<br/>[Simulator.jsx]"]
  node_simulator["SIP calculator"]
end

subgraph group_services["Data and assistant"]
  node_firebase["Firestore setup<br/>[config.js]"]
  node_db["Opportunity data service<br/>[db.js]"]
  node_chatbot["HerBot<br/>[ChatBot.jsx]"]
end

node_user(("Visitor"))
node_firestore[("Cloud Firestore")]
node_openrouter["OpenRouter chat API"]

node_user -->|"visits"| node_home
node_app -->|"routes to"| node_home
node_app -->|"routes to"| node_hub
node_app -->|"routes to"| node_money
node_app -->|"routes to"| node_simulatorpage
node_app -->|"renders"| node_navbar
node_app -->|"renders"| node_footer
node_app -->|"renders"| node_chatbot
node_home -->|"links to"| node_hub
node_home -->|"links to"| node_money
node_hub -->|"loads opportunities"| node_db
node_db -->|"uses connection"| node_firebase
node_firebase -->|"initializes"| node_firestore
node_db -->|"reads collections"| node_firestore
node_hub -.->|"filters records"| node_filters
node_hub -.->|"renders"| node_scholarships
node_hub -.->|"renders"| node_schemes
node_money -->|"renders"| node_simulator
node_simulatorpage -->|"renders"| node_simulator
node_user -->|"asks questions"| node_chatbot
node_chatbot -->|"sends chat request"| node_openrouter

click node_app "https://github.com/atmikanayak/unnathi/blob/main/src/App.jsx"
click node_home "https://github.com/atmikanayak/unnathi/blob/main/src/pages/Home.jsx"
click node_navbar "https://github.com/atmikanayak/unnathi/blob/main/src/components/Navbar.jsx"
click node_footer "https://github.com/atmikanayak/unnathi/blob/main/src/components/Footer.jsx"
click node_hub "https://github.com/atmikanayak/unnathi/blob/main/src/pages/OpportunityHub.jsx"
click node_filters "https://github.com/atmikanayak/unnathi/blob/main/src/components/FilterBar.jsx"
click node_scholarships "https://github.com/atmikanayak/unnathi/blob/main/src/components/ScholarshipCard.jsx"
click node_schemes "https://github.com/atmikanayak/unnathi/blob/main/src/components/SchemeCard.jsx"
click node_money "https://github.com/atmikanayak/unnathi/blob/main/src/pages/MoneyLab.jsx"
click node_simulatorpage "https://github.com/atmikanayak/unnathi/blob/main/src/pages/Simulator.jsx"
click node_simulator "https://github.com/atmikanayak/unnathi/blob/main/src/components/InvestmentSimulator.jsx"
click node_firebase "https://github.com/atmikanayak/unnathi/blob/main/src/firebase/config.js"
click node_db "https://github.com/atmikanayak/unnathi/blob/main/src/services/db.js"
click node_chatbot "https://github.com/atmikanayak/unnathi/blob/main/src/components/ChatBot.jsx"

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_app,node_home,node_navbar,node_footer toneBlue
class node_hub,node_filters,node_scholarships,node_schemes,node_firestore toneAmber
class node_money,node_simulatorpage,node_simulator,node_openrouter toneMint
class node_firebase,node_db,node_chatbot toneRose
class node_user toneIndigo
```

## Components

### Application shell

- [Route shell](https://github.com/atmikanayak/unnathi/blob/main/src/App.jsx): `src/App.jsx`
- [Home](https://github.com/atmikanayak/unnathi/blob/main/src/pages/Home.jsx): `src/pages/Home.jsx`
- [Navigation](https://github.com/atmikanayak/unnathi/blob/main/src/components/Navbar.jsx): `src/components/Navbar.jsx`
- [Footer](https://github.com/atmikanayak/unnathi/blob/main/src/components/Footer.jsx): `src/components/Footer.jsx`

### Opportunity discovery

- [Opportunity Hub](https://github.com/atmikanayak/unnathi/blob/main/src/pages/OpportunityHub.jsx): `src/pages/OpportunityHub.jsx`
- [Opportunity filters](https://github.com/atmikanayak/unnathi/blob/main/src/components/FilterBar.jsx): `src/components/FilterBar.jsx`
- [Scholarship cards](https://github.com/atmikanayak/unnathi/blob/main/src/components/ScholarshipCard.jsx): `src/components/ScholarshipCard.jsx`
- [Scheme cards](https://github.com/atmikanayak/unnathi/blob/main/src/components/SchemeCard.jsx): `src/components/SchemeCard.jsx`

### Financial learning

- [Money Lab](https://github.com/atmikanayak/unnathi/blob/main/src/pages/MoneyLab.jsx): `src/pages/MoneyLab.jsx`
- [Simulator page](https://github.com/atmikanayak/unnathi/blob/main/src/pages/Simulator.jsx): `src/pages/Simulator.jsx`
- [SIP calculator](https://github.com/atmikanayak/unnathi/blob/main/src/components/InvestmentSimulator.jsx): `src/components/InvestmentSimulator.jsx`

### Data and assistant

- [Firestore setup](https://github.com/atmikanayak/unnathi/blob/main/src/firebase/config.js): `src/firebase/config.js`
- [Opportunity data service](https://github.com/atmikanayak/unnathi/blob/main/src/services/db.js): `src/services/db.js`
- [HerBot](https://github.com/atmikanayak/unnathi/blob/main/src/components/ChatBot.jsx): `src/components/ChatBot.jsx`

### Other components

- **Visitor**
- **Cloud Firestore**
- **OpenRouter chat API**

## Connections

- Visitor → Home: visits
- Route shell → Home: routes to (evidence: `src/App.jsx`)
- Route shell → Opportunity Hub: routes to (evidence: `src/App.jsx`)
- Route shell → Money Lab: routes to (evidence: `src/App.jsx`)
- Route shell → Simulator page: routes to (evidence: `src/App.jsx`)
- Route shell → Navigation: renders (evidence: `src/App.jsx`)
- Route shell → Footer: renders (evidence: `src/App.jsx`)
- Route shell → HerBot: renders (evidence: `src/App.jsx`)
- Home → Opportunity Hub: links to (evidence: `src/pages/Home.jsx`)
- Home → Money Lab: links to (evidence: `src/pages/Home.jsx`)
- Opportunity Hub → Opportunity data service: loads opportunities (evidence: `src/pages/OpportunityHub.jsx`)
- Opportunity data service → Firestore setup: uses connection (evidence: `src/services/db.js`)
- Firestore setup → Cloud Firestore: initializes (evidence: `src/firebase/config.js`)
- Opportunity data service → Cloud Firestore: reads collections (evidence: `src/services/db.js`)
- Opportunity Hub → Opportunity filters: filters records
- Opportunity Hub → Scholarship cards: renders
- Opportunity Hub → Scheme cards: renders
- Money Lab → SIP calculator: renders (evidence: `src/pages/MoneyLab.jsx`)
- Simulator page → SIP calculator: renders (evidence: `src/pages/Simulator.jsx`)
- Visitor → HerBot: asks questions (evidence: `src/components/ChatBot.jsx`)
- HerBot → OpenRouter chat API: sends chat request (evidence: `src/components/ChatBot.jsx`)
