# kartiksharma0609/resume-optimizer architecture

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

- Interactive diagram: https://gitdiagram.com/kartiksharma0609/resume-optimizer
- Repository: https://github.com/kartiksharma0609/resume-optimizer

## Overview

AI Career Architect is a Streamlit app that takes a PDF resume and a job description, extracts resume text, then uses Gemini to produce a match analysis and tailored cover letter. The main stages and their interactions are implemented together in app.py; the graph separates them by responsibility, not by separate modules. The README also describes PDF security and deployment, but the Docker setup is not part of the runtime workflow shown here. Source evidence is limited to the README and the app.py excerpt.

Main entry points: [`app.py`](https://github.com/kartiksharma0609/resume-optimizer/blob/main/app.py) (Streamlit UI)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interface["User Interface"]
  node_streamlit_ui["Streamlit UI<br/>[app.py]"]
  node_input_validation["Upload Checks<br/>[app.py]"]
  node_analysis_result["Analysis Output<br/>[app.py]"]
  node_letter_result["Letter Output<br/>[app.py]"]
end

subgraph group_processing["Resume Processing"]
  node_pdf_parser["PDF Text Extraction<br/>[app.py]"]
  node_resume_text["Resume Text<br/>[app.py]"]
end

subgraph group_generation["AI Generation"]
  node_analysis_prompt["Gap Analysis<br/>[app.py]"]
  node_cover_prompt["Cover Letter<br/>[app.py]"]
end

node_candidate(("Candidate"))
node_gemini{{"Google Gemini"}}

node_candidate -->|"provides inputs"| node_streamlit_ui
node_streamlit_ui -->|"checks upload"| node_input_validation
node_streamlit_ui -->|"extracts text"| node_pdf_parser
node_pdf_parser -->|"returns text"| node_resume_text
node_streamlit_ui -->|"invokes analysis"| node_analysis_prompt
node_streamlit_ui -->|"invokes drafting"| node_cover_prompt
node_analysis_prompt -->|"calls model"| node_gemini
node_cover_prompt -->|"calls model"| node_gemini
node_streamlit_ui -->|"renders analysis"| node_analysis_result
node_streamlit_ui -->|"renders letter"| node_letter_result

click node_streamlit_ui "https://github.com/kartiksharma0609/resume-optimizer/blob/main/app.py"
click node_input_validation "https://github.com/kartiksharma0609/resume-optimizer/blob/main/app.py"
click node_pdf_parser "https://github.com/kartiksharma0609/resume-optimizer/blob/main/app.py"
click node_resume_text "https://github.com/kartiksharma0609/resume-optimizer/blob/main/app.py"
click node_analysis_prompt "https://github.com/kartiksharma0609/resume-optimizer/blob/main/app.py"
click node_cover_prompt "https://github.com/kartiksharma0609/resume-optimizer/blob/main/app.py"
click node_analysis_result "https://github.com/kartiksharma0609/resume-optimizer/blob/main/app.py"
click node_letter_result "https://github.com/kartiksharma0609/resume-optimizer/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_streamlit_ui,node_input_validation,node_analysis_result,node_letter_result toneBlue
class node_pdf_parser,node_resume_text toneAmber
class node_analysis_prompt,node_cover_prompt toneMint
class node_candidate,node_gemini toneIndigo
```

## Components

### User Interface

- [Streamlit UI](https://github.com/kartiksharma0609/resume-optimizer/blob/main/app.py): `app.py`
- [Upload Checks](https://github.com/kartiksharma0609/resume-optimizer/blob/main/app.py): `app.py`
- [Analysis Output](https://github.com/kartiksharma0609/resume-optimizer/blob/main/app.py): `app.py`
- [Letter Output](https://github.com/kartiksharma0609/resume-optimizer/blob/main/app.py): `app.py`

### Resume Processing

- [PDF Text Extraction](https://github.com/kartiksharma0609/resume-optimizer/blob/main/app.py): `app.py`
- [Resume Text](https://github.com/kartiksharma0609/resume-optimizer/blob/main/app.py): `app.py`

### AI Generation

- [Gap Analysis](https://github.com/kartiksharma0609/resume-optimizer/blob/main/app.py): `app.py`
- [Cover Letter](https://github.com/kartiksharma0609/resume-optimizer/blob/main/app.py): `app.py`

### Other components

- **Candidate**
- **Google Gemini**

## Connections

- Candidate → Streamlit UI: provides inputs (evidence: `app.py`)
- Streamlit UI → Upload Checks: checks upload (evidence: `app.py`)
- Streamlit UI → PDF Text Extraction: extracts text (evidence: `app.py`)
- PDF Text Extraction → Resume Text: returns text (evidence: `app.py`)
- Streamlit UI → Gap Analysis: invokes analysis (evidence: `app.py`)
- Streamlit UI → Cover Letter: invokes drafting (evidence: `app.py`)
- Gap Analysis → Google Gemini: calls model (evidence: `app.py`)
- Cover Letter → Google Gemini: calls model (evidence: `app.py`)
- Streamlit UI → Analysis Output: renders analysis (evidence: `app.py`)
- Streamlit UI → Letter Output: renders letter (evidence: `app.py`)
