# shradha-khapra/ai-resume-ats architecture

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

- Interactive diagram: https://gitdiagram.com/shradha-khapra/ai-resume-ats
- Repository: https://github.com/shradha-khapra/ai-resume-ats

## Overview

ATS Resume Scorer is a Streamlit/FastAPI application for authenticated resume-to-job-description analysis. A user signs in, uploads a resume and optionally supplies a job description; the backend parses and analyzes it, returns scores and actionable feedback, and saves the result for later history and PDF export. The frontend presents score breakdowns, skill validation, JD comparison, issues, and recommendations. The README documents Groq-generated suggestions and Supabase-backed accounts/history. Some service internals and routes were not excerpted, so only indexed or documented connections are shown; optional external integrations are dashed.

Main entry points: [`backend/api/routes.py`](https://github.com/shradha-khapra/ai-resume-ats/blob/main/backend/api/routes.py) (API routes), [`backend/services/resume_analyzer.py`](https://github.com/shradha-khapra/ai-resume-ats/blob/main/backend/services/resume_analyzer.py) (Resume analyzer), [`frontend/streamlit_app.py`](https://github.com/shradha-khapra/ai-resume-ats/blob/main/frontend/streamlit_app.py) (Streamlit app), [`frontend/views/scorer.py`](https://github.com/shradha-khapra/ai-resume-ats/blob/main/frontend/views/scorer.py) (Scoring view)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_frontend["User interface"]
  node_streamlit["Streamlit app<br/>[streamlit_app.py]"]
  node_scorer_view["Scoring view<br/>[scorer.py]"]
  node_history_view["History view<br/>[history.py]"]
  node_other_views["Landing and resources"]
  node_dashboard["Results dashboard<br/>[dashboard.py]"]
  node_api_client["Backend API client<br/>[api_client.py]"]
  node_auth_client["Supabase auth client<br/>[supabase_client.py]"]
end

subgraph group_api["API and identity"]
  node_api_server["FastAPI application<br/>[main.py]"]
  node_routes["API routes<br/>[routes.py]"]
  node_auth["JWT verification<br/>[auth.py]"]
  node_schemas["Analysis schemas<br/>[schemas.py]"]
end

subgraph group_analysis["Resume analysis"]
  node_file_utils["File handling<br/>[file_utils.py]"]
  node_resume_parser["Resume parser<br/>[resume_parser.py]"]
  node_analyzer["Resume analyzer<br/>[resume_analyzer.py]"]
  node_ats_scorer["ATS scoring<br/>[ats_scorer.py]"]
  node_feedback["Feedback engine<br/>[feedback_engine.py]"]
  node_jd_matcher["JD matching<br/>[jd_matcher.py]"]
  node_matching["Keyword matching<br/>[matching.py]"]
  node_groq_parser["LLM suggestions<br/>[groq_parser.py]"]
  node_recommendations["Recommendations"]
end

subgraph group_persistence["History and reports"]
  node_database[("Analysis history store<br/>[supabase_db.py]")]
  node_report_generator["HTML reports"]
  node_pdf_export["PDF export<br/>[pdf_export.py]"]
end

node_user(("Resume user"))
node_supabase[("Supabase")]
node_groq{{"Groq API"}}

node_user -->|"uses"| node_streamlit
node_streamlit -->|"routes to"| node_scorer_view
node_streamlit -->|"routes to"| node_history_view
node_streamlit -->|"routes to"| node_other_views
node_scorer_view -->|"submits analysis"| node_api_client
node_scorer_view -->|"renders results"| node_dashboard
node_history_view -->|"requests history"| node_api_client
node_streamlit -->|"manages sign-in"| node_auth_client
node_auth_client -->|"authenticates"| node_supabase
node_api_client -->|"sends HTTP requests"| node_api_server
node_api_server -->|"registers routes"| node_routes
node_routes -->|"verifies user"| node_auth
node_routes -->|"handles upload"| node_file_utils
node_routes -->|"parses resume"| node_resume_parser
node_routes -->|"analyzes resume"| node_analyzer
node_routes -->|"builds response"| node_schemas
node_analyzer -->|"gets suggestions"| node_groq_parser
node_analyzer -->|"compares job description"| node_jd_matcher
node_analyzer -->|"calculates score"| node_ats_scorer
node_analyzer -->|"generates feedback"| node_feedback
node_ats_scorer -->|"uses fallbacks"| node_file_utils
node_ats_scorer -->|"matches keywords"| node_matching
node_jd_matcher -->|"matches keywords"| node_matching
node_routes -->|"saves analysis"| node_database
node_routes -->|"loads history"| node_database
node_routes -->|"generates report"| node_report_generator
node_routes -->|"exports PDF"| node_pdf_export
node_groq_parser -.->|"requests suggestions"| node_groq
node_database -.->|"stores analyses"| node_supabase
node_analyzer -.->|"produces recommendations"| node_recommendations

click node_streamlit "https://github.com/shradha-khapra/ai-resume-ats/blob/main/frontend/streamlit_app.py"
click node_scorer_view "https://github.com/shradha-khapra/ai-resume-ats/blob/main/frontend/views/scorer.py"
click node_history_view "https://github.com/shradha-khapra/ai-resume-ats/blob/main/frontend/views/history.py"
click node_other_views "https://github.com/shradha-khapra/ai-resume-ats/tree/main/frontend/views"
click node_dashboard "https://github.com/shradha-khapra/ai-resume-ats/blob/main/frontend/components/dashboard.py"
click node_api_client "https://github.com/shradha-khapra/ai-resume-ats/blob/main/frontend/services/api_client.py"
click node_auth_client "https://github.com/shradha-khapra/ai-resume-ats/blob/main/frontend/services/supabase_client.py"
click node_api_server "https://github.com/shradha-khapra/ai-resume-ats/blob/main/backend/main.py"
click node_routes "https://github.com/shradha-khapra/ai-resume-ats/blob/main/backend/api/routes.py"
click node_auth "https://github.com/shradha-khapra/ai-resume-ats/blob/main/backend/api/auth.py"
click node_schemas "https://github.com/shradha-khapra/ai-resume-ats/blob/main/backend/models/schemas.py"
click node_file_utils "https://github.com/shradha-khapra/ai-resume-ats/blob/main/backend/utils/file_utils.py"
click node_resume_parser "https://github.com/shradha-khapra/ai-resume-ats/blob/main/backend/services/resume_parser.py"
click node_analyzer "https://github.com/shradha-khapra/ai-resume-ats/blob/main/backend/services/resume_analyzer.py"
click node_ats_scorer "https://github.com/shradha-khapra/ai-resume-ats/blob/main/backend/services/ats_scorer.py"
click node_feedback "https://github.com/shradha-khapra/ai-resume-ats/blob/main/backend/services/feedback_engine.py"
click node_jd_matcher "https://github.com/shradha-khapra/ai-resume-ats/blob/main/backend/services/jd_matcher.py"
click node_matching "https://github.com/shradha-khapra/ai-resume-ats/blob/main/backend/utils/matching.py"
click node_groq_parser "https://github.com/shradha-khapra/ai-resume-ats/blob/main/backend/services/groq_parser.py"
click node_recommendations "https://github.com/shradha-khapra/ai-resume-ats/blob/main/backend/services/recommendation_engine.py"
click node_database "https://github.com/shradha-khapra/ai-resume-ats/blob/main/backend/database/supabase_db.py"
click node_report_generator "https://github.com/shradha-khapra/ai-resume-ats/blob/main/backend/services/report_generator.py"
click node_pdf_export "https://github.com/shradha-khapra/ai-resume-ats/blob/main/backend/services/pdf_export.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,node_scorer_view,node_history_view,node_other_views,node_dashboard,node_api_client,node_auth_client,node_user toneBlue
class node_api_server,node_routes,node_auth,node_schemas,node_supabase toneAmber
class node_file_utils,node_resume_parser,node_analyzer,node_ats_scorer,node_feedback,node_jd_matcher,node_matching,node_groq_parser,node_recommendations,node_groq toneMint
class node_database,node_report_generator,node_pdf_export toneRose
```

## Components

### User interface

- [Streamlit app](https://github.com/shradha-khapra/ai-resume-ats/blob/main/frontend/streamlit_app.py): `frontend/streamlit_app.py`
- [Scoring view](https://github.com/shradha-khapra/ai-resume-ats/blob/main/frontend/views/scorer.py): `frontend/views/scorer.py`
- [History view](https://github.com/shradha-khapra/ai-resume-ats/blob/main/frontend/views/history.py): `frontend/views/history.py`
- [Landing and resources](https://github.com/shradha-khapra/ai-resume-ats/tree/main/frontend/views): `frontend/views`
- [Results dashboard](https://github.com/shradha-khapra/ai-resume-ats/blob/main/frontend/components/dashboard.py): `frontend/components/dashboard.py`
- [Backend API client](https://github.com/shradha-khapra/ai-resume-ats/blob/main/frontend/services/api_client.py): `frontend/services/api_client.py`
- [Supabase auth client](https://github.com/shradha-khapra/ai-resume-ats/blob/main/frontend/services/supabase_client.py): `frontend/services/supabase_client.py`

### API and identity

- [FastAPI application](https://github.com/shradha-khapra/ai-resume-ats/blob/main/backend/main.py): `backend/main.py`
- [API routes](https://github.com/shradha-khapra/ai-resume-ats/blob/main/backend/api/routes.py): `backend/api/routes.py`
- [JWT verification](https://github.com/shradha-khapra/ai-resume-ats/blob/main/backend/api/auth.py): `backend/api/auth.py`
- [Analysis schemas](https://github.com/shradha-khapra/ai-resume-ats/blob/main/backend/models/schemas.py): `backend/models/schemas.py`

### Resume analysis

- [File handling](https://github.com/shradha-khapra/ai-resume-ats/blob/main/backend/utils/file_utils.py): `backend/utils/file_utils.py`
- [Resume parser](https://github.com/shradha-khapra/ai-resume-ats/blob/main/backend/services/resume_parser.py): `backend/services/resume_parser.py`
- [Resume analyzer](https://github.com/shradha-khapra/ai-resume-ats/blob/main/backend/services/resume_analyzer.py): `backend/services/resume_analyzer.py`
- [ATS scoring](https://github.com/shradha-khapra/ai-resume-ats/blob/main/backend/services/ats_scorer.py): `backend/services/ats_scorer.py`
- [Feedback engine](https://github.com/shradha-khapra/ai-resume-ats/blob/main/backend/services/feedback_engine.py): `backend/services/feedback_engine.py`
- [JD matching](https://github.com/shradha-khapra/ai-resume-ats/blob/main/backend/services/jd_matcher.py): `backend/services/jd_matcher.py`
- [Keyword matching](https://github.com/shradha-khapra/ai-resume-ats/blob/main/backend/utils/matching.py): `backend/utils/matching.py`
- [LLM suggestions](https://github.com/shradha-khapra/ai-resume-ats/blob/main/backend/services/groq_parser.py): `backend/services/groq_parser.py`
- [Recommendations](https://github.com/shradha-khapra/ai-resume-ats/blob/main/backend/services/recommendation_engine.py): `backend/services/recommendation_engine.py`

### History and reports

- [Analysis history store](https://github.com/shradha-khapra/ai-resume-ats/blob/main/backend/database/supabase_db.py): `backend/database/supabase_db.py`
- [HTML reports](https://github.com/shradha-khapra/ai-resume-ats/blob/main/backend/services/report_generator.py): `backend/services/report_generator.py`
- [PDF export](https://github.com/shradha-khapra/ai-resume-ats/blob/main/backend/services/pdf_export.py): `backend/services/pdf_export.py`

### Other components

- **Resume user**
- **Supabase**
- **Groq API**

## Connections

- Resume user → Streamlit app: uses (evidence: `README.md`)
- Streamlit app → Scoring view: routes to (evidence: `frontend/streamlit_app.py`)
- Streamlit app → History view: routes to (evidence: `frontend/streamlit_app.py`)
- Streamlit app → Landing and resources: routes to (evidence: `frontend/streamlit_app.py`)
- Scoring view → Backend API client: submits analysis (evidence: `frontend/views/scorer.py`)
- Scoring view → Results dashboard: renders results (evidence: `frontend/views/scorer.py`)
- History view → Backend API client: requests history (evidence: `frontend/views/history.py`)
- Streamlit app → Supabase auth client: manages sign-in (evidence: `frontend/streamlit_app.py`)
- Supabase auth client → Supabase: authenticates (evidence: `frontend/services/supabase_client.py`)
- Backend API client → FastAPI application: sends HTTP requests (evidence: `frontend/services/api_client.py`)
- FastAPI application → API routes: registers routes (evidence: `backend/main.py`)
- API routes → JWT verification: verifies user (evidence: `backend/api/routes.py`)
- API routes → File handling: handles upload (evidence: `backend/api/routes.py`)
- API routes → Resume parser: parses resume (evidence: `backend/api/routes.py`)
- API routes → Resume analyzer: analyzes resume (evidence: `backend/api/routes.py`)
- API routes → Analysis schemas: builds response (evidence: `backend/api/routes.py`)
- Resume analyzer → LLM suggestions: gets suggestions (evidence: `backend/services/resume_analyzer.py`)
- Resume analyzer → JD matching: compares job description (evidence: `backend/services/resume_analyzer.py`)
- Resume analyzer → ATS scoring: calculates score (evidence: `backend/services/resume_analyzer.py`)
- Resume analyzer → Feedback engine: generates feedback (evidence: `backend/services/resume_analyzer.py`)
- ATS scoring → File handling: uses fallbacks (evidence: `backend/services/ats_scorer.py`)
- ATS scoring → Keyword matching: matches keywords (evidence: `backend/services/ats_scorer.py`)
- JD matching → Keyword matching: matches keywords (evidence: `backend/services/jd_matcher.py`)
- API routes → Analysis history store: saves analysis (evidence: `backend/api/routes.py`)
- API routes → Analysis history store: loads history (evidence: `backend/api/routes.py`)
- API routes → HTML reports: generates report (evidence: `backend/api/routes.py`)
- API routes → PDF export: exports PDF (evidence: `backend/api/routes.py`)
- LLM suggestions → Groq API: requests suggestions (evidence: `README.md`)
- Analysis history store → Supabase: stores analyses
- Resume analyzer → Recommendations: produces recommendations
