# manmathan6305/ai_resume_builder architecture

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

- Interactive diagram: https://gitdiagram.com/manmathan6305/ai_resume_builder
- Repository: https://github.com/manmathan6305/ai_resume_builder

## Overview

AI Resume Builder supports two principal user journeys: authenticated, guided resume creation with live preview and PDF export, and resume-to-job ATS analysis with keyword gaps and suggestions. The frontend holds resume data in React context; FastAPI provides AI enhancement, file extraction, analysis, optimization, and PDF-generation endpoints. Backend internals are represented at the documented API level because the backend source was indexed as read but no code excerpt was provided.

Main entry points: [`web/src/App.tsx`](https://github.com/manmathan6305/ai_resume_builder/blob/main/web/src/App.tsx) (Application routing), [`web/src/pages/preview/Preview.tsx`](https://github.com/manmathan6305/ai_resume_builder/blob/main/web/src/pages/preview/Preview.tsx) (Preview and export page), [`backend/main.py`](https://github.com/manmathan6305/ai_resume_builder/blob/main/backend/main.py) (Resume API), [`web/src/pages/ATSAnalyzer.tsx`](https://github.com/manmathan6305/ai_resume_builder/blob/main/web/src/pages/ATSAnalyzer.tsx) (ATS analyzer page)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["Resume experience"]
  node_home["Home page<br/>[Home.tsx]"]
  node_resume_state["Resume data state<br/>[ResumeContext.tsx]"]
  node_form_steps["Nine guided form steps"]
  node_text_enhance_ui["AI text enhancement UI<br/>[SmartTextArea.tsx]"]
end

subgraph group_identity["Identity and state"]
  node_auth["Authentication page<br/>[Auth.tsx]"]
  node_auth_state["Auth state<br/>[AuthContext.tsx]"]
  node_firebase_auth["Firebase Auth<br/>[firebase.ts]"]
end

subgraph group_analysis["ATS and AI services"]
  node_ats_ui["ATS analyzer page<br/>[ATSAnalyzer.tsx]"]
  node_api["Resume API<br/>[main.py]"]
  node_enhance["Text enhancement endpoint<br/>[main.py]"]
  node_extract["Resume text extraction<br/>[main.py]"]
  node_analyze["ATS scoring and keywords<br/>[main.py]"]
  node_optimize["ATS content optimization<br/>[main.py]"]
end

subgraph group_delivery["Preview and export"]
  node_preview_page["Preview and export page<br/>[Preview.tsx]"]
  node_live_preview["Live resume preview<br/>[LivePreview.tsx]"]
  node_resume_text["Resume text builder<br/>[buildResumePDF.ts]"]
  node_pdf_renderer["Browser PDF renderer<br/>[ResumePDF.tsx]"]
  node_pdf_service["PDF generation endpoint<br/>[main.py]"]
end

node_user(("Resume builder user"))
node_app["Application routing<br/>[App.tsx]"]
node_groq{{"Groq LLaMA service"}}
node_resume_file["Uploaded resume file"]

node_user -->|"uses"| node_app
node_app -->|"routes to"| node_home
node_app -->|"routes to"| node_auth
node_app -->|"routes to"| node_form_steps
node_app -->|"routes to"| node_preview_page
node_app -->|"routes to"| node_ats_ui
node_app -->|"provides state"| node_resume_state
node_app -->|"provides state"| node_auth_state
node_auth -->|"authenticates with"| node_firebase_auth
node_auth -->|"reads user state"| node_auth_state
node_auth_state -->|"observes auth"| node_firebase_auth
node_user -->|"enters resume data"| node_form_steps
node_form_steps -->|"updates data"| node_resume_state
node_text_enhance_ui -->|"requests enhancement"| node_enhance
node_enhance -->|"requests AI rewrite"| node_groq
node_preview_page -->|"reads resume data"| node_resume_state
node_preview_page -->|"renders"| node_live_preview
node_live_preview -->|"reads resume data"| node_resume_state
node_preview_page -->|"builds ATS text"| node_resume_text
node_preview_page -->|"exports resume"| node_pdf_renderer
node_preview_page -->|"requests PDF"| node_pdf_service
node_user -->|"uploads or pastes"| node_resume_file
node_resume_file -->|"submits file"| node_extract
node_ats_ui -->|"requests extraction"| node_extract
node_ats_ui -->|"submits resume and job"| node_analyze
node_analyze -->|"requests scoring"| node_groq
node_ats_ui -->|"requests optimization"| node_optimize
node_optimize -->|"requests AI improvements"| node_groq
node_api -->|"serves endpoint"| node_enhance
node_api -->|"serves endpoint"| node_extract
node_api -->|"serves endpoint"| node_analyze
node_api -->|"serves endpoint"| node_optimize
node_api -->|"serves endpoint"| node_pdf_service

click node_app "https://github.com/manmathan6305/ai_resume_builder/blob/main/web/src/App.tsx"
click node_home "https://github.com/manmathan6305/ai_resume_builder/blob/main/web/src/pages/Home.tsx"
click node_auth "https://github.com/manmathan6305/ai_resume_builder/blob/main/web/src/pages/Auth.tsx"
click node_auth_state "https://github.com/manmathan6305/ai_resume_builder/blob/main/web/src/context/AuthContext.tsx"
click node_firebase_auth "https://github.com/manmathan6305/ai_resume_builder/blob/main/web/src/firebase.ts"
click node_resume_state "https://github.com/manmathan6305/ai_resume_builder/blob/main/web/src/context/ResumeContext.tsx"
click node_form_steps "https://github.com/manmathan6305/ai_resume_builder/tree/main/web/src/pages/formSteps"
click node_text_enhance_ui "https://github.com/manmathan6305/ai_resume_builder/blob/main/web/src/components/SmartTextArea.tsx"
click node_preview_page "https://github.com/manmathan6305/ai_resume_builder/blob/main/web/src/pages/preview/Preview.tsx"
click node_live_preview "https://github.com/manmathan6305/ai_resume_builder/blob/main/web/src/components/LivePreview.tsx"
click node_resume_text "https://github.com/manmathan6305/ai_resume_builder/blob/main/web/src/lib/buildResumePDF.ts"
click node_pdf_renderer "https://github.com/manmathan6305/ai_resume_builder/blob/main/web/src/lib/ResumePDF.tsx"
click node_ats_ui "https://github.com/manmathan6305/ai_resume_builder/blob/main/web/src/pages/ATSAnalyzer.tsx"
click node_api "https://github.com/manmathan6305/ai_resume_builder/blob/main/backend/main.py"
click node_enhance "https://github.com/manmathan6305/ai_resume_builder/blob/main/backend/main.py"
click node_extract "https://github.com/manmathan6305/ai_resume_builder/blob/main/backend/main.py"
click node_analyze "https://github.com/manmathan6305/ai_resume_builder/blob/main/backend/main.py"
click node_optimize "https://github.com/manmathan6305/ai_resume_builder/blob/main/backend/main.py"
click node_pdf_service "https://github.com/manmathan6305/ai_resume_builder/blob/main/backend/main.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_home,node_resume_state,node_form_steps,node_text_enhance_ui,node_user toneBlue
class node_auth,node_auth_state,node_firebase_auth toneAmber
class node_ats_ui,node_api,node_enhance,node_extract,node_analyze,node_optimize toneMint
class node_preview_page,node_live_preview,node_resume_text,node_pdf_renderer,node_pdf_service toneRose
class node_app toneTeal
class node_groq,node_resume_file toneIndigo
```

## Components

### Resume experience

- [Home page](https://github.com/manmathan6305/ai_resume_builder/blob/main/web/src/pages/Home.tsx): `web/src/pages/Home.tsx`
- [Resume data state](https://github.com/manmathan6305/ai_resume_builder/blob/main/web/src/context/ResumeContext.tsx): `web/src/context/ResumeContext.tsx`
- [Nine guided form steps](https://github.com/manmathan6305/ai_resume_builder/tree/main/web/src/pages/formSteps): `web/src/pages/formSteps`
- [AI text enhancement UI](https://github.com/manmathan6305/ai_resume_builder/blob/main/web/src/components/SmartTextArea.tsx): `web/src/components/SmartTextArea.tsx`

### Identity and state

- [Authentication page](https://github.com/manmathan6305/ai_resume_builder/blob/main/web/src/pages/Auth.tsx): `web/src/pages/Auth.tsx`
- [Auth state](https://github.com/manmathan6305/ai_resume_builder/blob/main/web/src/context/AuthContext.tsx): `web/src/context/AuthContext.tsx`
- [Firebase Auth](https://github.com/manmathan6305/ai_resume_builder/blob/main/web/src/firebase.ts): `web/src/firebase.ts`

### ATS and AI services

- [ATS analyzer page](https://github.com/manmathan6305/ai_resume_builder/blob/main/web/src/pages/ATSAnalyzer.tsx): `web/src/pages/ATSAnalyzer.tsx`
- [Resume API](https://github.com/manmathan6305/ai_resume_builder/blob/main/backend/main.py): `backend/main.py`
- [Text enhancement endpoint](https://github.com/manmathan6305/ai_resume_builder/blob/main/backend/main.py): `backend/main.py`
- [Resume text extraction](https://github.com/manmathan6305/ai_resume_builder/blob/main/backend/main.py): `backend/main.py`
- [ATS scoring and keywords](https://github.com/manmathan6305/ai_resume_builder/blob/main/backend/main.py): `backend/main.py`
- [ATS content optimization](https://github.com/manmathan6305/ai_resume_builder/blob/main/backend/main.py): `backend/main.py`

### Preview and export

- [Preview and export page](https://github.com/manmathan6305/ai_resume_builder/blob/main/web/src/pages/preview/Preview.tsx): `web/src/pages/preview/Preview.tsx`
- [Live resume preview](https://github.com/manmathan6305/ai_resume_builder/blob/main/web/src/components/LivePreview.tsx): `web/src/components/LivePreview.tsx`
- [Resume text builder](https://github.com/manmathan6305/ai_resume_builder/blob/main/web/src/lib/buildResumePDF.ts): `web/src/lib/buildResumePDF.ts`
- [Browser PDF renderer](https://github.com/manmathan6305/ai_resume_builder/blob/main/web/src/lib/ResumePDF.tsx): `web/src/lib/ResumePDF.tsx`
- [PDF generation endpoint](https://github.com/manmathan6305/ai_resume_builder/blob/main/backend/main.py): `backend/main.py`

### Other components

- **Resume builder user**
- [Application routing](https://github.com/manmathan6305/ai_resume_builder/blob/main/web/src/App.tsx): `web/src/App.tsx`
- **Groq LLaMA service**
- **Uploaded resume file**

## Connections

- Resume builder user → Application routing: uses (evidence: `README.md`)
- Application routing → Home page: routes to (evidence: `web/src/App.tsx`)
- Application routing → Authentication page: routes to (evidence: `web/src/App.tsx`)
- Application routing → Nine guided form steps: routes to (evidence: `web/src/App.tsx`)
- Application routing → Preview and export page: routes to (evidence: `web/src/App.tsx`)
- Application routing → ATS analyzer page: routes to (evidence: `web/src/App.tsx`)
- Application routing → Resume data state: provides state (evidence: `web/src/App.tsx`)
- Application routing → Auth state: provides state (evidence: `web/src/App.tsx`)
- Authentication page → Firebase Auth: authenticates with (evidence: `web/src/pages/Auth.tsx`)
- Authentication page → Auth state: reads user state (evidence: `web/src/pages/Auth.tsx`)
- Auth state → Firebase Auth: observes auth (evidence: `web/src/context/AuthContext.tsx`)
- Resume builder user → Nine guided form steps: enters resume data (evidence: `README.md`)
- Nine guided form steps → Resume data state: updates data (evidence: `web/src/pages/formSteps/Experience.tsx`)
- AI text enhancement UI → Text enhancement endpoint: requests enhancement (evidence: `README.md`)
- Text enhancement endpoint → Groq LLaMA service: requests AI rewrite (evidence: `README.md`)
- Preview and export page → Resume data state: reads resume data (evidence: `web/src/pages/preview/Preview.tsx`)
- Preview and export page → Live resume preview: renders (evidence: `web/src/pages/preview/Preview.tsx`)
- Live resume preview → Resume data state: reads resume data (evidence: `web/src/components/LivePreview.tsx`)
- Preview and export page → Resume text builder: builds ATS text (evidence: `web/src/pages/preview/Preview.tsx`)
- Preview and export page → Browser PDF renderer: exports resume (evidence: `web/src/pages/preview/Preview.tsx`)
- Preview and export page → PDF generation endpoint: requests PDF (evidence: `README.md`)
- Resume builder user → Uploaded resume file: uploads or pastes (evidence: `README.md`)
- Uploaded resume file → Resume text extraction: submits file (evidence: `README.md`)
- ATS analyzer page → Resume text extraction: requests extraction (evidence: `README.md`)
- ATS analyzer page → ATS scoring and keywords: submits resume and job (evidence: `README.md`)
- ATS scoring and keywords → Groq LLaMA service: requests scoring (evidence: `README.md`)
- ATS analyzer page → ATS content optimization: requests optimization (evidence: `README.md`)
- ATS content optimization → Groq LLaMA service: requests AI improvements (evidence: `README.md`)
- Resume API → Text enhancement endpoint: serves endpoint (evidence: `README.md`)
- Resume API → Resume text extraction: serves endpoint (evidence: `README.md`)
- Resume API → ATS scoring and keywords: serves endpoint (evidence: `README.md`)
- Resume API → ATS content optimization: serves endpoint (evidence: `README.md`)
- Resume API → PDF generation endpoint: serves endpoint (evidence: `README.md`)
