# kushalpa15/ai_resume_analyzer architecture

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

- Interactive diagram: https://gitdiagram.com/kushalpa15/ai_resume_analyzer
- Repository: https://github.com/kushalpa15/ai_resume_analyzer

## Overview

AI Resume Analyzer is a web app for uploading a resume, comparing it with a target role, and returning ATS scores and improvement feedback. The evidenced main flow is upload form → PDF text/image preparation → AI analysis and file storage → saved feedback → resume result route. Puter provides the app’s authentication, file, AI, and key-value interfaces. The README also documents resume management and skill matching. Some route and presentation implementations were indexed but not excerpted, so their internal calls are not inferred.

Main entry points: [`app/routes/upload.tsx`](https://github.com/kushalpa15/ai_resume_analyzer/blob/main/app/routes/upload.tsx) (Upload and analyze), [`app/routes.ts`](https://github.com/kushalpa15/ai_resume_analyzer/blob/main/app/routes.ts) (Route map), [`app/lib/puter.ts`](https://github.com/kushalpa15/ai_resume_analyzer/blob/main/app/lib/puter.ts) (Puter client store), [`app/routes/resume.tsx`](https://github.com/kushalpa15/ai_resume_analyzer/blob/main/app/routes/resume.tsx) (Resume result)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["App and access"]
  node_route_config["Route map<br/>[routes.ts]"]
  node_auth_route["Authentication page<br/>[auth.tsx]"]
  node_home_route["Resume home<br/>[home.tsx]"]
  node_root["App shell<br/>[root.tsx]"]
  node_wipe_route["Clear resumes<br/>[wipe.tsx]"]
  node_navbar["Navigation bar<br/>[Navbar.tsx]"]
end

subgraph group_analysis["Resume analysis"]
  node_upload_route["Upload and analyze<br/>[upload.tsx]"]
  node_uploader["PDF uploader<br/>[FileUploader.tsx]"]
  node_pdf_tools["PDF extraction<br/>[pdf2img.ts]"]
  node_instructions["Analysis prompt<br/>[index.ts]"]
end

subgraph group_results["Results and feedback"]
  node_resume_route["Resume result<br/>[resume.tsx]"]
  node_details["Feedback details<br/>[Details.tsx]"]
  node_accordion["Accordion controls<br/>[Accordion.tsx]"]
  node_score_views["Score displays<br/>[ATS.tsx]"]
  node_resume_card["Resume cards<br/>[ResumeCard.tsx]"]
  node_summary["Feedback summary<br/>[Summary.tsx]"]
  node_score_gauge["Score gauge<br/>[ScoreGauge.tsx]"]
  node_score_circle["Score circle<br/>[ScoreCircle.tsx]"]
  node_score_badge["Score badge<br/>[ScoreBadge.tsx]"]
end

subgraph group_services["External services"]
  node_puter_store["Puter client store<br/>[puter.ts]"]
  node_puter{{"Puter services"}}
end

node_candidate(("Candidate"))

node_candidate -->|"uses routes"| node_route_config
node_route_config -->|"routes to"| node_home_route
node_route_config -->|"routes to"| node_auth_route
node_route_config -->|"routes to"| node_upload_route
node_route_config -->|"routes to"| node_resume_route
node_route_config -->|"routes to"| node_wipe_route
node_root -->|"initializes"| node_puter_store
node_auth_route -->|"uses auth"| node_puter_store
node_candidate -->|"submits resume"| node_upload_route
node_upload_route -->|"renders"| node_uploader
node_upload_route -->|"extracts and converts"| node_pdf_tools
node_upload_route -->|"builds prompt"| node_instructions
node_upload_route -->|"requests AI and storage"| node_puter_store
node_puter_store -->|"calls service APIs"| node_puter
node_upload_route -->|"navigates to result"| node_resume_route
node_resume_route -.->|"presents feedback"| node_details
node_details -->|"renders"| node_accordion
node_home_route -.->|"lists saved resumes"| node_resume_card

click node_route_config "https://github.com/kushalpa15/ai_resume_analyzer/blob/main/app/routes.ts"
click node_auth_route "https://github.com/kushalpa15/ai_resume_analyzer/blob/main/app/routes/auth.tsx"
click node_home_route "https://github.com/kushalpa15/ai_resume_analyzer/blob/main/app/routes/home.tsx"
click node_root "https://github.com/kushalpa15/ai_resume_analyzer/blob/main/app/root.tsx"
click node_upload_route "https://github.com/kushalpa15/ai_resume_analyzer/blob/main/app/routes/upload.tsx"
click node_uploader "https://github.com/kushalpa15/ai_resume_analyzer/blob/main/app/components/FileUploader.tsx"
click node_pdf_tools "https://github.com/kushalpa15/ai_resume_analyzer/blob/main/app/lib/pdf2img.ts"
click node_instructions "https://github.com/kushalpa15/ai_resume_analyzer/blob/main/constants/index.ts"
click node_puter_store "https://github.com/kushalpa15/ai_resume_analyzer/blob/main/app/lib/puter.ts"
click node_resume_route "https://github.com/kushalpa15/ai_resume_analyzer/blob/main/app/routes/resume.tsx"
click node_wipe_route "https://github.com/kushalpa15/ai_resume_analyzer/blob/main/app/routes/wipe.tsx"
click node_details "https://github.com/kushalpa15/ai_resume_analyzer/blob/main/app/components/Details.tsx"
click node_accordion "https://github.com/kushalpa15/ai_resume_analyzer/blob/main/app/components/Accordion.tsx"
click node_score_views "https://github.com/kushalpa15/ai_resume_analyzer/blob/main/app/components/ATS.tsx"
click node_resume_card "https://github.com/kushalpa15/ai_resume_analyzer/blob/main/app/components/ResumeCard.tsx"
click node_summary "https://github.com/kushalpa15/ai_resume_analyzer/blob/main/app/components/Summary.tsx"
click node_score_gauge "https://github.com/kushalpa15/ai_resume_analyzer/blob/main/app/components/ScoreGauge.tsx"
click node_score_circle "https://github.com/kushalpa15/ai_resume_analyzer/blob/main/app/components/ScoreCircle.tsx"
click node_score_badge "https://github.com/kushalpa15/ai_resume_analyzer/blob/main/app/components/ScoreBadge.tsx"
click node_navbar "https://github.com/kushalpa15/ai_resume_analyzer/blob/main/app/components/Navbar.tsx"

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_route_config,node_auth_route,node_home_route,node_root,node_wipe_route,node_navbar toneBlue
class node_upload_route,node_uploader,node_pdf_tools,node_instructions toneAmber
class node_resume_route,node_details,node_accordion,node_score_views,node_resume_card,node_summary,node_score_gauge,node_score_circle,node_score_badge toneMint
class node_puter_store,node_puter toneRose
class node_candidate toneIndigo
```

## Components

### App and access

- [Route map](https://github.com/kushalpa15/ai_resume_analyzer/blob/main/app/routes.ts): `app/routes.ts`
- [Authentication page](https://github.com/kushalpa15/ai_resume_analyzer/blob/main/app/routes/auth.tsx): `app/routes/auth.tsx`
- [Resume home](https://github.com/kushalpa15/ai_resume_analyzer/blob/main/app/routes/home.tsx): `app/routes/home.tsx`
- [App shell](https://github.com/kushalpa15/ai_resume_analyzer/blob/main/app/root.tsx): `app/root.tsx`
- [Clear resumes](https://github.com/kushalpa15/ai_resume_analyzer/blob/main/app/routes/wipe.tsx): `app/routes/wipe.tsx`
- [Navigation bar](https://github.com/kushalpa15/ai_resume_analyzer/blob/main/app/components/Navbar.tsx): `app/components/Navbar.tsx`

### Resume analysis

- [Upload and analyze](https://github.com/kushalpa15/ai_resume_analyzer/blob/main/app/routes/upload.tsx): `app/routes/upload.tsx`
- [PDF uploader](https://github.com/kushalpa15/ai_resume_analyzer/blob/main/app/components/FileUploader.tsx): `app/components/FileUploader.tsx`
- [PDF extraction](https://github.com/kushalpa15/ai_resume_analyzer/blob/main/app/lib/pdf2img.ts): `app/lib/pdf2img.ts`
- [Analysis prompt](https://github.com/kushalpa15/ai_resume_analyzer/blob/main/constants/index.ts): `constants/index.ts`

### Results and feedback

- [Resume result](https://github.com/kushalpa15/ai_resume_analyzer/blob/main/app/routes/resume.tsx): `app/routes/resume.tsx`
- [Feedback details](https://github.com/kushalpa15/ai_resume_analyzer/blob/main/app/components/Details.tsx): `app/components/Details.tsx`
- [Accordion controls](https://github.com/kushalpa15/ai_resume_analyzer/blob/main/app/components/Accordion.tsx): `app/components/Accordion.tsx`
- [Score displays](https://github.com/kushalpa15/ai_resume_analyzer/blob/main/app/components/ATS.tsx): `app/components/ATS.tsx`
- [Resume cards](https://github.com/kushalpa15/ai_resume_analyzer/blob/main/app/components/ResumeCard.tsx): `app/components/ResumeCard.tsx`
- [Feedback summary](https://github.com/kushalpa15/ai_resume_analyzer/blob/main/app/components/Summary.tsx): `app/components/Summary.tsx`
- [Score gauge](https://github.com/kushalpa15/ai_resume_analyzer/blob/main/app/components/ScoreGauge.tsx): `app/components/ScoreGauge.tsx`
- [Score circle](https://github.com/kushalpa15/ai_resume_analyzer/blob/main/app/components/ScoreCircle.tsx): `app/components/ScoreCircle.tsx`
- [Score badge](https://github.com/kushalpa15/ai_resume_analyzer/blob/main/app/components/ScoreBadge.tsx): `app/components/ScoreBadge.tsx`

### External services

- [Puter client store](https://github.com/kushalpa15/ai_resume_analyzer/blob/main/app/lib/puter.ts): `app/lib/puter.ts`
- **Puter services**

### Other components

- **Candidate**

## Connections

- Candidate → Route map: uses routes (evidence: `app/routes.ts`)
- Route map → Resume home: routes to (evidence: `app/routes.ts`)
- Route map → Authentication page: routes to (evidence: `app/routes.ts`)
- Route map → Upload and analyze: routes to (evidence: `app/routes.ts`)
- Route map → Resume result: routes to (evidence: `app/routes.ts`)
- Route map → Clear resumes: routes to (evidence: `app/routes.ts`)
- App shell → Puter client store: initializes (evidence: `app/root.tsx`)
- Authentication page → Puter client store: uses auth (evidence: `app/routes/auth.tsx`)
- Candidate → Upload and analyze: submits resume (evidence: `app/routes/upload.tsx`)
- Upload and analyze → PDF uploader: renders (evidence: `app/routes/upload.tsx`)
- Upload and analyze → PDF extraction: extracts and converts (evidence: `app/routes/upload.tsx`)
- Upload and analyze → Analysis prompt: builds prompt (evidence: `app/routes/upload.tsx`)
- Upload and analyze → Puter client store: requests AI and storage (evidence: `app/routes/upload.tsx`)
- Puter client store → Puter services: calls service APIs (evidence: `app/lib/puter.ts`)
- Upload and analyze → Resume result: navigates to result (evidence: `app/routes/upload.tsx`)
- Resume result → Feedback details: presents feedback
- Feedback details → Accordion controls: renders (evidence: `app/components/Details.tsx`)
- Resume home → Resume cards: lists saved resumes
