# gsk7625/futurecv architecture

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

- Interactive diagram: https://gitdiagram.com/gsk7625/futurecv
- Repository: https://github.com/gsk7625/futurecv

## Overview

FutureCV is a recruitment platform spanning candidate job search and applications, employer recruiting, profiles/CV management, and AI-assisted CV analysis and job matching. Candidates and employers use the frontend; the ASP.NET backend owns platform records and workflows, while a FastAPI service provides AI capabilities. The graph preserves the documented product domains, but many feature implementations were not sampled: their connections are shown only where the excerpts or SOURCE INDEX support them, or left unverified.

Main entry points: [`backend/src/FutureCV.Application/Features/Candidate/Services/CandidateService.cs`](https://github.com/gsk7625/futurecv/blob/master/backend/src/FutureCV.Application/Features/Candidate/Services/CandidateService.cs) (Candidate services), [`backend-ai/app/api/v1/router.py`](https://github.com/gsk7625/futurecv/blob/master/backend-ai/app/api/v1/router.py) (AI API routes), [`backend/src/FutureCV.Infrastructure/Persistence/ApplicationDbContext.cs`](https://github.com/gsk7625/futurecv/blob/master/backend/src/FutureCV.Infrastructure/Persistence/ApplicationDbContext.cs) (Platform database), [`backend/src/FutureCV.Api/Controllers`](https://github.com/gsk7625/futurecv/tree/master/backend/src/FutureCV.Api/Controllers) (Platform API)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["User experience"]
  node_candidate["Candidate workspace"]
  node_employer["Employer recruiting"]
  node_auth_ui["Authentication UI"]
  node_pipeline_ui["Recruitment pipeline"]
end

subgraph group_platform["Recruitment platform"]
  node_api["Platform API<br/>[Controllers]"]
  node_candidate_api["Candidate endpoints"]
  node_candidate_service["Candidate services"]
  node_auth_service["Identity and auth<br/>[AuthService.cs]"]
  node_job_services["Jobs and applications"]
  node_domain["Recruitment domain<br/>[JobApplication.cs]"]
end

subgraph group_ai["AI services"]
  node_ai_api["AI API routes<br/>[router.py]"]
  node_cv_ai["CV analysis<br/>[cv_analyzer.py]"]
  node_matching["Matching engine"]
  node_career["Career assistant"]
  node_ai_runtime["AI service runtime<br/>[main.py]"]
end

subgraph group_infra["Persistence and integrations"]
  node_database[("Platform database")]
  node_file_storage["File storage"]
  node_ai_clients["AI HTTP clients<br/>[AiCvHttpClient.cs]"]
end

node_candidate_actor(("Candidate"))
node_employer_actor(("Employer"))
node_cloudinary(("Cloudinary"))
node_ai_service(("AI service"))

node_candidate_actor -.->|"uses"| node_candidate
node_employer_actor -.->|"uses"| node_employer
node_candidate -.->|"requests"| node_candidate_api
node_employer -.->|"requests"| node_api
node_auth_ui -.->|"authenticates"| node_auth_service
node_pipeline_ui -->|"supports"| node_employer
node_pipeline_ui -->|"shows applicants"| node_candidate
node_candidate_api -->|"calls"| node_candidate_service
node_candidate_service -->|"reads and writes"| node_database
node_candidate_service -->|"uses"| node_file_storage
node_candidate_service -->|"requests CV analysis"| node_ai_clients
node_auth_service -->|"persists tokens"| node_database
node_job_services -.->|"persists workflows"| node_database
node_api -.->|"dispatches"| node_candidate_service
node_api -.->|"dispatches"| node_job_services
node_database -->|"stores entities"| node_domain
node_cloudinary -->|"stores files"| node_file_storage
node_ai_clients -.->|"calls"| node_ai_service
node_ai_runtime -->|"mounts routes"| node_ai_api
node_ai_api -.->|"dispatches"| node_cv_ai
node_ai_api -.->|"dispatches"| node_matching
node_ai_api -.->|"dispatches"| node_career
node_ai_service -.->|"serves requests"| node_ai_runtime

click node_candidate "https://github.com/gsk7625/futurecv/tree/master/frontend/app/features/candidate/components"
click node_employer "https://github.com/gsk7625/futurecv/tree/master/frontend/app/features/hr/components"
click node_auth_ui "https://github.com/gsk7625/futurecv/tree/master/frontend/app/features/auth"
click node_pipeline_ui "https://github.com/gsk7625/futurecv/blob/master/frontend/app/features/hr/components/RecruitmentPipelinePage.tsx"
click node_api "https://github.com/gsk7625/futurecv/tree/master/backend/src/FutureCV.Api/Controllers"
click node_candidate_api "https://github.com/gsk7625/futurecv/blob/master/backend/src/FutureCV.Api/Controllers/CandidateProfileController.cs"
click node_candidate_service "https://github.com/gsk7625/futurecv/blob/master/backend/src/FutureCV.Application/Features/Candidate/Services/CandidateService.cs"
click node_auth_service "https://github.com/gsk7625/futurecv/blob/master/backend/src/FutureCV.Infrastructure/Identity/AuthService.cs"
click node_job_services "https://github.com/gsk7625/futurecv/blob/master/backend/src/FutureCV.Application/Features/JobApplication/Services/ApplicationService.cs"
click node_domain "https://github.com/gsk7625/futurecv/blob/master/backend/src/FutureCV.Domain/Entities/JobApplication.cs"
click node_ai_api "https://github.com/gsk7625/futurecv/blob/master/backend-ai/app/api/v1/router.py"
click node_cv_ai "https://github.com/gsk7625/futurecv/blob/master/backend-ai/app/application/cv_analyzer.py"
click node_matching "https://github.com/gsk7625/futurecv/blob/master/backend-ai/app/application/matching_service.py"
click node_career "https://github.com/gsk7625/futurecv/blob/master/backend-ai/app/application/career_assistant.py"
click node_ai_runtime "https://github.com/gsk7625/futurecv/blob/master/backend-ai/app/main.py"
click node_database "https://github.com/gsk7625/futurecv/blob/master/backend/src/FutureCV.Infrastructure/Persistence/ApplicationDbContext.cs"
click node_file_storage "https://github.com/gsk7625/futurecv/blob/master/backend/src/FutureCV.Infrastructure/Services/CloudinaryFileStorage.cs"
click node_ai_clients "https://github.com/gsk7625/futurecv/blob/master/backend/src/FutureCV.Infrastructure/Services/AiCvHttpClient.cs"

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_candidate,node_employer,node_auth_ui,node_pipeline_ui toneBlue
class node_api,node_candidate_api,node_candidate_service,node_auth_service,node_job_services,node_domain toneAmber
class node_ai_api,node_cv_ai,node_matching,node_career,node_ai_runtime toneMint
class node_database,node_file_storage,node_ai_clients toneRose
class node_candidate_actor,node_employer_actor,node_cloudinary,node_ai_service toneIndigo
```

## Components

### User experience

- [Candidate workspace](https://github.com/gsk7625/futurecv/tree/master/frontend/app/features/candidate/components): `frontend/app/features/candidate/components`
- [Employer recruiting](https://github.com/gsk7625/futurecv/tree/master/frontend/app/features/hr/components): `frontend/app/features/hr/components`
- [Authentication UI](https://github.com/gsk7625/futurecv/tree/master/frontend/app/features/auth): `frontend/app/features/auth`
- [Recruitment pipeline](https://github.com/gsk7625/futurecv/blob/master/frontend/app/features/hr/components/RecruitmentPipelinePage.tsx): `frontend/app/features/hr/components/RecruitmentPipelinePage.tsx`

### Recruitment platform

- [Platform API](https://github.com/gsk7625/futurecv/tree/master/backend/src/FutureCV.Api/Controllers): `backend/src/FutureCV.Api/Controllers`
- [Candidate endpoints](https://github.com/gsk7625/futurecv/blob/master/backend/src/FutureCV.Api/Controllers/CandidateProfileController.cs): `backend/src/FutureCV.Api/Controllers/CandidateProfileController.cs`
- [Candidate services](https://github.com/gsk7625/futurecv/blob/master/backend/src/FutureCV.Application/Features/Candidate/Services/CandidateService.cs): `backend/src/FutureCV.Application/Features/Candidate/Services/CandidateService.cs`
- [Identity and auth](https://github.com/gsk7625/futurecv/blob/master/backend/src/FutureCV.Infrastructure/Identity/AuthService.cs): `backend/src/FutureCV.Infrastructure/Identity/AuthService.cs`
- [Jobs and applications](https://github.com/gsk7625/futurecv/blob/master/backend/src/FutureCV.Application/Features/JobApplication/Services/ApplicationService.cs): `backend/src/FutureCV.Application/Features/JobApplication/Services/ApplicationService.cs`
- [Recruitment domain](https://github.com/gsk7625/futurecv/blob/master/backend/src/FutureCV.Domain/Entities/JobApplication.cs): `backend/src/FutureCV.Domain/Entities/JobApplication.cs`

### AI services

- [AI API routes](https://github.com/gsk7625/futurecv/blob/master/backend-ai/app/api/v1/router.py): `backend-ai/app/api/v1/router.py`
- [CV analysis](https://github.com/gsk7625/futurecv/blob/master/backend-ai/app/application/cv_analyzer.py): `backend-ai/app/application/cv_analyzer.py`
- [Matching engine](https://github.com/gsk7625/futurecv/blob/master/backend-ai/app/application/matching_service.py): `backend-ai/app/application/matching_service.py`
- [Career assistant](https://github.com/gsk7625/futurecv/blob/master/backend-ai/app/application/career_assistant.py): `backend-ai/app/application/career_assistant.py`
- [AI service runtime](https://github.com/gsk7625/futurecv/blob/master/backend-ai/app/main.py): `backend-ai/app/main.py`

### Persistence and integrations

- [Platform database](https://github.com/gsk7625/futurecv/blob/master/backend/src/FutureCV.Infrastructure/Persistence/ApplicationDbContext.cs): `backend/src/FutureCV.Infrastructure/Persistence/ApplicationDbContext.cs`
- [File storage](https://github.com/gsk7625/futurecv/blob/master/backend/src/FutureCV.Infrastructure/Services/CloudinaryFileStorage.cs): `backend/src/FutureCV.Infrastructure/Services/CloudinaryFileStorage.cs`
- [AI HTTP clients](https://github.com/gsk7625/futurecv/blob/master/backend/src/FutureCV.Infrastructure/Services/AiCvHttpClient.cs): `backend/src/FutureCV.Infrastructure/Services/AiCvHttpClient.cs`

### Other components

- **Candidate**
- **Employer**
- **Cloudinary**
- **AI service**

## Connections

- Candidate → Candidate workspace: uses
- Employer → Employer recruiting: uses
- Candidate workspace → Candidate endpoints: requests
- Employer recruiting → Platform API: requests
- Authentication UI → Identity and auth: authenticates
- Recruitment pipeline → Employer recruiting: supports (evidence: `frontend/app/features/hr/components/RecruitmentPipelinePage.tsx`)
- Recruitment pipeline → Candidate workspace: shows applicants (evidence: `frontend/app/features/hr/components/RecruitmentPipelinePage.tsx`)
- Candidate endpoints → Candidate services: calls (evidence: `backend/src/FutureCV.Api/Controllers/CandidateProfileController.cs`)
- Candidate services → Platform database: reads and writes (evidence: `backend/src/FutureCV.Application/Features/Candidate/Services/CandidateService.cs`)
- Candidate services → File storage: uses (evidence: `backend/src/FutureCV.Application/Features/Candidate/Services/CandidateService.cs`)
- Candidate services → AI HTTP clients: requests CV analysis (evidence: `backend/src/FutureCV.Application/Features/Candidate/Services/CandidateService.cs`)
- Identity and auth → Platform database: persists tokens (evidence: `backend/src/FutureCV.Infrastructure/Identity/AuthService.cs`)
- Jobs and applications → Platform database: persists workflows
- Platform API → Candidate services: dispatches
- Platform API → Jobs and applications: dispatches
- Platform database → Recruitment domain: stores entities
- Cloudinary → File storage: stores files (evidence: `backend/src/FutureCV.Infrastructure/Services/CloudinaryFileStorage.cs`)
- AI HTTP clients → AI service: calls
- AI service runtime → AI API routes: mounts routes (evidence: `backend-ai/app/main.py`)
- AI API routes → CV analysis: dispatches
- AI API routes → Matching engine: dispatches
- AI API routes → Career assistant: dispatches
- AI service → AI service runtime: serves requests
