# yadvi-lab/resumex-v2 architecture

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

- Interactive diagram: https://gitdiagram.com/yadvi-lab/resumex-v2
- Repository: https://github.com/yadvi-lab/resumex-v2

## Overview

ResumeX is a Streamlit resume analyzer and job-matching platform. Users upload a PDF, choose a target role or job description, and receive skill-gap analysis, quality checks, recommendations, and a downloadable report. They can also browse jobs ranked against the resume and filter or save listings. Offline analysis is the default; Gemini is optional, with fallback behavior documented in the README. The sampled source supports the main module responsibilities and several calls; some page-level wiring is not shown in the excerpts, so uncertain links are omitted.

Main entry points: [`app.py`](https://github.com/yadvi-lab/resumex-v2/blob/main/app.py) (Streamlit app), [`ai_engine.py`](https://github.com/yadvi-lab/resumex-v2/blob/main/ai_engine.py) (Gemini analysis), [`jobs_utils.py`](https://github.com/yadvi-lab/resumex-v2/blob/main/jobs_utils.py) (Job validation and filters), [`ml_matcher.py`](https://github.com/yadvi-lab/resumex-v2/blob/main/ml_matcher.py) (Offline analysis)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["User experience"]
  node_app["Streamlit app<br/>[app.py]"]
  node_session["Session state<br/>[app.py]"]
  node_ui["UI builders<br/>[ui.py]"]
end

subgraph group_resume["Resume analysis"]
  node_pdf["PDF text extraction<br/>[pdf_parser.py]"]
  node_offline["Offline analysis<br/>[ml_matcher.py]"]
  node_quality["Quality and roadmap<br/>[ml_matcher.py]"]
  node_gemini["Gemini analysis<br/>[ai_engine.py]"]
end

subgraph group_jobs["Job discovery"]
  node_job_utils["Job validation and filters<br/>[jobs_utils.py]"]
  node_ranking["Job ranking<br/>[ml_matcher.py]"]
end

subgraph group_data["Job data"]
  node_catalog[("Job catalog<br/>[jobs.csv]")]
end

node_user(("Resume seeker"))
node_gemini_service{{"Google Gemini API"}}

node_user -->|"uses"| node_app
node_app -->|"stores session"| node_session
node_app -->|"extracts text"| node_pdf
node_app -->|"runs offline"| node_offline
node_app -.->|"optionally analyzes"| node_gemini
node_gemini -->|"requests analysis"| node_gemini_service
node_gemini -->|"checks skills"| node_offline
node_offline -->|"produces checks"| node_quality
node_app -->|"loads and filters"| node_job_utils
node_job_utils -->|"loads listings"| node_catalog
node_job_utils -->|"ranks listings"| node_ranking
node_app -->|"requests recommendations"| node_ranking
node_app -->|"renders pages"| node_ui

click node_app "https://github.com/yadvi-lab/resumex-v2/blob/main/app.py"
click node_session "https://github.com/yadvi-lab/resumex-v2/blob/main/app.py"
click node_ui "https://github.com/yadvi-lab/resumex-v2/blob/main/ui.py"
click node_pdf "https://github.com/yadvi-lab/resumex-v2/blob/main/pdf_parser.py"
click node_offline "https://github.com/yadvi-lab/resumex-v2/blob/main/ml_matcher.py"
click node_quality "https://github.com/yadvi-lab/resumex-v2/blob/main/ml_matcher.py"
click node_gemini "https://github.com/yadvi-lab/resumex-v2/blob/main/ai_engine.py"
click node_job_utils "https://github.com/yadvi-lab/resumex-v2/blob/main/jobs_utils.py"
click node_ranking "https://github.com/yadvi-lab/resumex-v2/blob/main/ml_matcher.py"
click node_catalog "https://github.com/yadvi-lab/resumex-v2/blob/main/jobs.csv"

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_app,node_session,node_ui toneBlue
class node_pdf,node_offline,node_quality,node_gemini toneAmber
class node_job_utils,node_ranking,node_gemini_service toneMint
class node_catalog toneRose
class node_user toneIndigo
```

## Components

### User experience

- [Streamlit app](https://github.com/yadvi-lab/resumex-v2/blob/main/app.py): `app.py`
- [Session state](https://github.com/yadvi-lab/resumex-v2/blob/main/app.py): `app.py`
- [UI builders](https://github.com/yadvi-lab/resumex-v2/blob/main/ui.py): `ui.py`

### Resume analysis

- [PDF text extraction](https://github.com/yadvi-lab/resumex-v2/blob/main/pdf_parser.py): `pdf_parser.py`
- [Offline analysis](https://github.com/yadvi-lab/resumex-v2/blob/main/ml_matcher.py): `ml_matcher.py`
- [Quality and roadmap](https://github.com/yadvi-lab/resumex-v2/blob/main/ml_matcher.py): `ml_matcher.py`
- [Gemini analysis](https://github.com/yadvi-lab/resumex-v2/blob/main/ai_engine.py): `ai_engine.py`

### Job discovery

- [Job validation and filters](https://github.com/yadvi-lab/resumex-v2/blob/main/jobs_utils.py): `jobs_utils.py`
- [Job ranking](https://github.com/yadvi-lab/resumex-v2/blob/main/ml_matcher.py): `ml_matcher.py`

### Job data

- [Job catalog](https://github.com/yadvi-lab/resumex-v2/blob/main/jobs.csv): `jobs.csv`

### Other components

- **Resume seeker**
- **Google Gemini API**

## Connections

- Resume seeker → Streamlit app: uses (evidence: `README.md`)
- Streamlit app → Session state: stores session (evidence: `app.py`)
- Streamlit app → PDF text extraction: extracts text (evidence: `app.py`)
- Streamlit app → Offline analysis: runs offline (evidence: `README.md`)
- Streamlit app → Gemini analysis: optionally analyzes (evidence: `README.md`)
- Gemini analysis → Google Gemini API: requests analysis (evidence: `ai_engine.py`)
- Gemini analysis → Offline analysis: checks skills (evidence: `ai_engine.py`)
- Offline analysis → Quality and roadmap: produces checks (evidence: `README.md`)
- Streamlit app → Job validation and filters: loads and filters (evidence: `app.py`)
- Job validation and filters → Job catalog: loads listings (evidence: `jobs_utils.py`)
- Job validation and filters → Job ranking: ranks listings (evidence: `jobs_utils.py`)
- Streamlit app → Job ranking: requests recommendations (evidence: `README.md`)
- Streamlit app → UI builders: renders pages (evidence: `app.py`)
