# vinaykul052-cloud/resume-matcher architecture

> Architecture diagram of the GitHub repository vinaykul052-cloud/resume-matcher, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-04). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/vinaykul052-cloud/resume-matcher
- Repository: https://github.com/vinaykul052-cloud/resume-matcher

## Overview

This Flask application lets a recruiter submit a job description and multiple PDF/DOCX resumes, then displays candidates ranked by a hybrid of skill overlap and TF-IDF text similarity. The workflow covers upload validation, text extraction, NLP analysis, scoring, persistence, and result rendering. The source excerpts show the main call relationships; capabilities such as the SQLite schema and upload safeguards are documented or visible in the sampled files.

Main entry points: [`app.py`](https://github.com/vinaykul052-cloud/resume-matcher/blob/main/app.py) (Flask routes), [`matcher.py`](https://github.com/vinaykul052-cloud/resume-matcher/blob/main/matcher.py) (Hybrid ranking), [`nlp_utils.py`](https://github.com/vinaykul052-cloud/resume-matcher/blob/main/nlp_utils.py) (Skill extraction), [`database.py`](https://github.com/vinaykul052-cloud/resume-matcher/blob/main/database.py) (Job and candidate storage)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web workflow"]
  node_form["Job and resumes form<br/>[index.html]"]
  node_routes["Flask routes<br/>[app.py]"]
  node_upload["Upload validation<br/>[app.py]"]
  node_results["Ranked results view<br/>[index.html]"]
end

subgraph group_analysis["Resume analysis"]
  node_extract["Resume extraction<br/>[extractor.py]"]
  node_preprocess["Text preprocessing<br/>[nlp_utils.py]"]
  node_skills["Skill extraction<br/>[nlp_utils.py]"]
  node_skill_data["Skills dictionary<br/>[skills.json]"]
  node_ranking["Hybrid ranking<br/>[matcher.py]"]
end

subgraph group_storage["Results storage"]
  node_persistence["Job and candidate storage<br/>[database.py]"]
  node_sqlite[("SQLite database<br/>[database.py]")]
end

node_recruiter(("Recruiter"))

node_recruiter -->|"submits resumes"| node_form
node_form -->|"posts job"| node_routes
node_routes -->|"validates files"| node_upload
node_routes -->|"extracts text"| node_extract
node_routes -->|"ranks resumes"| node_ranking
node_ranking -->|"preprocesses text"| node_preprocess
node_ranking -->|"extracts skills"| node_skills
node_skills -->|"loads vocabulary"| node_skill_data
node_routes -->|"extracts stored skills"| node_skills
node_routes -->|"saves job and candidates"| node_persistence
node_routes -->|"loads ranked candidates"| node_persistence
node_persistence -->|"reads and writes"| node_sqlite
node_routes -->|"renders rankings"| node_results
node_results -->|"shows scores and skills"| node_recruiter

click node_form "https://github.com/vinaykul052-cloud/resume-matcher/blob/main/templates/index.html"
click node_routes "https://github.com/vinaykul052-cloud/resume-matcher/blob/main/app.py"
click node_upload "https://github.com/vinaykul052-cloud/resume-matcher/blob/main/app.py"
click node_extract "https://github.com/vinaykul052-cloud/resume-matcher/blob/main/extractor.py"
click node_preprocess "https://github.com/vinaykul052-cloud/resume-matcher/blob/main/nlp_utils.py"
click node_skills "https://github.com/vinaykul052-cloud/resume-matcher/blob/main/nlp_utils.py"
click node_skill_data "https://github.com/vinaykul052-cloud/resume-matcher/blob/main/skills.json"
click node_ranking "https://github.com/vinaykul052-cloud/resume-matcher/blob/main/matcher.py"
click node_persistence "https://github.com/vinaykul052-cloud/resume-matcher/blob/main/database.py"
click node_sqlite "https://github.com/vinaykul052-cloud/resume-matcher/blob/main/database.py"
click node_results "https://github.com/vinaykul052-cloud/resume-matcher/blob/main/templates/index.html"

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_form,node_routes,node_upload,node_results toneBlue
class node_extract,node_preprocess,node_skills,node_skill_data,node_ranking toneAmber
class node_persistence,node_sqlite toneMint
class node_recruiter toneIndigo
```

## Components

### Web workflow

- [Job and resumes form](https://github.com/vinaykul052-cloud/resume-matcher/blob/main/templates/index.html): `templates/index.html`
- [Flask routes](https://github.com/vinaykul052-cloud/resume-matcher/blob/main/app.py): `app.py`
- [Upload validation](https://github.com/vinaykul052-cloud/resume-matcher/blob/main/app.py): `app.py`
- [Ranked results view](https://github.com/vinaykul052-cloud/resume-matcher/blob/main/templates/index.html): `templates/index.html`

### Resume analysis

- [Resume extraction](https://github.com/vinaykul052-cloud/resume-matcher/blob/main/extractor.py): `extractor.py`
- [Text preprocessing](https://github.com/vinaykul052-cloud/resume-matcher/blob/main/nlp_utils.py): `nlp_utils.py`
- [Skill extraction](https://github.com/vinaykul052-cloud/resume-matcher/blob/main/nlp_utils.py): `nlp_utils.py`
- [Skills dictionary](https://github.com/vinaykul052-cloud/resume-matcher/blob/main/skills.json): `skills.json`
- [Hybrid ranking](https://github.com/vinaykul052-cloud/resume-matcher/blob/main/matcher.py): `matcher.py`

### Results storage

- [Job and candidate storage](https://github.com/vinaykul052-cloud/resume-matcher/blob/main/database.py): `database.py`
- [SQLite database](https://github.com/vinaykul052-cloud/resume-matcher/blob/main/database.py): `database.py`

### Other components

- **Recruiter**

## Connections

- Recruiter → Job and resumes form: submits resumes (evidence: `README.md`)
- Job and resumes form → Flask routes: posts job (evidence: `README.md`)
- Flask routes → Upload validation: validates files (evidence: `app.py`)
- Flask routes → Resume extraction: extracts text (evidence: `app.py`)
- Flask routes → Hybrid ranking: ranks resumes (evidence: `app.py`)
- Hybrid ranking → Text preprocessing: preprocesses text (evidence: `matcher.py`)
- Hybrid ranking → Skill extraction: extracts skills (evidence: `matcher.py`)
- Skill extraction → Skills dictionary: loads vocabulary (evidence: `nlp_utils.py`)
- Flask routes → Skill extraction: extracts stored skills (evidence: `app.py`)
- Flask routes → Job and candidate storage: saves job and candidates (evidence: `app.py`)
- Flask routes → Job and candidate storage: loads ranked candidates (evidence: `app.py`)
- Job and candidate storage → SQLite database: reads and writes (evidence: `database.py`)
- Flask routes → Ranked results view: renders rankings (evidence: `app.py`)
- Ranked results view → Recruiter: shows scores and skills (evidence: `README.md`)
