# the-sahilsuman/careerforge architecture

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

- Interactive diagram: https://gitdiagram.com/the-sahilsuman/careerforge
- Repository: https://github.com/the-sahilsuman/careerforge

## Overview

CareerForge is a career-management platform whose user-facing workflow runs from profile and resume management through job/application tracking and AI career assistance. The React app calls a core business API for structured career data; a separate agentic service provides document ingestion and retrieval-augmented responses. The README documents the broader RAG and integration capabilities, while sampled backend code confirms API routing and application persistence. Some subsystem links are documented rather than source-verified; those are marked by README evidence or left unconnected where wiring is uncertain.

Main entry points: [`core-backend/app/api/router.py`](https://github.com/the-sahilsuman/careerforge/blob/main/core-backend/app/api/router.py) (Core API), [`frontend/src/App.jsx`](https://github.com/the-sahilsuman/careerforge/blob/main/frontend/src/App.jsx) (React app), [`agentic-service/app/ingestion/service.py`](https://github.com/the-sahilsuman/careerforge/blob/main/agentic-service/app/ingestion/service.py) (Document ingestion), [`frontend/src/services/api/client.js`](https://github.com/the-sahilsuman/careerforge/blob/main/frontend/src/services/api/client.js) (API client)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_frontend["Web experience"]
  node_web["React app<br/>[App.jsx]"]
  node_auth["Authentication<br/>[authService.js]"]
  node_career_ui["Career workspace<br/>[UserDashboard.jsx]"]
  node_profile_ui["Profile editor<br/>[ProfileEdit.jsx]"]
  node_assistant_ui["Career assistant"]
  node_api_client["API client<br/>[client.js]"]
end

subgraph group_core["Career business API"]
  node_core_api["Core API<br/>[router.py]"]
  node_profile_domain["Career profile<br/>[profile.py]"]
  node_resume_domain["Resume management<br/>[resume.py]"]
  node_application_api["Application routes<br/>[applications.py]"]
  node_application_service["Application lifecycle<br/>[application.py]"]
  node_application_repo["Application persistence<br/>[application.py]"]
  node_application_model["Application records<br/>[application.py]"]
end

subgraph group_ai["AI and documents"]
  node_agentic_api["Agentic service<br/>[main.py]"]
  node_ingestion["Document ingestion<br/>[service.py]"]
  node_parsing["Parse and chunk<br/>[parser.py]"]
  node_worker["Ingestion worker"]
  node_retrieval["Semantic retrieval<br/>[service.py]"]
  node_agent["Assistant orchestration<br/>[service.py]"]
  node_llm["Language models<br/>[factory.py]"]
  node_vectorstore[("Vector store<br/>[s3_vectors.py]")]
end

subgraph group_integrations["External services"]
  node_database[("PostgreSQL")]
  node_s3[("AWS S3")]
  node_sqs["AWS SQS"]
  node_cognito["Amazon Cognito"]
  node_gmail["Gmail"]
end

node_user(("Career user"))

node_user -->|"uses"| node_web
node_web -->|"authenticates"| node_auth
node_auth -->|"signs in"| node_cognito
node_web -->|"routes to"| node_career_ui
node_web -->|"routes to"| node_profile_ui
node_web -->|"routes to"| node_assistant_ui
node_career_ui -.->|"uses API"| node_api_client
node_profile_ui -->|"uses API"| node_api_client
node_assistant_ui -.->|"uses API"| node_api_client
node_api_client -->|"calls"| node_core_api
node_core_api -->|"routes"| node_application_api
node_application_api -->|"delegates"| node_application_service
node_application_service -->|"calls"| node_application_repo
node_application_repo -->|"persists"| node_application_model
node_core_api -.->|"routes"| node_profile_domain
node_core_api -.->|"routes"| node_resume_domain
node_application_repo -.->|"reads and writes"| node_database
node_core_api -.->|"requests AI work"| node_agentic_api
node_agentic_api -.->|"accepts documents"| node_ingestion
node_worker -->|"processes events"| node_ingestion
node_ingestion -->|"extracts text"| node_parsing
node_ingestion -.->|"stores documents"| node_s3
node_ingestion -.->|"indexes embeddings"| node_vectorstore
node_agentic_api -.->|"serves assistant"| node_agent
node_agent -.->|"retrieves context"| node_retrieval
node_retrieval -->|"searches vectors"| node_vectorstore
node_agent -.->|"generates response"| node_llm
node_llm -.->|"uses Bedrock"| node_s3
node_worker -->|"polls messages"| node_sqs
node_core_api -.->|"supports email workflows"| node_gmail

click node_web "https://github.com/the-sahilsuman/careerforge/blob/main/frontend/src/App.jsx"
click node_auth "https://github.com/the-sahilsuman/careerforge/blob/main/frontend/src/auth/authService.js"
click node_career_ui "https://github.com/the-sahilsuman/careerforge/blob/main/frontend/src/pages/user/UserDashboard.jsx"
click node_profile_ui "https://github.com/the-sahilsuman/careerforge/blob/main/frontend/src/pages/user/ProfileEdit.jsx"
click node_assistant_ui "https://github.com/the-sahilsuman/careerforge/blob/main/frontend/src/pages/user/CareerAssistant.jsx"
click node_api_client "https://github.com/the-sahilsuman/careerforge/blob/main/frontend/src/services/api/client.js"
click node_core_api "https://github.com/the-sahilsuman/careerforge/blob/main/core-backend/app/api/router.py"
click node_profile_domain "https://github.com/the-sahilsuman/careerforge/blob/main/core-backend/app/services/profile.py"
click node_resume_domain "https://github.com/the-sahilsuman/careerforge/blob/main/core-backend/app/services/resume.py"
click node_application_api "https://github.com/the-sahilsuman/careerforge/blob/main/core-backend/app/api/routes/applications.py"
click node_application_service "https://github.com/the-sahilsuman/careerforge/blob/main/core-backend/app/services/application.py"
click node_application_repo "https://github.com/the-sahilsuman/careerforge/blob/main/core-backend/app/repositories/application.py"
click node_application_model "https://github.com/the-sahilsuman/careerforge/blob/main/core-backend/app/models/application.py"
click node_agentic_api "https://github.com/the-sahilsuman/careerforge/blob/main/agentic-service/app/main.py"
click node_ingestion "https://github.com/the-sahilsuman/careerforge/blob/main/agentic-service/app/ingestion/service.py"
click node_parsing "https://github.com/the-sahilsuman/careerforge/blob/main/agentic-service/app/ingestion/parser.py"
click node_worker "https://github.com/the-sahilsuman/careerforge/blob/main/agentic-service/app/workers/ingestion_worker.py"
click node_retrieval "https://github.com/the-sahilsuman/careerforge/blob/main/agentic-service/app/retrieval/service.py"
click node_agent "https://github.com/the-sahilsuman/careerforge/blob/main/agentic-service/app/agent/service.py"
click node_llm "https://github.com/the-sahilsuman/careerforge/blob/main/agentic-service/app/llm/factory.py"
click node_vectorstore "https://github.com/the-sahilsuman/careerforge/blob/main/agentic-service/app/vectorstore/s3_vectors.py"

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_web,node_auth,node_career_ui,node_profile_ui,node_assistant_ui,node_api_client,node_user toneBlue
class node_core_api,node_profile_domain,node_resume_domain,node_application_api,node_application_service,node_application_repo,node_application_model toneAmber
class node_agentic_api,node_ingestion,node_parsing,node_worker,node_retrieval,node_agent,node_llm,node_vectorstore toneMint
class node_database,node_s3,node_sqs,node_cognito,node_gmail toneRose
```

## Components

### Web experience

- [React app](https://github.com/the-sahilsuman/careerforge/blob/main/frontend/src/App.jsx): `frontend/src/App.jsx`
- [Authentication](https://github.com/the-sahilsuman/careerforge/blob/main/frontend/src/auth/authService.js): `frontend/src/auth/authService.js`
- [Career workspace](https://github.com/the-sahilsuman/careerforge/blob/main/frontend/src/pages/user/UserDashboard.jsx): `frontend/src/pages/user/UserDashboard.jsx`
- [Profile editor](https://github.com/the-sahilsuman/careerforge/blob/main/frontend/src/pages/user/ProfileEdit.jsx): `frontend/src/pages/user/ProfileEdit.jsx`
- [Career assistant](https://github.com/the-sahilsuman/careerforge/blob/main/frontend/src/pages/user/CareerAssistant.jsx): `frontend/src/pages/user/CareerAssistant.jsx`
- [API client](https://github.com/the-sahilsuman/careerforge/blob/main/frontend/src/services/api/client.js): `frontend/src/services/api/client.js`

### Career business API

- [Core API](https://github.com/the-sahilsuman/careerforge/blob/main/core-backend/app/api/router.py): `core-backend/app/api/router.py`
- [Career profile](https://github.com/the-sahilsuman/careerforge/blob/main/core-backend/app/services/profile.py): `core-backend/app/services/profile.py`
- [Resume management](https://github.com/the-sahilsuman/careerforge/blob/main/core-backend/app/services/resume.py): `core-backend/app/services/resume.py`
- [Application routes](https://github.com/the-sahilsuman/careerforge/blob/main/core-backend/app/api/routes/applications.py): `core-backend/app/api/routes/applications.py`
- [Application lifecycle](https://github.com/the-sahilsuman/careerforge/blob/main/core-backend/app/services/application.py): `core-backend/app/services/application.py`
- [Application persistence](https://github.com/the-sahilsuman/careerforge/blob/main/core-backend/app/repositories/application.py): `core-backend/app/repositories/application.py`
- [Application records](https://github.com/the-sahilsuman/careerforge/blob/main/core-backend/app/models/application.py): `core-backend/app/models/application.py`

### AI and documents

- [Agentic service](https://github.com/the-sahilsuman/careerforge/blob/main/agentic-service/app/main.py): `agentic-service/app/main.py`
- [Document ingestion](https://github.com/the-sahilsuman/careerforge/blob/main/agentic-service/app/ingestion/service.py): `agentic-service/app/ingestion/service.py`
- [Parse and chunk](https://github.com/the-sahilsuman/careerforge/blob/main/agentic-service/app/ingestion/parser.py): `agentic-service/app/ingestion/parser.py`
- [Ingestion worker](https://github.com/the-sahilsuman/careerforge/blob/main/agentic-service/app/workers/ingestion_worker.py): `agentic-service/app/workers/ingestion_worker.py`
- [Semantic retrieval](https://github.com/the-sahilsuman/careerforge/blob/main/agentic-service/app/retrieval/service.py): `agentic-service/app/retrieval/service.py`
- [Assistant orchestration](https://github.com/the-sahilsuman/careerforge/blob/main/agentic-service/app/agent/service.py): `agentic-service/app/agent/service.py`
- [Language models](https://github.com/the-sahilsuman/careerforge/blob/main/agentic-service/app/llm/factory.py): `agentic-service/app/llm/factory.py`
- [Vector store](https://github.com/the-sahilsuman/careerforge/blob/main/agentic-service/app/vectorstore/s3_vectors.py): `agentic-service/app/vectorstore/s3_vectors.py`

### External services

- **PostgreSQL**
- **AWS S3**
- **AWS SQS**
- **Amazon Cognito**
- **Gmail**

### Other components

- **Career user**

## Connections

- Career user → React app: uses (evidence: `README.md`)
- React app → Authentication: authenticates
- Authentication → Amazon Cognito: signs in (evidence: `frontend/src/auth/authService.js`)
- React app → Career workspace: routes to
- React app → Profile editor: routes to
- React app → Career assistant: routes to
- Career workspace → API client: uses API
- Profile editor → API client: uses API (evidence: `frontend/src/pages/user/ProfileEdit.jsx`)
- Career assistant → API client: uses API
- API client → Core API: calls (evidence: `README.md`)
- Core API → Application routes: routes (evidence: `core-backend/app/api/router.py`)
- Application routes → Application lifecycle: delegates (evidence: `core-backend/app/api/routes/applications.py`)
- Application lifecycle → Application persistence: calls (evidence: `core-backend/app/services/application.py`)
- Application persistence → Application records: persists (evidence: `core-backend/app/repositories/application.py`)
- Core API → Career profile: routes
- Core API → Resume management: routes
- Application persistence → PostgreSQL: reads and writes
- Core API → Agentic service: requests AI work (evidence: `README.md`)
- Agentic service → Document ingestion: accepts documents (evidence: `README.md`)
- Ingestion worker → Document ingestion: processes events (evidence: `agentic-service/app/workers/ingestion_worker.py`)
- Document ingestion → Parse and chunk: extracts text (evidence: `agentic-service/app/ingestion/service.py`)
- Document ingestion → AWS S3: stores documents (evidence: `README.md`)
- Document ingestion → Vector store: indexes embeddings (evidence: `README.md`)
- Agentic service → Assistant orchestration: serves assistant (evidence: `README.md`)
- Assistant orchestration → Semantic retrieval: retrieves context (evidence: `README.md`)
- Semantic retrieval → Vector store: searches vectors (evidence: `agentic-service/app/retrieval/service.py`)
- Assistant orchestration → Language models: generates response (evidence: `README.md`)
- Language models → AWS S3: uses Bedrock (evidence: `README.md`)
- Ingestion worker → AWS SQS: polls messages (evidence: `agentic-service/app/workers/ingestion_worker.py`)
- Core API → Gmail: supports email workflows (evidence: `README.md`)
