# shey66830-blip/profileforge architecture

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

- Interactive diagram: https://gitdiagram.com/shey66830-blip/profileforge
- Repository: https://github.com/shey66830-blip/profileforge

## Overview

ProfileForge is a career platform for building resumes, analyzing and tailoring them for jobs, finding opportunities, and tracking applications. The principal workflow runs from resume creation or upload through document storage and AI/job analysis to job search and application tracking; profile management, courses, and subscriptions are additional capabilities. The graph combines sampled routing and call evidence with README-documented capabilities. Several page, controller, and service implementations were not sampled, so their internal interactions are omitted or shown only where documented.

Main entry points: [`server/config/db.js`](https://github.com/shey66830-blip/profileforge/blob/main/server/config/db.js) (MongoDB), [`client/src/App.jsx`](https://github.com/shey66830-blip/profileforge/blob/main/client/src/App.jsx) (React workspace), [`server/controllers/aiController.js`](https://github.com/shey66830-blip/profileforge/blob/main/server/controllers/aiController.js) (AI endpoints), [`client/src/pages/jobSearch.jsx`](https://github.com/shey66830-blip/profileforge/blob/main/client/src/pages/jobSearch.jsx) (Job search)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Career workspace"]
  node_spa["React workspace<br/>[App.jsx]"]
  node_authui["Sign-in client<br/>[authService.js]"]
end

subgraph group_resume["Resume and profile"]
  node_resumeui["Resume builder<br/>[profileBuilder.jsx]"]
  node_upload["Resume upload<br/>[uploadRoutes.js]"]
  node_documents["Document API"]
  node_profileui["Profile editor<br/>[profileBuilder.jsx]"]
  node_profileapi["Profile API"]
  node_analysisui["Resume-job analysis"]
  node_aicontroller["AI endpoints<br/>[aiController.js]"]
  node_analysisengine["Resume-job analyzer"]
end

subgraph group_opportunities["Job search and tracking"]
  node_jobui["Job search<br/>[jobSearch.jsx]"]
  node_jobapi["Job API<br/>[jobController.js]"]
  node_jobservice["Job aggregation<br/>[jobService.js]"]
  node_matching["Job matching"]
  node_saved["Saved jobs"]
  node_applications["Application tracker<br/>[applications.jsx]"]
  node_applicationapi["Application API"]
end

subgraph group_platform["Platform services"]
  node_courses["Learning catalog"]
  node_billing["Plans and payments"]
  node_ai["AI provider<br/>[aiProvider.js]"]
end

subgraph group_data["Persistence"]
  node_userstore[("User records<br/>[User.js]")]
  node_documentstore[("Resume records<br/>[Document.js]")]
  node_profilestore[("Profile records<br/>[Profile.js]")]
  node_jobstore[("Saved job records<br/>[SavedJob.js]")]
  node_applicationstore[("Application records<br/>[Application.js]")]
  node_mongo[("MongoDB<br/>[db.js]")]
end

node_person(("Career seeker"))
node_jobproviders["Job listing sources"]
node_razorpay["Razorpay"]

node_person -->|"uses"| node_spa
node_spa -->|"checks session"| node_authui
node_spa -->|"routes to"| node_resumeui
node_spa -->|"routes to"| node_jobui
node_spa -->|"routes to"| node_applications
node_authui -.->|"authenticates"| node_userstore
node_resumeui -.->|"creates documents"| node_documents
node_person -->|"uploads resume"| node_upload
node_upload -.->|"stores extracted data"| node_documentstore
node_resumeui -.->|"edits profile"| node_profileapi
node_profileapi -->|"reads and writes"| node_profilestore
node_analysisui -.->|"requests analysis"| node_aicontroller
node_aicontroller -->|"loads resume"| node_documentstore
node_aicontroller -->|"analyzes resume-job"| node_analysisengine
node_aicontroller -->|"requests AI"| node_ai
node_jobui -.->|"searches jobs"| node_jobapi
node_jobapi -.->|"fetches listings"| node_jobservice
node_jobservice -->|"aggregates listings"| node_jobproviders
node_jobui -.->|"matches resume"| node_matching
node_jobui -.->|"saves jobs"| node_saved
node_saved -.->|"stores saved jobs"| node_jobstore
node_applications -->|"tracks applications"| node_applicationapi
node_applicationapi -->|"manages records"| node_applicationstore
node_person -.->|"browses courses"| node_courses
node_person -.->|"manages plan"| node_billing
node_billing -.->|"processes payment"| node_razorpay
node_mongo -.->|"persists"| node_userstore
node_mongo -.->|"persists"| node_documentstore
node_mongo -.->|"persists"| node_profilestore
node_mongo -.->|"persists"| node_jobstore
node_mongo -.->|"persists"| node_applicationstore

click node_spa "https://github.com/shey66830-blip/profileforge/blob/main/client/src/App.jsx"
click node_authui "https://github.com/shey66830-blip/profileforge/blob/main/client/src/services/authService.js"
click node_resumeui "https://github.com/shey66830-blip/profileforge/blob/main/client/src/pages/profileBuilder.jsx"
click node_upload "https://github.com/shey66830-blip/profileforge/blob/main/server/routes/uploadRoutes.js"
click node_documents "https://github.com/shey66830-blip/profileforge/blob/main/server/controllers/documentController.js"
click node_profileui "https://github.com/shey66830-blip/profileforge/blob/main/client/src/pages/profileBuilder.jsx"
click node_profileapi "https://github.com/shey66830-blip/profileforge/blob/main/server/controllers/profileController.js"
click node_analysisui "https://github.com/shey66830-blip/profileforge/blob/main/client/src/pages/resumeJobAnalysis.jsx"
click node_aicontroller "https://github.com/shey66830-blip/profileforge/blob/main/server/controllers/aiController.js"
click node_analysisengine "https://github.com/shey66830-blip/profileforge/blob/main/server/services/resumeJobAnalyzer.js"
click node_jobui "https://github.com/shey66830-blip/profileforge/blob/main/client/src/pages/jobSearch.jsx"
click node_jobapi "https://github.com/shey66830-blip/profileforge/blob/main/server/controllers/jobController.js"
click node_jobservice "https://github.com/shey66830-blip/profileforge/blob/main/server/services/jobService.js"
click node_matching "https://github.com/shey66830-blip/profileforge/blob/main/server/services/jobMatchingEngine.js"
click node_saved "https://github.com/shey66830-blip/profileforge/blob/main/server/controllers/savedJobController.js"
click node_applications "https://github.com/shey66830-blip/profileforge/blob/main/client/src/pages/applications.jsx"
click node_applicationapi "https://github.com/shey66830-blip/profileforge/blob/main/server/controllers/applicationController.js"
click node_courses "https://github.com/shey66830-blip/profileforge/blob/main/server/controllers/courseController.js"
click node_billing "https://github.com/shey66830-blip/profileforge/blob/main/server/controllers/paymentController.js"
click node_ai "https://github.com/shey66830-blip/profileforge/blob/main/server/services/aiProvider.js"
click node_userstore "https://github.com/shey66830-blip/profileforge/blob/main/server/models/User.js"
click node_documentstore "https://github.com/shey66830-blip/profileforge/blob/main/server/models/Document.js"
click node_profilestore "https://github.com/shey66830-blip/profileforge/blob/main/server/models/Profile.js"
click node_jobstore "https://github.com/shey66830-blip/profileforge/blob/main/server/models/SavedJob.js"
click node_applicationstore "https://github.com/shey66830-blip/profileforge/blob/main/server/models/Application.js"
click node_mongo "https://github.com/shey66830-blip/profileforge/blob/main/server/config/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_spa,node_authui toneBlue
class node_resumeui,node_upload,node_documents,node_profileui,node_profileapi,node_analysisui,node_aicontroller,node_analysisengine toneAmber
class node_jobui,node_jobapi,node_jobservice,node_matching,node_saved,node_applications,node_applicationapi toneMint
class node_courses,node_billing,node_ai toneRose
class node_userstore,node_documentstore,node_profilestore,node_jobstore,node_applicationstore,node_mongo,node_person,node_jobproviders,node_razorpay toneIndigo
```

## Components

### Career workspace

- [React workspace](https://github.com/shey66830-blip/profileforge/blob/main/client/src/App.jsx): `client/src/App.jsx`
- [Sign-in client](https://github.com/shey66830-blip/profileforge/blob/main/client/src/services/authService.js): `client/src/services/authService.js`

### Resume and profile

- [Resume builder](https://github.com/shey66830-blip/profileforge/blob/main/client/src/pages/profileBuilder.jsx): `client/src/pages/profileBuilder.jsx`
- [Resume upload](https://github.com/shey66830-blip/profileforge/blob/main/server/routes/uploadRoutes.js): `server/routes/uploadRoutes.js`
- [Document API](https://github.com/shey66830-blip/profileforge/blob/main/server/controllers/documentController.js): `server/controllers/documentController.js`
- [Profile editor](https://github.com/shey66830-blip/profileforge/blob/main/client/src/pages/profileBuilder.jsx): `client/src/pages/profileBuilder.jsx`
- [Profile API](https://github.com/shey66830-blip/profileforge/blob/main/server/controllers/profileController.js): `server/controllers/profileController.js`
- [Resume-job analysis](https://github.com/shey66830-blip/profileforge/blob/main/client/src/pages/resumeJobAnalysis.jsx): `client/src/pages/resumeJobAnalysis.jsx`
- [AI endpoints](https://github.com/shey66830-blip/profileforge/blob/main/server/controllers/aiController.js): `server/controllers/aiController.js`
- [Resume-job analyzer](https://github.com/shey66830-blip/profileforge/blob/main/server/services/resumeJobAnalyzer.js): `server/services/resumeJobAnalyzer.js`

### Job search and tracking

- [Job search](https://github.com/shey66830-blip/profileforge/blob/main/client/src/pages/jobSearch.jsx): `client/src/pages/jobSearch.jsx`
- [Job API](https://github.com/shey66830-blip/profileforge/blob/main/server/controllers/jobController.js): `server/controllers/jobController.js`
- [Job aggregation](https://github.com/shey66830-blip/profileforge/blob/main/server/services/jobService.js): `server/services/jobService.js`
- [Job matching](https://github.com/shey66830-blip/profileforge/blob/main/server/services/jobMatchingEngine.js): `server/services/jobMatchingEngine.js`
- [Saved jobs](https://github.com/shey66830-blip/profileforge/blob/main/server/controllers/savedJobController.js): `server/controllers/savedJobController.js`
- [Application tracker](https://github.com/shey66830-blip/profileforge/blob/main/client/src/pages/applications.jsx): `client/src/pages/applications.jsx`
- [Application API](https://github.com/shey66830-blip/profileforge/blob/main/server/controllers/applicationController.js): `server/controllers/applicationController.js`

### Platform services

- [Learning catalog](https://github.com/shey66830-blip/profileforge/blob/main/server/controllers/courseController.js): `server/controllers/courseController.js`
- [Plans and payments](https://github.com/shey66830-blip/profileforge/blob/main/server/controllers/paymentController.js): `server/controllers/paymentController.js`
- [AI provider](https://github.com/shey66830-blip/profileforge/blob/main/server/services/aiProvider.js): `server/services/aiProvider.js`

### Persistence

- [User records](https://github.com/shey66830-blip/profileforge/blob/main/server/models/User.js): `server/models/User.js`
- [Resume records](https://github.com/shey66830-blip/profileforge/blob/main/server/models/Document.js): `server/models/Document.js`
- [Profile records](https://github.com/shey66830-blip/profileforge/blob/main/server/models/Profile.js): `server/models/Profile.js`
- [Saved job records](https://github.com/shey66830-blip/profileforge/blob/main/server/models/SavedJob.js): `server/models/SavedJob.js`
- [Application records](https://github.com/shey66830-blip/profileforge/blob/main/server/models/Application.js): `server/models/Application.js`
- [MongoDB](https://github.com/shey66830-blip/profileforge/blob/main/server/config/db.js): `server/config/db.js`

### Other components

- **Career seeker**
- **Job listing sources**
- **Razorpay**

## Connections

- Career seeker → React workspace: uses
- React workspace → Sign-in client: checks session (evidence: `client/src/App.jsx`)
- React workspace → Resume builder: routes to (evidence: `client/src/App.jsx`)
- React workspace → Job search: routes to (evidence: `client/src/App.jsx`)
- React workspace → Application tracker: routes to (evidence: `client/src/App.jsx`)
- Sign-in client → User records: authenticates
- Resume builder → Document API: creates documents
- Career seeker → Resume upload: uploads resume
- Resume upload → Resume records: stores extracted data
- Resume builder → Profile API: edits profile
- Profile API → Profile records: reads and writes (evidence: `server/controllers/profileController.js`)
- Resume-job analysis → AI endpoints: requests analysis
- AI endpoints → Resume records: loads resume (evidence: `server/controllers/aiController.js`)
- AI endpoints → Resume-job analyzer: analyzes resume-job (evidence: `server/controllers/aiController.js`)
- AI endpoints → AI provider: requests AI (evidence: `server/controllers/aiController.js`)
- Job search → Job API: searches jobs
- Job API → Job aggregation: fetches listings
- Job aggregation → Job listing sources: aggregates listings
- Job search → Job matching: matches resume
- Job search → Saved jobs: saves jobs
- Saved jobs → Saved job records: stores saved jobs
- Application tracker → Application API: tracks applications (evidence: `client/src/pages/applications.jsx`)
- Application API → Application records: manages records (evidence: `server/controllers/applicationController.js`)
- Career seeker → Learning catalog: browses courses
- Career seeker → Plans and payments: manages plan
- Plans and payments → Razorpay: processes payment
- MongoDB → User records: persists
- MongoDB → Resume records: persists
- MongoDB → Profile records: persists
- MongoDB → Saved job records: persists
- MongoDB → Application records: persists
