How sonic-12/ats-resume-scanner works
1. Purpose and runtime shape
ATS Resume Checker is a two-process, local web application that evaluates uploaded PDF resumes for ATS parsing and structural risks. A React/Vite client submits a PDF to a Python/FastAPI API; the API returns a structured report with category scores, detected issues, and recommendations. Analysis is self-contained: no third-party APIs or persistent resume store are part of the design.
Entry points:
• Backend API: backend/app.py
• Frontend bootstrap: frontend/src/main.jsx
• Frontend root/router state: frontend/src/App.jsx
2. Upload-to-analysis boundary
The UI begins on an upload flow, centered on PDF selection and API submission:
• frontend/src/pages/Upload.jsx
• frontend/src/components/Dropzone.jsx
• frontend/src/api.js
api.js is the client/server contract boundary. The backend accepts the upload, processes it for that request, and uses backend/uploads only as an operational upload location, consistent with the no-persistence intent.
3. Backend orchestration and result contract
backend/app.py is the FastAPI composition point: it exposes the REST endpoint(s), coordinates extraction and analysis stages, and serializes the response consumed by the frontend. Core analysis results must remain structured rather than presentation-specific so the client can render backend-produced scores and findings directly.
Relevant paths:
• backend/app.py
• backend/ats_core/resume_model.py
• frontend/src/api.js
4. PDF extraction and normalized resume model
PDF parsing is isolated from ATS evaluation:
• backend/ats_core/pdf_extractor.py
• backend/ats_core/resume_model.py
The extractor uses PyPDF2 to obtain text and parsing signals from PDF input. The resume model forms the normalized internal representation passed to downstream section detection, rules, scoring, and recommendation generation. This separation is important: parser limitations should surface as ATS-essential findings rather than be conflated with content quality.
5. Structural analysis and ATS rules
Rule-based analysis evaluates whether the extracted document has recognizable resume structure and ATS-safe signals:
• backend/ats_core/section_detector.py
• backend/ats_core/rules.py
Section detection identifies expected resume areas and organization. Rules translate missing, malformed, or risky signals—such as parseability, headers, contact details, and structure—into concrete issues. These modules define the product’s intentional focus on structural correctness rather than templates or keyword stuffing.
6. Scoring and actionable output
The scoring layer aggregates analysis into a strict 100-point assessment across Tailoring, Content, Sections, and ATS Essentials:
• backend/ats_core/scorer.py
• backend/ats_core/recommendations.py
• backend/ats_core/rules.py
Rules and detected sections feed the scorer; recommendations convert findings into specific fixes. Scores, category breakdowns, issues, and recommendations should be generated from the same underlying findings to prevent UI/report inconsistencies.
7. Report rendering and client-side result lifecycle
The frontend presents the returned report through specialized, display-only components:
• frontend/src/pages/Report.jsx
• frontend/src/components/ScoreGauge.jsx
• frontend/src/components/CategoryStats.jsx
• frontend/src/components/IssueList.jsx
• frontend/src/components/RecommendationList.jsx
The client temporarily caches result data in browser session/local storage, allowing report navigation without making storage a backend responsibility. React runs via Vite (frontend/vite.config.js); FastAPI runs separately with Uvicorn and Python dependencies declared in backend/requirements.txt.
Main entry points: app.py API orchestration · rules.py ATS rules · App.jsx App router & state · Upload.jsx Upload flow
Components 15
React/Vite Client
- Client bootstrap
frontend/src/main.jsx - App router & state · Owns upload/report navigation state.
frontend/src/App.jsx - Upload flow
frontend/src/pages/Upload.jsx - PDF selector
frontend/src/components/Dropzone.jsx - API contract client · Submits PDFs and receives structured reports.
frontend/src/api.js - Report view · Renders temporarily cached report data.
frontend/src/pages/Report.jsx - Report components · Scores, categories, issues, and recommendations.
FastAPI Analysis API
- API orchestration · Accepts uploads and serializes analysis reports.
backend/app.py - Operational uploads · Request-processing upload location, not a resume store.
backend/uploads
ATS Analysis Core
- PDF extraction · Extracts text and parsing signals.
backend/ats_core/pdf_extractor.py - Normalized resume · Parser-independent representation for evaluation.
backend/ats_core/resume_model.py - Section detection
backend/ats_core/section_detector.py - ATS rules · Produces structural and parseability findings.
backend/ats_core/rules.py - 100-point scoring · Breaks results into Tailoring, Content, Sections, and ATS Essentials.
backend/ats_core/scorer.py - Recommendations · Converts findings into actionable fixes.
backend/ats_core/recommendations.py
Connections 18
- Client bootstrap → App router & state: mounts
- App router & state → Upload flow: shows
- App router & state → Report view: navigates to
- Upload flow → PDF selector: uses
- Upload flow → API contract client: submits PDF
- API contract client → API orchestration: multipart upload / report
- API orchestration → Operational uploads: processes upload in
- API orchestration → PDF extraction: extracts PDF
- PDF extraction → Normalized resume: text and signals
- Normalized resume → Section detection: analyzes structure
- Normalized resume → ATS rules: evaluates signals
- Section detection → ATS rules: detected sections
- ATS rules → 100-point scoring: findings
- Section detection → 100-point scoring: section results
- ATS rules → Recommendations: findings
- 100-point scoring → API orchestration: scores and breakdowns
- Recommendations → API orchestration: actionable fixes
- Report view → Report components: renders