# sm-joe/resumeforge-ats-resume architecture

> Architecture diagram of the GitHub repository sm-joe/resumeforge-ats-resume, 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/sm-joe/resumeforge-ats-resume
- Repository: https://github.com/sm-joe/resumeforge-ats-resume

## Overview

ResumeForge is a structured resume authoring product: users edit resume sections, preview a template, analyze ATS readiness or job alignment, and export a Word document. The web editor maintains browser state and, according to the README, autosaves through the API; the API also provides server-side resume CRUD backed by SQLite. The README documents analysis, matching, templates, persistence, and Word export. Some internal route-to-analyzer and web proxy wiring is not shown in sampled source, so documented links use README evidence.

Main entry points: [`apps/web/src/components/editor/ResumeWorkspace.tsx`](https://github.com/sm-joe/resumeforge-ats-resume/blob/main/apps/web/src/components/editor/ResumeWorkspace.tsx) (Resume editor), [`apps/api/src/resumeforge_api/main.py`](https://github.com/sm-joe/resumeforge-ats-resume/blob/main/apps/api/src/resumeforge_api/main.py) (FastAPI service), [`apps/web/src/lib/editor/EditorProvider.tsx`](https://github.com/sm-joe/resumeforge-ats-resume/blob/main/apps/web/src/lib/editor/EditorProvider.tsx) (Editor state), [`apps/web/src/components/resume/ResumeOverview.tsx`](https://github.com/sm-joe/resumeforge-ats-resume/blob/main/apps/web/src/components/resume/ResumeOverview.tsx) (Resume preview)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_authoring["Resume authoring"]
  node_webapp["Web application<br/>[page.tsx]"]
  node_editor["Resume editor"]
  node_editorstate["Editor state<br/>[EditorProvider.tsx]"]
  node_reducer["Resume reducer<br/>[reducer.ts]"]
  node_schema["Resume schema<br/>[index.ts]"]
  node_browserstore[("Browser drafts")]
end

subgraph group_insights["Analysis and matching"]
  node_atsui["ATS panel<br/>[AtsScorePanel.tsx]"]
  node_matchui["Job match panel<br/>[JdMatchPanel.tsx]"]
  node_analyzer["ATS analysis<br/>[scorer.py]"]
  node_matchengine["Job matching<br/>[matcher.py]"]
end

subgraph group_service["API and persistence"]
  node_api["FastAPI service<br/>[main.py]"]
  node_resumeapi["Resume CRUD<br/>[resumes.py]"]
  node_analyzeapi["Analysis route<br/>[analyze.py]"]
  node_matchapi["Match route<br/>[match.py]"]
  node_exportapi["Word export route<br/>[export.py]"]
  node_records[("Resume records<br/>[db.py]")]
end

subgraph group_output["Presentation and export"]
  node_preview["Resume preview<br/>[ResumeOverview.tsx]"]
  node_template["Modern template<br/>[ModernResume.tsx]"]
  node_docx["DOCX renderer<br/>[docx.py]"]
end

node_user(("Resume user"))

node_user -->|"opens and edits"| node_webapp
node_webapp -.->|"shows editor"| node_editor
node_editor -.->|"edits resume"| node_editorstate
node_editorstate -->|"dispatches actions"| node_reducer
node_reducer -->|"uses resume types"| node_schema
node_editorstate -->|"saves drafts"| node_browserstore
node_editorstate -->|"autosaves over HTTP"| node_resumeapi
node_api -->|"registers route"| node_resumeapi
node_resumeapi -->|"reads and writes"| node_records
node_editor -.->|"previews resume"| node_preview
node_preview -->|"renders resume data"| node_schema
node_preview -.->|"uses presentation"| node_template
node_editor -.->|"requests ATS analysis"| node_atsui
node_atsui -->|"posts resume"| node_analyzeapi
node_api -->|"registers route"| node_analyzeapi
node_analyzeapi -->|"analyzes resume"| node_analyzer
node_editor -.->|"opens matching"| node_matchui
node_matchui -->|"submits resume and job"| node_matchapi
node_api -->|"registers route"| node_matchapi
node_matchapi -->|"compares requirements"| node_matchengine
node_editor -->|"requests Word export"| node_exportapi
node_api -->|"registers route"| node_exportapi
node_exportapi -->|"renders document"| node_docx
node_docx -->|"returns Word file"| node_user

click node_webapp "https://github.com/sm-joe/resumeforge-ats-resume/blob/main/apps/web/src/app/page.tsx"
click node_editor "https://github.com/sm-joe/resumeforge-ats-resume/blob/main/apps/web/src/components/editor/ResumeWorkspace.tsx"
click node_editorstate "https://github.com/sm-joe/resumeforge-ats-resume/blob/main/apps/web/src/lib/editor/EditorProvider.tsx"
click node_reducer "https://github.com/sm-joe/resumeforge-ats-resume/blob/main/apps/web/src/lib/editor/reducer.ts"
click node_schema "https://github.com/sm-joe/resumeforge-ats-resume/blob/main/packages/resume-schema/src/index.ts"
click node_preview "https://github.com/sm-joe/resumeforge-ats-resume/blob/main/apps/web/src/components/resume/ResumeOverview.tsx"
click node_template "https://github.com/sm-joe/resumeforge-ats-resume/blob/main/apps/web/src/components/templates/modern/ModernResume.tsx"
click node_atsui "https://github.com/sm-joe/resumeforge-ats-resume/blob/main/apps/web/src/components/ats/AtsScorePanel.tsx"
click node_matchui "https://github.com/sm-joe/resumeforge-ats-resume/blob/main/apps/web/src/components/matching/JdMatchPanel.tsx"
click node_analyzer "https://github.com/sm-joe/resumeforge-ats-resume/blob/main/apps/analyzer/src/resumeforge_analyzer/scorer.py"
click node_matchengine "https://github.com/sm-joe/resumeforge-ats-resume/blob/main/apps/analyzer/src/resumeforge_analyzer/matcher.py"
click node_api "https://github.com/sm-joe/resumeforge-ats-resume/blob/main/apps/api/src/resumeforge_api/main.py"
click node_resumeapi "https://github.com/sm-joe/resumeforge-ats-resume/blob/main/apps/api/src/resumeforge_api/routes/resumes.py"
click node_analyzeapi "https://github.com/sm-joe/resumeforge-ats-resume/blob/main/apps/api/src/resumeforge_api/routes/analyze.py"
click node_matchapi "https://github.com/sm-joe/resumeforge-ats-resume/blob/main/apps/api/src/resumeforge_api/routes/match.py"
click node_exportapi "https://github.com/sm-joe/resumeforge-ats-resume/blob/main/apps/api/src/resumeforge_api/routes/export.py"
click node_docx "https://github.com/sm-joe/resumeforge-ats-resume/blob/main/apps/api/src/resumeforge_api/export/docx.py"
click node_records "https://github.com/sm-joe/resumeforge-ats-resume/blob/main/apps/api/src/resumeforge_api/db.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_webapp,node_editor,node_editorstate,node_reducer,node_schema,node_browserstore,node_user toneBlue
class node_atsui,node_matchui,node_analyzer,node_matchengine toneAmber
class node_api,node_resumeapi,node_analyzeapi,node_matchapi,node_exportapi,node_records toneMint
class node_preview,node_template,node_docx toneRose
```

## Components

### Resume authoring

- [Web application](https://github.com/sm-joe/resumeforge-ats-resume/blob/main/apps/web/src/app/page.tsx): `apps/web/src/app/page.tsx`
- [Resume editor](https://github.com/sm-joe/resumeforge-ats-resume/blob/main/apps/web/src/components/editor/ResumeWorkspace.tsx): `apps/web/src/components/editor/ResumeWorkspace.tsx`
- [Editor state](https://github.com/sm-joe/resumeforge-ats-resume/blob/main/apps/web/src/lib/editor/EditorProvider.tsx): `apps/web/src/lib/editor/EditorProvider.tsx`
- [Resume reducer](https://github.com/sm-joe/resumeforge-ats-resume/blob/main/apps/web/src/lib/editor/reducer.ts): `apps/web/src/lib/editor/reducer.ts`
- [Resume schema](https://github.com/sm-joe/resumeforge-ats-resume/blob/main/packages/resume-schema/src/index.ts): `packages/resume-schema/src/index.ts`
- **Browser drafts**

### Analysis and matching

- [ATS panel](https://github.com/sm-joe/resumeforge-ats-resume/blob/main/apps/web/src/components/ats/AtsScorePanel.tsx): `apps/web/src/components/ats/AtsScorePanel.tsx`
- [Job match panel](https://github.com/sm-joe/resumeforge-ats-resume/blob/main/apps/web/src/components/matching/JdMatchPanel.tsx): `apps/web/src/components/matching/JdMatchPanel.tsx`
- [ATS analysis](https://github.com/sm-joe/resumeforge-ats-resume/blob/main/apps/analyzer/src/resumeforge_analyzer/scorer.py): `apps/analyzer/src/resumeforge_analyzer/scorer.py`
- [Job matching](https://github.com/sm-joe/resumeforge-ats-resume/blob/main/apps/analyzer/src/resumeforge_analyzer/matcher.py): `apps/analyzer/src/resumeforge_analyzer/matcher.py`

### API and persistence

- [FastAPI service](https://github.com/sm-joe/resumeforge-ats-resume/blob/main/apps/api/src/resumeforge_api/main.py): `apps/api/src/resumeforge_api/main.py`
- [Resume CRUD](https://github.com/sm-joe/resumeforge-ats-resume/blob/main/apps/api/src/resumeforge_api/routes/resumes.py): `apps/api/src/resumeforge_api/routes/resumes.py`
- [Analysis route](https://github.com/sm-joe/resumeforge-ats-resume/blob/main/apps/api/src/resumeforge_api/routes/analyze.py): `apps/api/src/resumeforge_api/routes/analyze.py`
- [Match route](https://github.com/sm-joe/resumeforge-ats-resume/blob/main/apps/api/src/resumeforge_api/routes/match.py): `apps/api/src/resumeforge_api/routes/match.py`
- [Word export route](https://github.com/sm-joe/resumeforge-ats-resume/blob/main/apps/api/src/resumeforge_api/routes/export.py): `apps/api/src/resumeforge_api/routes/export.py`
- [Resume records](https://github.com/sm-joe/resumeforge-ats-resume/blob/main/apps/api/src/resumeforge_api/db.py): `apps/api/src/resumeforge_api/db.py`

### Presentation and export

- [Resume preview](https://github.com/sm-joe/resumeforge-ats-resume/blob/main/apps/web/src/components/resume/ResumeOverview.tsx): `apps/web/src/components/resume/ResumeOverview.tsx`
- [Modern template](https://github.com/sm-joe/resumeforge-ats-resume/blob/main/apps/web/src/components/templates/modern/ModernResume.tsx): `apps/web/src/components/templates/modern/ModernResume.tsx`
- [DOCX renderer](https://github.com/sm-joe/resumeforge-ats-resume/blob/main/apps/api/src/resumeforge_api/export/docx.py): `apps/api/src/resumeforge_api/export/docx.py`

### Other components

- **Resume user**

## Connections

- Resume user → Web application: opens and edits (evidence: `README.md`)
- Web application → Resume editor: shows editor
- Resume editor → Editor state: edits resume
- Editor state → Resume reducer: dispatches actions (evidence: `apps/web/src/lib/editor/reducer.ts`)
- Resume reducer → Resume schema: uses resume types (evidence: `apps/web/src/lib/editor/reducer.ts`)
- Editor state → Browser drafts: saves drafts (evidence: `README.md`)
- Editor state → Resume CRUD: autosaves over HTTP (evidence: `README.md`)
- FastAPI service → Resume CRUD: registers route (evidence: `apps/api/src/resumeforge_api/main.py`)
- Resume CRUD → Resume records: reads and writes (evidence: `apps/api/src/resumeforge_api/routes/resumes.py`)
- Resume editor → Resume preview: previews resume
- Resume preview → Resume schema: renders resume data (evidence: `apps/web/src/components/resume/ResumeOverview.tsx`)
- Resume preview → Modern template: uses presentation
- Resume editor → ATS panel: requests ATS analysis
- ATS panel → Analysis route: posts resume (evidence: `README.md`)
- FastAPI service → Analysis route: registers route (evidence: `apps/api/src/resumeforge_api/main.py`)
- Analysis route → ATS analysis: analyzes resume (evidence: `README.md`)
- Resume editor → Job match panel: opens matching
- Job match panel → Match route: submits resume and job (evidence: `README.md`)
- FastAPI service → Match route: registers route (evidence: `apps/api/src/resumeforge_api/main.py`)
- Match route → Job matching: compares requirements (evidence: `README.md`)
- Resume editor → Word export route: requests Word export (evidence: `README.md`)
- FastAPI service → Word export route: registers route (evidence: `apps/api/src/resumeforge_api/main.py`)
- Word export route → DOCX renderer: renders document (evidence: `apps/api/src/resumeforge_api/routes/export.py`)
- DOCX renderer → Resume user: returns Word file
