# sridhar636146591/ai-mentor- architecture

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

- Interactive diagram: https://gitdiagram.com/sridhar636146591/ai-mentor-
- Repository: https://github.com/sridhar636146591/ai-mentor-

## Overview

AI Mentor+ is a student career and academic platform. Students enter through account access and onboarding, then use a dashboard to reach interview practice, resume analysis, learning roadmaps, progress tracking, and other growth tools. The frontend’s shared state coordinates API requests; the Express API authenticates requests, serves feature routes, and uses Prisma-backed storage. The README documents voice features and configurable AI providers, while unsampled pages and route implementations limit certainty about some feature-specific connections.

Main entry points: [`src/store/useStore.ts`](https://github.com/sridhar636146591/ai-mentor-/blob/main/src/store/useStore.ts) (Client state and API), [`src/App.tsx`](https://github.com/sridhar636146591/ai-mentor-/blob/main/src/App.tsx) (App routing), [`server/src/db.ts`](https://github.com/sridhar636146591/ai-mentor-/blob/main/server/src/db.ts) (Prisma client), [`server/src/routes/ai.ts`](https://github.com/sridhar636146591/ai-mentor-/blob/main/server/src/routes/ai.ts) (AI feature routes)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Student experience"]
  node_app["App routing<br/>[App.tsx]"]
  node_shell["Dashboard shell<br/>[AppShell.tsx]"]
  node_home["Home dashboard<br/>[HomeDashboard.tsx]"]
  node_catalog["Module navigation<br/>[modules.ts]"]
  node_authui["Sign-in and signup<br/>[Login.tsx]"]
  node_profileui["Profile setup<br/>[ProfileSetup.tsx]"]
  node_state["Client state and API<br/>[useStore.ts]"]
end

subgraph group_learning["Learning and career tools"]
  node_interview["Mock interview<br/>[MockInterview.tsx]"]
  node_resume["Resume analysis<br/>[ResumeAnalyzer.tsx]"]
  node_roadmap["Learning roadmap<br/>[Roadmap.tsx]"]
  node_modules["Practice and growth tools<br/>[Modules.tsx]"]
  node_progress["Progress dashboard"]
end

subgraph group_api["Backend services"]
  node_aiapi["AI feature routes<br/>[ai.ts]"]
  node_authapi["Account routes<br/>[auth.ts]"]
  node_profileapi["Profile routes<br/>[profile.ts]"]
  node_trackerapi["Application tracker<br/>[tracker.ts]"]
  node_ai["AI service<br/>[aiService.ts]"]
  node_authmw["Token authentication<br/>[auth.ts]"]
end

subgraph group_data["Persistence and identity"]
  node_dbclient["Prisma client<br/>[db.ts]"]
  node_database[("Platform database<br/>[schema.prisma]")]
end

subgraph group_integrations["External capabilities"]
  node_voice{{"Browser speech APIs"}}
  node_providers{{"AI providers"}}
end

node_student(("Student"))

node_student -->|"uses"| node_app
node_app -->|"routes to"| node_authui
node_app -->|"routes to"| node_profileui
node_app -->|"routes to"| node_home
node_app -->|"routes to"| node_interview
node_app -->|"routes to"| node_resume
node_app -->|"routes to"| node_roadmap
node_app -->|"routes to"| node_progress
node_app -->|"routes to"| node_modules
node_home -.->|"renders within"| node_shell
node_shell -->|"uses navigation"| node_catalog
node_home -->|"reads dashboard data"| node_state
node_authui -->|"requests sign-in"| node_state
node_profileui -->|"updates profile"| node_state
node_interview -.->|"requests AI features"| node_state
node_resume -.->|"requests analysis"| node_state
node_roadmap -.->|"requests roadmap"| node_state
node_modules -->|"uses shared state"| node_state
node_progress -.->|"reads progress"| node_state
node_state -->|"calls account API"| node_authapi
node_state -.->|"calls feature API"| node_aiapi
node_state -->|"calls tracker API"| node_trackerapi
node_aiapi -->|"calls"| node_ai
node_aiapi -->|"authenticates"| node_authmw
node_authapi -->|"authenticates"| node_authmw
node_profileapi -->|"authenticates"| node_authmw
node_trackerapi -->|"authenticates"| node_authmw
node_authapi -->|"reads and writes"| node_dbclient
node_profileapi -->|"reads and writes"| node_dbclient
node_trackerapi -->|"reads and writes"| node_dbclient
node_aiapi -->|"records progress"| node_dbclient
node_dbclient -.->|"accesses"| node_database
node_interview -.->|"uses speech"| node_voice
node_ai -.->|"selects provider"| node_providers

click node_app "https://github.com/sridhar636146591/ai-mentor-/blob/main/src/App.tsx"
click node_shell "https://github.com/sridhar636146591/ai-mentor-/blob/main/src/components/layout/AppShell.tsx"
click node_home "https://github.com/sridhar636146591/ai-mentor-/blob/main/src/pages/HomeDashboard.tsx"
click node_catalog "https://github.com/sridhar636146591/ai-mentor-/blob/main/src/lib/modules.ts"
click node_authui "https://github.com/sridhar636146591/ai-mentor-/blob/main/src/pages/Login.tsx"
click node_profileui "https://github.com/sridhar636146591/ai-mentor-/blob/main/src/pages/ProfileSetup.tsx"
click node_state "https://github.com/sridhar636146591/ai-mentor-/blob/main/src/store/useStore.ts"
click node_interview "https://github.com/sridhar636146591/ai-mentor-/blob/main/src/pages/MockInterview.tsx"
click node_resume "https://github.com/sridhar636146591/ai-mentor-/blob/main/src/pages/ResumeAnalyzer.tsx"
click node_roadmap "https://github.com/sridhar636146591/ai-mentor-/blob/main/src/pages/Roadmap.tsx"
click node_modules "https://github.com/sridhar636146591/ai-mentor-/blob/main/src/pages/Modules.tsx"
click node_progress "https://github.com/sridhar636146591/ai-mentor-/blob/main/src/pages/ProgressDashboard.tsx"
click node_aiapi "https://github.com/sridhar636146591/ai-mentor-/blob/main/server/src/routes/ai.ts"
click node_authapi "https://github.com/sridhar636146591/ai-mentor-/blob/main/server/src/routes/auth.ts"
click node_profileapi "https://github.com/sridhar636146591/ai-mentor-/blob/main/server/src/routes/profile.ts"
click node_trackerapi "https://github.com/sridhar636146591/ai-mentor-/blob/main/server/src/routes/tracker.ts"
click node_ai "https://github.com/sridhar636146591/ai-mentor-/blob/main/server/src/services/aiService.ts"
click node_authmw "https://github.com/sridhar636146591/ai-mentor-/blob/main/server/src/middleware/auth.ts"
click node_dbclient "https://github.com/sridhar636146591/ai-mentor-/blob/main/server/src/db.ts"
click node_database "https://github.com/sridhar636146591/ai-mentor-/blob/main/server/prisma/schema.prisma"

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_shell,node_home,node_catalog,node_authui,node_profileui,node_state toneBlue
class node_interview,node_resume,node_roadmap,node_modules,node_progress toneAmber
class node_aiapi,node_authapi,node_profileapi,node_trackerapi,node_ai,node_authmw toneMint
class node_dbclient,node_database toneRose
class node_voice,node_providers,node_student toneIndigo
```

## Components

### Student experience

- [App routing](https://github.com/sridhar636146591/ai-mentor-/blob/main/src/App.tsx): `src/App.tsx`
- [Dashboard shell](https://github.com/sridhar636146591/ai-mentor-/blob/main/src/components/layout/AppShell.tsx): `src/components/layout/AppShell.tsx`
- [Home dashboard](https://github.com/sridhar636146591/ai-mentor-/blob/main/src/pages/HomeDashboard.tsx): `src/pages/HomeDashboard.tsx`
- [Module navigation](https://github.com/sridhar636146591/ai-mentor-/blob/main/src/lib/modules.ts): `src/lib/modules.ts`
- [Sign-in and signup](https://github.com/sridhar636146591/ai-mentor-/blob/main/src/pages/Login.tsx): `src/pages/Login.tsx`
- [Profile setup](https://github.com/sridhar636146591/ai-mentor-/blob/main/src/pages/ProfileSetup.tsx): `src/pages/ProfileSetup.tsx`
- [Client state and API](https://github.com/sridhar636146591/ai-mentor-/blob/main/src/store/useStore.ts): `src/store/useStore.ts`

### Learning and career tools

- [Mock interview](https://github.com/sridhar636146591/ai-mentor-/blob/main/src/pages/MockInterview.tsx): `src/pages/MockInterview.tsx`
- [Resume analysis](https://github.com/sridhar636146591/ai-mentor-/blob/main/src/pages/ResumeAnalyzer.tsx): `src/pages/ResumeAnalyzer.tsx`
- [Learning roadmap](https://github.com/sridhar636146591/ai-mentor-/blob/main/src/pages/Roadmap.tsx): `src/pages/Roadmap.tsx`
- [Practice and growth tools](https://github.com/sridhar636146591/ai-mentor-/blob/main/src/pages/Modules.tsx): `src/pages/Modules.tsx`
- [Progress dashboard](https://github.com/sridhar636146591/ai-mentor-/blob/main/src/pages/ProgressDashboard.tsx): `src/pages/ProgressDashboard.tsx`

### Backend services

- [AI feature routes](https://github.com/sridhar636146591/ai-mentor-/blob/main/server/src/routes/ai.ts): `server/src/routes/ai.ts`
- [Account routes](https://github.com/sridhar636146591/ai-mentor-/blob/main/server/src/routes/auth.ts): `server/src/routes/auth.ts`
- [Profile routes](https://github.com/sridhar636146591/ai-mentor-/blob/main/server/src/routes/profile.ts): `server/src/routes/profile.ts`
- [Application tracker](https://github.com/sridhar636146591/ai-mentor-/blob/main/server/src/routes/tracker.ts): `server/src/routes/tracker.ts`
- [AI service](https://github.com/sridhar636146591/ai-mentor-/blob/main/server/src/services/aiService.ts): `server/src/services/aiService.ts`
- [Token authentication](https://github.com/sridhar636146591/ai-mentor-/blob/main/server/src/middleware/auth.ts): `server/src/middleware/auth.ts`

### Persistence and identity

- [Prisma client](https://github.com/sridhar636146591/ai-mentor-/blob/main/server/src/db.ts): `server/src/db.ts`
- [Platform database](https://github.com/sridhar636146591/ai-mentor-/blob/main/server/prisma/schema.prisma): `server/prisma/schema.prisma`

### External capabilities

- **Browser speech APIs**
- **AI providers**

### Other components

- **Student**

## Connections

- Student → App routing: uses (evidence: `README.md`)
- App routing → Sign-in and signup: routes to (evidence: `src/App.tsx`)
- App routing → Profile setup: routes to (evidence: `src/App.tsx`)
- App routing → Home dashboard: routes to (evidence: `src/App.tsx`)
- App routing → Mock interview: routes to (evidence: `src/App.tsx`)
- App routing → Resume analysis: routes to (evidence: `src/App.tsx`)
- App routing → Learning roadmap: routes to (evidence: `src/App.tsx`)
- App routing → Progress dashboard: routes to (evidence: `src/App.tsx`)
- App routing → Practice and growth tools: routes to (evidence: `src/App.tsx`)
- Home dashboard → Dashboard shell: renders within
- Dashboard shell → Module navigation: uses navigation (evidence: `src/components/layout/AppShell.tsx`)
- Home dashboard → Client state and API: reads dashboard data (evidence: `src/pages/HomeDashboard.tsx`)
- Sign-in and signup → Client state and API: requests sign-in (evidence: `src/pages/Login.tsx`)
- Profile setup → Client state and API: updates profile (evidence: `src/pages/ProfileSetup.tsx`)
- Mock interview → Client state and API: requests AI features (evidence: `src/pages/MockInterview.tsx`)
- Resume analysis → Client state and API: requests analysis (evidence: `src/pages/ResumeAnalyzer.tsx`)
- Learning roadmap → Client state and API: requests roadmap (evidence: `src/pages/Roadmap.tsx`)
- Practice and growth tools → Client state and API: uses shared state (evidence: `src/pages/Modules.tsx`)
- Progress dashboard → Client state and API: reads progress (evidence: `src/pages/ProgressDashboard.tsx`)
- Client state and API → Account routes: calls account API (evidence: `src/store/useStore.ts`)
- Client state and API → AI feature routes: calls feature API
- Client state and API → Application tracker: calls tracker API (evidence: `src/store/useStore.ts`)
- AI feature routes → AI service: calls (evidence: `server/src/routes/ai.ts`)
- AI feature routes → Token authentication: authenticates (evidence: `server/src/routes/ai.ts`)
- Account routes → Token authentication: authenticates (evidence: `server/src/routes/auth.ts`)
- Profile routes → Token authentication: authenticates (evidence: `server/src/routes/profile.ts`)
- Application tracker → Token authentication: authenticates (evidence: `server/src/routes/tracker.ts`)
- Account routes → Prisma client: reads and writes (evidence: `server/src/routes/auth.ts`)
- Profile routes → Prisma client: reads and writes (evidence: `server/src/routes/profile.ts`)
- Application tracker → Prisma client: reads and writes (evidence: `server/src/routes/tracker.ts`)
- AI feature routes → Prisma client: records progress (evidence: `server/src/routes/ai.ts`)
- Prisma client → Platform database: accesses
- Mock interview → Browser speech APIs: uses speech (evidence: `README.md`)
- AI service → AI providers: selects provider (evidence: `README.md`)
