# manoj-6303/talentsmart-ai architecture

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

- Interactive diagram: https://gitdiagram.com/manoj-6303/talentsmart-ai
- Repository: https://github.com/manoj-6303/talentsmart-ai

## Overview

TalentSmart AI is a recruiter-facing hiring platform. Recruiters manage jobs and candidates, upload resumes for parsing and profile creation, search candidates semantically, evaluate candidate–job fit, and prepare interview questions or communications. The frontend App dispatches work to feature components; Express routes own backend operations, calling persistence and AI services. MongoDB-backed records and vector retrieval support the main workflow. The README documents several capabilities beyond the sampled code, including interview preparation and analytics; those are represented at the feature level. Unshown frontend API calls and some feature internals are linked only where documented.

Main entry points: [`frontend/src/App.jsx`](https://github.com/manoj-6303/talentsmart-ai/blob/main/frontend/src/App.jsx) (App shell), [`backend/server.js`](https://github.com/manoj-6303/talentsmart-ai/blob/main/backend/server.js) (Express server), [`backend/routes/candidates.js`](https://github.com/manoj-6303/talentsmart-ai/blob/main/backend/routes/candidates.js) (Candidate routes), [`backend/services/db.js`](https://github.com/manoj-6303/talentsmart-ai/blob/main/backend/services/db.js) (Record persistence)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_frontend["Recruiter interface"]
  node_app["App shell<br/>[App.jsx]"]
  node_jobsui["Job management<br/>[JobList.jsx]"]
  node_uploadui["Resume upload<br/>[UploadResume.jsx]"]
  node_candidatesui["Candidate directory<br/>[CandidateList.jsx]"]
  node_profileui["Candidate profile"]
  node_searchui["Semantic search<br/>[SemanticSearch.jsx]"]
  node_fitui["Fit analysis<br/>[FitAnalysis.jsx]"]
  node_commsui["Recruiter communication<br/>[Communication.jsx]"]
  node_dashboardui["Dashboard and analytics<br/>[Dashboard.jsx]"]
end

subgraph group_api["Application API"]
  node_auth["Authentication routes<br/>[auth.js]"]
  node_candidates["Candidate routes<br/>[candidates.js]"]
  node_jobs["Job routes<br/>[jobs.js]"]
  node_analysis["Analysis routes<br/>[analysis.js]"]
  node_server["Express server<br/>[server.js]"]
end

subgraph group_ai["AI and retrieval"]
  node_gemini["Gemini services<br/>[gemini.js]"]
  node_vectors["Vector service<br/>[vectorDb.js]"]
end

subgraph group_data["Recruitment data"]
  node_database[("Record persistence<br/>[db.js]")]
end

node_recruiter(("Recruiter"))
node_mongodb[("MongoDB")]
node_pinecone[("Pinecone")]
node_googleai["Google Gemini"]

node_recruiter -->|"uses"| node_app
node_app -->|"renders"| node_jobsui
node_app -->|"renders"| node_uploadui
node_app -->|"renders"| node_candidatesui
node_app -->|"renders"| node_profileui
node_app -->|"renders"| node_searchui
node_app -->|"renders"| node_fitui
node_app -->|"renders"| node_commsui
node_app -->|"renders"| node_dashboardui
node_app -->|"calls API"| node_server
node_server -->|"mounts"| node_auth
node_server -->|"mounts"| node_candidates
node_server -->|"mounts"| node_jobs
node_server -->|"mounts"| node_analysis
node_server -->|"connects"| node_database
node_auth -->|"reads and writes"| node_database
node_jobs -->|"reads and writes"| node_database
node_candidates -->|"stores profiles"| node_database
node_candidates -->|"parses and embeds"| node_gemini
node_candidates -->|"indexes and searches"| node_vectors
node_analysis -->|"loads and saves"| node_database
node_analysis -->|"analyzes and drafts"| node_gemini
node_gemini -->|"generates with"| node_googleai
node_vectors -->|"queries and indexes"| node_pinecone
node_database -->|"persists records"| node_mongodb
node_fitui -->|"requests evaluation"| node_analysis
node_commsui -->|"requests drafts"| node_analysis
node_searchui -->|"searches candidates"| node_candidates
node_uploadui -->|"uploads resumes"| node_candidates
node_jobsui -->|"manages jobs"| node_jobs
node_dashboardui -.->|"loads insights"| node_server

click node_app "https://github.com/manoj-6303/talentsmart-ai/blob/main/frontend/src/App.jsx"
click node_jobsui "https://github.com/manoj-6303/talentsmart-ai/blob/main/frontend/src/components/JobList.jsx"
click node_uploadui "https://github.com/manoj-6303/talentsmart-ai/blob/main/frontend/src/components/UploadResume.jsx"
click node_candidatesui "https://github.com/manoj-6303/talentsmart-ai/blob/main/frontend/src/components/CandidateList.jsx"
click node_profileui "https://github.com/manoj-6303/talentsmart-ai/blob/main/frontend/src/components/CandidateProfile.jsx"
click node_searchui "https://github.com/manoj-6303/talentsmart-ai/blob/main/frontend/src/components/SemanticSearch.jsx"
click node_fitui "https://github.com/manoj-6303/talentsmart-ai/blob/main/frontend/src/components/FitAnalysis.jsx"
click node_commsui "https://github.com/manoj-6303/talentsmart-ai/blob/main/frontend/src/components/Communication.jsx"
click node_dashboardui "https://github.com/manoj-6303/talentsmart-ai/blob/main/frontend/src/components/Dashboard.jsx"
click node_auth "https://github.com/manoj-6303/talentsmart-ai/blob/main/backend/routes/auth.js"
click node_candidates "https://github.com/manoj-6303/talentsmart-ai/blob/main/backend/routes/candidates.js"
click node_jobs "https://github.com/manoj-6303/talentsmart-ai/blob/main/backend/routes/jobs.js"
click node_analysis "https://github.com/manoj-6303/talentsmart-ai/blob/main/backend/routes/analysis.js"
click node_server "https://github.com/manoj-6303/talentsmart-ai/blob/main/backend/server.js"
click node_gemini "https://github.com/manoj-6303/talentsmart-ai/blob/main/backend/services/gemini.js"
click node_vectors "https://github.com/manoj-6303/talentsmart-ai/blob/main/backend/services/vectorDb.js"
click node_database "https://github.com/manoj-6303/talentsmart-ai/blob/main/backend/services/db.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_app,node_jobsui,node_uploadui,node_candidatesui,node_profileui,node_searchui,node_fitui,node_commsui,node_dashboardui toneBlue
class node_auth,node_candidates,node_jobs,node_analysis,node_server,node_mongodb,node_pinecone toneAmber
class node_gemini,node_vectors toneMint
class node_database toneRose
class node_recruiter,node_googleai toneIndigo
```

## Components

### Recruiter interface

- [App shell](https://github.com/manoj-6303/talentsmart-ai/blob/main/frontend/src/App.jsx): `frontend/src/App.jsx`
- [Job management](https://github.com/manoj-6303/talentsmart-ai/blob/main/frontend/src/components/JobList.jsx): `frontend/src/components/JobList.jsx`
- [Resume upload](https://github.com/manoj-6303/talentsmart-ai/blob/main/frontend/src/components/UploadResume.jsx): `frontend/src/components/UploadResume.jsx`
- [Candidate directory](https://github.com/manoj-6303/talentsmart-ai/blob/main/frontend/src/components/CandidateList.jsx): `frontend/src/components/CandidateList.jsx`
- [Candidate profile](https://github.com/manoj-6303/talentsmart-ai/blob/main/frontend/src/components/CandidateProfile.jsx): `frontend/src/components/CandidateProfile.jsx`
- [Semantic search](https://github.com/manoj-6303/talentsmart-ai/blob/main/frontend/src/components/SemanticSearch.jsx): `frontend/src/components/SemanticSearch.jsx`
- [Fit analysis](https://github.com/manoj-6303/talentsmart-ai/blob/main/frontend/src/components/FitAnalysis.jsx): `frontend/src/components/FitAnalysis.jsx`
- [Recruiter communication](https://github.com/manoj-6303/talentsmart-ai/blob/main/frontend/src/components/Communication.jsx): `frontend/src/components/Communication.jsx`
- [Dashboard and analytics](https://github.com/manoj-6303/talentsmart-ai/blob/main/frontend/src/components/Dashboard.jsx): `frontend/src/components/Dashboard.jsx`

### Application API

- [Authentication routes](https://github.com/manoj-6303/talentsmart-ai/blob/main/backend/routes/auth.js): `backend/routes/auth.js`
- [Candidate routes](https://github.com/manoj-6303/talentsmart-ai/blob/main/backend/routes/candidates.js): `backend/routes/candidates.js`
- [Job routes](https://github.com/manoj-6303/talentsmart-ai/blob/main/backend/routes/jobs.js): `backend/routes/jobs.js`
- [Analysis routes](https://github.com/manoj-6303/talentsmart-ai/blob/main/backend/routes/analysis.js): `backend/routes/analysis.js`
- [Express server](https://github.com/manoj-6303/talentsmart-ai/blob/main/backend/server.js): `backend/server.js`

### AI and retrieval

- [Gemini services](https://github.com/manoj-6303/talentsmart-ai/blob/main/backend/services/gemini.js): `backend/services/gemini.js`
- [Vector service](https://github.com/manoj-6303/talentsmart-ai/blob/main/backend/services/vectorDb.js): `backend/services/vectorDb.js`

### Recruitment data

- [Record persistence](https://github.com/manoj-6303/talentsmart-ai/blob/main/backend/services/db.js): `backend/services/db.js`

### Other components

- **Recruiter**
- **MongoDB**
- **Pinecone**
- **Google Gemini**

## Connections

- Recruiter → App shell: uses (evidence: `README.md`)
- App shell → Job management: renders (evidence: `frontend/src/App.jsx`)
- App shell → Resume upload: renders (evidence: `frontend/src/App.jsx`)
- App shell → Candidate directory: renders (evidence: `frontend/src/App.jsx`)
- App shell → Candidate profile: renders (evidence: `frontend/src/App.jsx`)
- App shell → Semantic search: renders (evidence: `frontend/src/App.jsx`)
- App shell → Fit analysis: renders (evidence: `frontend/src/App.jsx`)
- App shell → Recruiter communication: renders (evidence: `frontend/src/App.jsx`)
- App shell → Dashboard and analytics: renders (evidence: `frontend/src/App.jsx`)
- App shell → Express server: calls API (evidence: `README.md`)
- Express server → Authentication routes: mounts (evidence: `backend/server.js`)
- Express server → Candidate routes: mounts (evidence: `backend/server.js`)
- Express server → Job routes: mounts (evidence: `backend/server.js`)
- Express server → Analysis routes: mounts (evidence: `backend/server.js`)
- Express server → Record persistence: connects (evidence: `backend/server.js`)
- Authentication routes → Record persistence: reads and writes (evidence: `backend/routes/auth.js`)
- Job routes → Record persistence: reads and writes (evidence: `backend/routes/jobs.js`)
- Candidate routes → Record persistence: stores profiles (evidence: `backend/routes/candidates.js`)
- Candidate routes → Gemini services: parses and embeds (evidence: `backend/routes/candidates.js`)
- Candidate routes → Vector service: indexes and searches (evidence: `backend/routes/candidates.js`)
- Analysis routes → Record persistence: loads and saves (evidence: `backend/routes/analysis.js`)
- Analysis routes → Gemini services: analyzes and drafts (evidence: `backend/routes/analysis.js`)
- Gemini services → Google Gemini: generates with (evidence: `README.md`)
- Vector service → Pinecone: queries and indexes (evidence: `README.md`)
- Record persistence → MongoDB: persists records (evidence: `README.md`)
- Fit analysis → Analysis routes: requests evaluation (evidence: `README.md`)
- Recruiter communication → Analysis routes: requests drafts (evidence: `README.md`)
- Semantic search → Candidate routes: searches candidates (evidence: `README.md`)
- Resume upload → Candidate routes: uploads resumes (evidence: `README.md`)
- Job management → Job routes: manages jobs (evidence: `README.md`)
- Dashboard and analytics → Express server: loads insights
