# amogh1087/cpps_project architecture

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

- Interactive diagram: https://gitdiagram.com/amogh1087/cpps_project
- Repository: https://github.com/amogh1087/cpps_project

## Overview

AI Resume Analyzer accepts a resume and target job description, extracts structured candidate information, evaluates the match with Gemini, and returns results for display and report download. The main flow is documented in the README and visible in the FastAPI route and service excerpts. The repository also contains a separate parser/evaluator implementation; its relationship to the web application is not established by the available evidence, so it is shown as a separate branch. Static UI internals are unsampled.

Main entry points: [`ai_resume_analyzer/backend/app/api/routes.py`](https://github.com/amogh1087/cpps_project/blob/main/ai_resume_analyzer/backend/app/api/routes.py) (Analyze and Download Routes), [`ai_resume_analyzer/backend/app/services/llm_service.py`](https://github.com/amogh1087/cpps_project/blob/main/ai_resume_analyzer/backend/app/services/llm_service.py) (Evaluation and DOCX Report), [`ai_resume_analyzer/backend/app/utils/file_handler.py`](https://github.com/amogh1087/cpps_project/blob/main/ai_resume_analyzer/backend/app/utils/file_handler.py) (Upload Validation and Cleanup), [`ai_resume_analyzer/backend/app/core/config.py`](https://github.com/amogh1087/cpps_project/blob/main/ai_resume_analyzer/backend/app/core/config.py) (Runtime Configuration)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["User Interface"]
  node_ui["Analyzer and Results UI"]
end

subgraph group_api["API and Uploads"]
  node_apiapp["FastAPI Application<br/>[main.py]"]
  node_routes["Analyze and Download Routes<br/>[routes.py]"]
  node_uploads["Upload Validation and Cleanup<br/>[file_handler.py]"]
  node_config["Runtime Configuration<br/>[config.py]"]
  node_uploadstore[("Temporary Upload Files")]
end

subgraph group_analysis["Resume Analysis"]
  node_parser["Resume Parsing<br/>[parser_service.py]"]
  node_llm["Evaluation and DOCX Report<br/>[llm_service.py]"]
  node_reportstore[("Generated Word Reports")]
end

subgraph group_standalone["Standalone Tools"]
  node_legacyparser["Standalone Resume Parser<br/>[parser.py]"]
  node_legacyevaluator["Standalone AI Evaluator<br/>[ai_evaluator.py]"]
end

node_user(("Resume Applicant"))
node_gemini{{"Google Gemini"}}

node_user -->|"uploads resume"| node_ui
node_ui -->|"sends analysis"| node_routes
node_apiapp -->|"registers routes"| node_routes
node_apiapp -->|"reads settings"| node_config
node_routes -->|"saves and cleans"| node_uploads
node_uploads -->|"reads upload path"| node_config
node_uploads -->|"writes and removes"| node_uploadstore
node_routes -->|"parses resume"| node_parser
node_routes -->|"requests evaluation"| node_llm
node_llm -->|"reads settings"| node_config
node_llm -->|"requests evaluation"| node_gemini
node_llm -->|"writes DOCX report"| node_reportstore
node_routes -->|"serves report download"| node_reportstore
node_user -.->|"uses separately"| node_legacyparser
node_legacyevaluator -->|"requests evaluation"| node_gemini

click node_ui "https://github.com/amogh1087/cpps_project/tree/main/ai_resume_analyzer/frontend"
click node_apiapp "https://github.com/amogh1087/cpps_project/blob/main/ai_resume_analyzer/backend/app/main.py"
click node_routes "https://github.com/amogh1087/cpps_project/blob/main/ai_resume_analyzer/backend/app/api/routes.py"
click node_uploads "https://github.com/amogh1087/cpps_project/blob/main/ai_resume_analyzer/backend/app/utils/file_handler.py"
click node_config "https://github.com/amogh1087/cpps_project/blob/main/ai_resume_analyzer/backend/app/core/config.py"
click node_parser "https://github.com/amogh1087/cpps_project/blob/main/ai_resume_analyzer/backend/app/services/parser_service.py"
click node_llm "https://github.com/amogh1087/cpps_project/blob/main/ai_resume_analyzer/backend/app/services/llm_service.py"
click node_legacyparser "https://github.com/amogh1087/cpps_project/blob/main/parser/parser.py"
click node_legacyevaluator "https://github.com/amogh1087/cpps_project/blob/main/parser/ai_evaluator.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_ui toneBlue
class node_apiapp,node_routes,node_uploads,node_config,node_uploadstore toneAmber
class node_parser,node_llm,node_reportstore toneMint
class node_legacyparser,node_legacyevaluator toneRose
class node_user,node_gemini toneIndigo
```

## Components

### User Interface

- [Analyzer and Results UI](https://github.com/amogh1087/cpps_project/tree/main/ai_resume_analyzer/frontend): `ai_resume_analyzer/frontend`

### API and Uploads

- [FastAPI Application](https://github.com/amogh1087/cpps_project/blob/main/ai_resume_analyzer/backend/app/main.py): `ai_resume_analyzer/backend/app/main.py`
- [Analyze and Download Routes](https://github.com/amogh1087/cpps_project/blob/main/ai_resume_analyzer/backend/app/api/routes.py): `ai_resume_analyzer/backend/app/api/routes.py`
- [Upload Validation and Cleanup](https://github.com/amogh1087/cpps_project/blob/main/ai_resume_analyzer/backend/app/utils/file_handler.py): `ai_resume_analyzer/backend/app/utils/file_handler.py`
- [Runtime Configuration](https://github.com/amogh1087/cpps_project/blob/main/ai_resume_analyzer/backend/app/core/config.py): `ai_resume_analyzer/backend/app/core/config.py`
- **Temporary Upload Files**

### Resume Analysis

- [Resume Parsing](https://github.com/amogh1087/cpps_project/blob/main/ai_resume_analyzer/backend/app/services/parser_service.py): `ai_resume_analyzer/backend/app/services/parser_service.py`
- [Evaluation and DOCX Report](https://github.com/amogh1087/cpps_project/blob/main/ai_resume_analyzer/backend/app/services/llm_service.py): `ai_resume_analyzer/backend/app/services/llm_service.py`
- **Generated Word Reports**

### Standalone Tools

- [Standalone Resume Parser](https://github.com/amogh1087/cpps_project/blob/main/parser/parser.py): `parser/parser.py`
- [Standalone AI Evaluator](https://github.com/amogh1087/cpps_project/blob/main/parser/ai_evaluator.py): `parser/ai_evaluator.py`

### Other components

- **Resume Applicant**
- **Google Gemini**

## Connections

- Resume Applicant → Analyzer and Results UI: uploads resume (evidence: `README.md`)
- Analyzer and Results UI → Analyze and Download Routes: sends analysis (evidence: `README.md`)
- FastAPI Application → Analyze and Download Routes: registers routes (evidence: `ai_resume_analyzer/backend/app/main.py`)
- FastAPI Application → Runtime Configuration: reads settings (evidence: `ai_resume_analyzer/backend/app/main.py`)
- Analyze and Download Routes → Upload Validation and Cleanup: saves and cleans (evidence: `ai_resume_analyzer/backend/app/api/routes.py`)
- Upload Validation and Cleanup → Runtime Configuration: reads upload path (evidence: `ai_resume_analyzer/backend/app/utils/file_handler.py`)
- Upload Validation and Cleanup → Temporary Upload Files: writes and removes (evidence: `ai_resume_analyzer/backend/app/utils/file_handler.py`)
- Analyze and Download Routes → Resume Parsing: parses resume (evidence: `ai_resume_analyzer/backend/app/api/routes.py`)
- Analyze and Download Routes → Evaluation and DOCX Report: requests evaluation (evidence: `ai_resume_analyzer/backend/app/api/routes.py`)
- Evaluation and DOCX Report → Runtime Configuration: reads settings (evidence: `ai_resume_analyzer/backend/app/services/llm_service.py`)
- Evaluation and DOCX Report → Google Gemini: requests evaluation (evidence: `ai_resume_analyzer/backend/app/services/llm_service.py`)
- Evaluation and DOCX Report → Generated Word Reports: writes DOCX report (evidence: `ai_resume_analyzer/backend/app/services/llm_service.py`)
- Analyze and Download Routes → Generated Word Reports: serves report download (evidence: `ai_resume_analyzer/backend/app/api/routes.py`)
- Resume Applicant → Standalone Resume Parser: uses separately
- Standalone AI Evaluator → Google Gemini: requests evaluation (evidence: `parser/ai_evaluator.py`)
