# ankith-r7/ai-resume-analyzer architecture

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

- Interactive diagram: https://gitdiagram.com/ankith-r7/ai-resume-analyzer
- Repository: https://github.com/ankith-r7/ai-resume-analyzer

## Overview

This repository provides two resume-analysis entry points: an interactive Streamlit app and a command-line tool. Both accept a PDF and offer Gemini-generated resume insights; the web app also includes LinkedIn job scraping. The README documents analysis categories and scraping capabilities beyond the sampled excerpts. Edges are limited to visible calls and documented integrations; some internal web-app and scraper dispatch details were not shown.

Main entry points: [`app.py`](https://github.com/ankith-r7/ai-resume-analyzer/blob/main/app.py) (Streamlit app), [`cli_analyzer.py`](https://github.com/ankith-r7/ai-resume-analyzer/blob/main/cli_analyzer.py) (CLI analyzer)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["User Interfaces"]
  node_web["Streamlit app<br/>[app.py]"]
  node_cli["CLI analyzer<br/>[cli_analyzer.py]"]
end

subgraph group_resume["Resume Analysis"]
  node_web_pdf["PDF extraction<br/>[app.py]"]
  node_web_analysis["Resume analysis<br/>[app.py]"]
  node_cli_pdf["PDF extraction<br/>[cli_analyzer.py]"]
  node_cli_analysis["Resume analysis<br/>[cli_analyzer.py]"]
  node_web_results["Analysis results<br/>[app.py]"]
  node_cli_results["Report output<br/>[cli_analyzer.py]"]
end

subgraph group_jobs["Job Search"]
  node_job_inputs["Search inputs<br/>[app.py]"]
  node_linkedin["LinkedIn scraper<br/>[app.py]"]
  node_job_results["Job listings<br/>[app.py]"]
end

node_user(("Job seeker"))
node_gemini["Gemini API"]
node_linkedin_site["LinkedIn"]

node_user -->|"uses"| node_web
node_user -->|"runs"| node_cli
node_web -->|"extracts PDF"| node_web_pdf
node_web_pdf -.->|"provides text"| node_web_analysis
node_web_analysis -.->|"requests analysis"| node_gemini
node_web -.->|"shows analysis"| node_web_results
node_cli -->|"extracts PDF"| node_cli_pdf
node_cli -->|"runs tasks"| node_cli_analysis
node_cli_analysis -->|"requests analysis"| node_gemini
node_cli -->|"prints or saves"| node_cli_results
node_web -->|"collects criteria"| node_job_inputs
node_web -.->|"starts search"| node_linkedin
node_linkedin -.->|"scrapes jobs"| node_linkedin_site
node_linkedin -.->|"returns listings"| node_job_results

click node_web "https://github.com/ankith-r7/ai-resume-analyzer/blob/main/app.py"
click node_cli "https://github.com/ankith-r7/ai-resume-analyzer/blob/main/cli_analyzer.py"
click node_web_pdf "https://github.com/ankith-r7/ai-resume-analyzer/blob/main/app.py"
click node_web_analysis "https://github.com/ankith-r7/ai-resume-analyzer/blob/main/app.py"
click node_cli_pdf "https://github.com/ankith-r7/ai-resume-analyzer/blob/main/cli_analyzer.py"
click node_cli_analysis "https://github.com/ankith-r7/ai-resume-analyzer/blob/main/cli_analyzer.py"
click node_web_results "https://github.com/ankith-r7/ai-resume-analyzer/blob/main/app.py"
click node_cli_results "https://github.com/ankith-r7/ai-resume-analyzer/blob/main/cli_analyzer.py"
click node_job_inputs "https://github.com/ankith-r7/ai-resume-analyzer/blob/main/app.py"
click node_linkedin "https://github.com/ankith-r7/ai-resume-analyzer/blob/main/app.py"
click node_job_results "https://github.com/ankith-r7/ai-resume-analyzer/blob/main/app.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_cli toneBlue
class node_web_pdf,node_web_analysis,node_cli_pdf,node_cli_analysis,node_web_results,node_cli_results toneAmber
class node_job_inputs,node_linkedin,node_job_results,node_gemini toneMint
class node_user,node_linkedin_site toneIndigo
```

## Components

### User Interfaces

- [Streamlit app](https://github.com/ankith-r7/ai-resume-analyzer/blob/main/app.py): `app.py`
- [CLI analyzer](https://github.com/ankith-r7/ai-resume-analyzer/blob/main/cli_analyzer.py): `cli_analyzer.py`

### Resume Analysis

- [PDF extraction](https://github.com/ankith-r7/ai-resume-analyzer/blob/main/app.py): `app.py`
- [Resume analysis](https://github.com/ankith-r7/ai-resume-analyzer/blob/main/app.py): `app.py`
- [PDF extraction](https://github.com/ankith-r7/ai-resume-analyzer/blob/main/cli_analyzer.py): `cli_analyzer.py`
- [Resume analysis](https://github.com/ankith-r7/ai-resume-analyzer/blob/main/cli_analyzer.py): `cli_analyzer.py`
- [Analysis results](https://github.com/ankith-r7/ai-resume-analyzer/blob/main/app.py): `app.py`
- [Report output](https://github.com/ankith-r7/ai-resume-analyzer/blob/main/cli_analyzer.py): `cli_analyzer.py`

### Job Search

- [Search inputs](https://github.com/ankith-r7/ai-resume-analyzer/blob/main/app.py): `app.py`
- [LinkedIn scraper](https://github.com/ankith-r7/ai-resume-analyzer/blob/main/app.py): `app.py`
- [Job listings](https://github.com/ankith-r7/ai-resume-analyzer/blob/main/app.py): `app.py`

### Other components

- **Job seeker**
- **Gemini API**
- **LinkedIn**

## Connections

- Job seeker → Streamlit app: uses (evidence: `README.md`)
- Job seeker → CLI analyzer: runs (evidence: `README.md`)
- Streamlit app → PDF extraction: extracts PDF (evidence: `app.py`)
- PDF extraction → Resume analysis: provides text (evidence: `app.py`)
- Resume analysis → Gemini API: requests analysis (evidence: `README.md`)
- Streamlit app → Analysis results: shows analysis (evidence: `app.py`)
- CLI analyzer → PDF extraction: extracts PDF (evidence: `cli_analyzer.py`)
- CLI analyzer → Resume analysis: runs tasks (evidence: `cli_analyzer.py`)
- Resume analysis → Gemini API: requests analysis (evidence: `cli_analyzer.py`)
- CLI analyzer → Report output: prints or saves (evidence: `cli_analyzer.py`)
- Streamlit app → Search inputs: collects criteria (evidence: `app.py`)
- Streamlit app → LinkedIn scraper: starts search (evidence: `app.py`)
- LinkedIn scraper → LinkedIn: scrapes jobs (evidence: `README.md`)
- LinkedIn scraper → Job listings: returns listings (evidence: `app.py`)
