# thameem005/govasisst architecture

> Architecture diagram of the GitHub repository thameem005/govasisst, 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/thameem005/govasisst
- Repository: https://github.com/thameem005/govasisst

## Overview

GovAssist helps people find government schemes and scholarships, check eligibility, and manage saved or tracked applications. The main journey runs from the React app through its API client to Spring REST controllers and persistence; authentication and admin management are separate branches. The README documents search, filtering, and admin capabilities beyond the sampled excerpts, so those are represented at subsystem level. Several controller implementations and database wiring were not sampled; uncertain links are omitted rather than inferred.

Main entry points: [`src/App.tsx`](https://github.com/thameem005/govasisst/blob/main/src/App.tsx) (Routes and shell), [`src/services/api.ts`](https://github.com/thameem005/govasisst/blob/main/src/services/api.ts) (API client), [`backend/src/main/java/com/govassist/entity`](https://github.com/thameem005/govasisst/tree/main/backend/src/main/java/com/govassist/entity) (Domain entities), [`backend/src/main/java/com/govassist/controller/AdminController.java`](https://github.com/thameem005/govasisst/blob/main/backend/src/main/java/com/govassist/controller/AdminController.java) (Scheme management)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_frontend["Web application"]
  node_app["Routes and shell<br/>[App.tsx]"]
  node_authui["Login and registration<br/>[RegisterPage.tsx]"]
  node_discovery["Scheme and scholarship discovery"]
  node_eligibilityui["Eligibility checker"]
  node_chatui["Chat assistant<br/>[AIChatbot.tsx]"]
  node_personal["Dashboard and profile<br/>[DashboardPage.tsx]"]
  node_trackingui["Application tracking"]
  node_adminui["Admin dashboard"]
  node_sharedstate["Auth and preferences<br/>[AuthContext.tsx]"]
  node_api["API client<br/>[api.ts]"]
end

subgraph group_backend["REST services"]
  node_auth["Authentication"]
  node_eligibility["Eligibility matching"]
  node_chat["Chat endpoint"]
  node_schemeadmin["Scheme management"]
  node_otherfeatures["Other REST features"]
end

subgraph group_data["Domain and persistence"]
  node_userrepo[("User repository")]
  node_schemerepo[("Scheme repository")]
  node_scholarshiprepo[("Scholarship repository")]
  node_trackingrepo[("Tracking repository")]
  node_models["Domain entities"]
end

node_citizen(("Citizen or admin"))
node_mysql[("MySQL database")]

node_citizen -->|"uses"| node_app
node_app -->|"routes to"| node_authui
node_app -->|"routes to"| node_discovery
node_app -->|"routes to"| node_eligibilityui
node_app -->|"protects route"| node_personal
node_app -->|"protects route"| node_trackingui
node_app -->|"protects route"| node_adminui
node_app -->|"renders"| node_chatui
node_app -->|"provides state"| node_sharedstate
node_authui -->|"updates session"| node_sharedstate
node_authui -->|"requests auth"| node_api
node_discovery -->|"requests listings"| node_api
node_eligibilityui -->|"checks eligibility"| node_api
node_chatui -->|"sends prompt"| node_api
node_adminui -->|"manages records"| node_api
node_api -->|"calls REST"| node_auth
node_api -->|"calls REST"| node_eligibility
node_api -->|"calls REST"| node_chat
node_auth -->|"reads and saves"| node_userrepo
node_eligibility -->|"queries matches"| node_schemerepo
node_eligibility -->|"uses profile and scheme"| node_models
node_chat -->|"uses scheme"| node_models
node_schemeadmin -->|"reads and writes"| node_userrepo
node_schemeadmin -->|"reads and writes"| node_schemerepo
node_schemeadmin -->|"reads and writes"| node_scholarshiprepo
node_schemeadmin -->|"counts records"| node_trackingrepo
node_userrepo -->|"persists users"| node_models
node_schemerepo -->|"persists schemes"| node_models
node_scholarshiprepo -->|"persists scholarships"| node_models
node_trackingrepo -->|"persists tracking"| node_models
node_models -.->|"stored in"| node_mysql

click node_app "https://github.com/thameem005/govasisst/blob/main/src/App.tsx"
click node_authui "https://github.com/thameem005/govasisst/blob/main/src/pages/RegisterPage.tsx"
click node_discovery "https://github.com/thameem005/govasisst/blob/main/src/pages/SchemeFinderPage.tsx"
click node_eligibilityui "https://github.com/thameem005/govasisst/blob/main/src/pages/AIEligibilityPage.tsx"
click node_chatui "https://github.com/thameem005/govasisst/blob/main/src/components/AIChatbot.tsx"
click node_personal "https://github.com/thameem005/govasisst/blob/main/src/pages/DashboardPage.tsx"
click node_trackingui "https://github.com/thameem005/govasisst/blob/main/src/pages/ApplicationTrackerPage.tsx"
click node_adminui "https://github.com/thameem005/govasisst/blob/main/src/pages/AdminDashboardPage.tsx"
click node_sharedstate "https://github.com/thameem005/govasisst/blob/main/src/context/AuthContext.tsx"
click node_api "https://github.com/thameem005/govasisst/blob/main/src/services/api.ts"
click node_auth "https://github.com/thameem005/govasisst/blob/main/backend/src/main/java/com/govassist/controller/AuthController.java"
click node_eligibility "https://github.com/thameem005/govasisst/blob/main/backend/src/main/java/com/govassist/controller/EligibilityController.java"
click node_chat "https://github.com/thameem005/govasisst/blob/main/backend/src/main/java/com/govassist/controller/ChatbotController.java"
click node_schemeadmin "https://github.com/thameem005/govasisst/blob/main/backend/src/main/java/com/govassist/controller/AdminController.java"
click node_otherfeatures "https://github.com/thameem005/govasisst/tree/main/backend/src/main/java/com/govassist/controller"
click node_userrepo "https://github.com/thameem005/govasisst/blob/main/backend/src/main/java/com/govassist/repository/UserRepository.java"
click node_schemerepo "https://github.com/thameem005/govasisst/blob/main/backend/src/main/java/com/govassist/repository/SchemeRepository.java"
click node_scholarshiprepo "https://github.com/thameem005/govasisst/blob/main/backend/src/main/java/com/govassist/repository/ScholarshipRepository.java"
click node_trackingrepo "https://github.com/thameem005/govasisst/blob/main/backend/src/main/java/com/govassist/repository/ApplicationTrackingRepository.java"
click node_models "https://github.com/thameem005/govasisst/tree/main/backend/src/main/java/com/govassist/entity"

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_authui,node_discovery,node_eligibilityui,node_chatui,node_personal,node_trackingui,node_adminui,node_sharedstate,node_api toneBlue
class node_auth,node_eligibility,node_chat,node_schemeadmin,node_otherfeatures,node_mysql toneAmber
class node_userrepo,node_schemerepo,node_scholarshiprepo,node_trackingrepo,node_models toneMint
class node_citizen toneIndigo
```

## Components

### Web application

- [Routes and shell](https://github.com/thameem005/govasisst/blob/main/src/App.tsx): `src/App.tsx`
- [Login and registration](https://github.com/thameem005/govasisst/blob/main/src/pages/RegisterPage.tsx): `src/pages/RegisterPage.tsx`
- [Scheme and scholarship discovery](https://github.com/thameem005/govasisst/blob/main/src/pages/SchemeFinderPage.tsx): `src/pages/SchemeFinderPage.tsx`
- [Eligibility checker](https://github.com/thameem005/govasisst/blob/main/src/pages/AIEligibilityPage.tsx): `src/pages/AIEligibilityPage.tsx`
- [Chat assistant](https://github.com/thameem005/govasisst/blob/main/src/components/AIChatbot.tsx): `src/components/AIChatbot.tsx`
- [Dashboard and profile](https://github.com/thameem005/govasisst/blob/main/src/pages/DashboardPage.tsx): `src/pages/DashboardPage.tsx`
- [Application tracking](https://github.com/thameem005/govasisst/blob/main/src/pages/ApplicationTrackerPage.tsx): `src/pages/ApplicationTrackerPage.tsx`
- [Admin dashboard](https://github.com/thameem005/govasisst/blob/main/src/pages/AdminDashboardPage.tsx): `src/pages/AdminDashboardPage.tsx`
- [Auth and preferences](https://github.com/thameem005/govasisst/blob/main/src/context/AuthContext.tsx): `src/context/AuthContext.tsx`
- [API client](https://github.com/thameem005/govasisst/blob/main/src/services/api.ts): `src/services/api.ts`

### REST services

- [Authentication](https://github.com/thameem005/govasisst/blob/main/backend/src/main/java/com/govassist/controller/AuthController.java): `backend/src/main/java/com/govassist/controller/AuthController.java`
- [Eligibility matching](https://github.com/thameem005/govasisst/blob/main/backend/src/main/java/com/govassist/controller/EligibilityController.java): `backend/src/main/java/com/govassist/controller/EligibilityController.java`
- [Chat endpoint](https://github.com/thameem005/govasisst/blob/main/backend/src/main/java/com/govassist/controller/ChatbotController.java): `backend/src/main/java/com/govassist/controller/ChatbotController.java`
- [Scheme management](https://github.com/thameem005/govasisst/blob/main/backend/src/main/java/com/govassist/controller/AdminController.java): `backend/src/main/java/com/govassist/controller/AdminController.java`
- [Other REST features](https://github.com/thameem005/govasisst/tree/main/backend/src/main/java/com/govassist/controller): `backend/src/main/java/com/govassist/controller`

### Domain and persistence

- [User repository](https://github.com/thameem005/govasisst/blob/main/backend/src/main/java/com/govassist/repository/UserRepository.java): `backend/src/main/java/com/govassist/repository/UserRepository.java`
- [Scheme repository](https://github.com/thameem005/govasisst/blob/main/backend/src/main/java/com/govassist/repository/SchemeRepository.java): `backend/src/main/java/com/govassist/repository/SchemeRepository.java`
- [Scholarship repository](https://github.com/thameem005/govasisst/blob/main/backend/src/main/java/com/govassist/repository/ScholarshipRepository.java): `backend/src/main/java/com/govassist/repository/ScholarshipRepository.java`
- [Tracking repository](https://github.com/thameem005/govasisst/blob/main/backend/src/main/java/com/govassist/repository/ApplicationTrackingRepository.java): `backend/src/main/java/com/govassist/repository/ApplicationTrackingRepository.java`
- [Domain entities](https://github.com/thameem005/govasisst/tree/main/backend/src/main/java/com/govassist/entity): `backend/src/main/java/com/govassist/entity`

### Other components

- **Citizen or admin**
- **MySQL database**

## Connections

- Citizen or admin → Routes and shell: uses (evidence: `src/App.tsx`)
- Routes and shell → Login and registration: routes to (evidence: `src/App.tsx`)
- Routes and shell → Scheme and scholarship discovery: routes to (evidence: `src/App.tsx`)
- Routes and shell → Eligibility checker: routes to (evidence: `src/App.tsx`)
- Routes and shell → Dashboard and profile: protects route (evidence: `src/App.tsx`)
- Routes and shell → Application tracking: protects route (evidence: `src/App.tsx`)
- Routes and shell → Admin dashboard: protects route (evidence: `src/App.tsx`)
- Routes and shell → Chat assistant: renders (evidence: `src/App.tsx`)
- Routes and shell → Auth and preferences: provides state (evidence: `src/App.tsx`)
- Login and registration → Auth and preferences: updates session (evidence: `src/pages/RegisterPage.tsx`)
- Login and registration → API client: requests auth (evidence: `src/pages/RegisterPage.tsx`)
- Scheme and scholarship discovery → API client: requests listings (evidence: `src/pages/SchemeFinderPage.tsx`)
- Eligibility checker → API client: checks eligibility (evidence: `src/pages/AIEligibilityPage.tsx`)
- Chat assistant → API client: sends prompt (evidence: `src/components/AIChatbot.tsx`)
- Admin dashboard → API client: manages records (evidence: `src/pages/AdminDashboardPage.tsx`)
- API client → Authentication: calls REST (evidence: `src/services/api.ts`)
- API client → Eligibility matching: calls REST (evidence: `src/services/api.ts`)
- API client → Chat endpoint: calls REST (evidence: `src/services/api.ts`)
- Authentication → User repository: reads and saves (evidence: `backend/src/main/java/com/govassist/controller/AuthController.java`)
- Eligibility matching → Scheme repository: queries matches (evidence: `backend/src/main/java/com/govassist/controller/EligibilityController.java`)
- Eligibility matching → Domain entities: uses profile and scheme (evidence: `backend/src/main/java/com/govassist/controller/EligibilityController.java`)
- Chat endpoint → Domain entities: uses scheme (evidence: `backend/src/main/java/com/govassist/controller/ChatbotController.java`)
- Scheme management → User repository: reads and writes (evidence: `backend/src/main/java/com/govassist/controller/AdminController.java`)
- Scheme management → Scheme repository: reads and writes (evidence: `backend/src/main/java/com/govassist/controller/AdminController.java`)
- Scheme management → Scholarship repository: reads and writes (evidence: `backend/src/main/java/com/govassist/controller/AdminController.java`)
- Scheme management → Tracking repository: counts records (evidence: `backend/src/main/java/com/govassist/controller/AdminController.java`)
- User repository → Domain entities: persists users (evidence: `backend/src/main/java/com/govassist/repository/UserRepository.java`)
- Scheme repository → Domain entities: persists schemes (evidence: `backend/src/main/java/com/govassist/repository/SchemeRepository.java`)
- Scholarship repository → Domain entities: persists scholarships (evidence: `backend/src/main/java/com/govassist/repository/ScholarshipRepository.java`)
- Tracking repository → Domain entities: persists tracking (evidence: `backend/src/main/java/com/govassist/repository/ApplicationTrackingRepository.java`)
- Domain entities → MySQL database: stored in (evidence: `README.md`)
