# akhil-dara/cvaurum architecture

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

- Interactive diagram: https://gitdiagram.com/akhil-dara/cvaurum
- Repository: https://github.com/akhil-dara/cvaurum

## Overview

CVAurum is a browser-only resume studio: users create or import a resume, edit and tailor it, review its design and ATS feedback, then export or share it. The graph also preserves the template gallery, example library, accessibility tools, and offline capability documented in the README. Edges use the README for product-level flows and the sampled source/index for visible calls; unsampled implementation details are not inferred.

Main entry points: [`src/components/editor/Editor.tsx`](https://github.com/akhil-dara/cvaurum/blob/main/src/components/editor/Editor.tsx) (Resume editor), [`src/routes/Dashboard.tsx`](https://github.com/akhil-dara/cvaurum/blob/main/src/routes/Dashboard.tsx) (Resume dashboard), [`src/components/dashboard/newResume.tsx`](https://github.com/akhil-dara/cvaurum/blob/main/src/components/dashboard/newResume.tsx) (Resume creation), [`src/store/useResumeStore.ts`](https://github.com/akhil-dara/cvaurum/blob/main/src/store/useResumeStore.ts) (Resume document state)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Application"]
  node_router["Application routes<br/>[router.tsx]"]
  node_dashboard["Resume dashboard<br/>[Dashboard.tsx]"]
  node_examples["Example resume library<br/>[index.ts]"]
  node_offline["Offline installation"]
end

subgraph group_authoring["Resume authoring"]
  node_newresume["Resume creation<br/>[newResume.tsx]"]
  node_editor["Resume editor<br/>[Editor.tsx]"]
  node_resume_state["Resume document state<br/>[useResumeStore.ts]"]
  node_document_model["Resume document model<br/>[document.ts]"]
  node_templates["Template catalog<br/>[registry.ts]"]
  node_template_apply["Template application<br/>[templateApply.ts]"]
  node_renderer["Template renderer"]
  node_preview["Live resume preview<br/>[ResumePreview.tsx]"]
  node_import["PDF resume import<br/>[parse.ts]"]
end

subgraph group_analysis["Review and tailoring"]
  node_ats["ATS analysis<br/>[ats.ts]"]
  node_ats_sim["ATS parse simulation<br/>[atsSimulate.ts]"]
  node_writing["Writing coach<br/>[writing.ts]"]
  node_semantic["Job matching<br/>[semantic.worker.ts]"]
  node_fit["Page fit tools<br/>[fitOnePage.ts]"]
  node_contrast["Contrast audit and fixes<br/>[index.ts]"]
end

subgraph group_output["Export and sharing"]
  node_pdf["Accessible PDF export<br/>[exportFlow.ts]"]
  node_word["Word document export<br/>[docx.ts]"]
  node_sharing["Encrypted resume sharing<br/>[share.ts]"]
end

subgraph group_local["Local data"]
  node_storage[("IndexedDB persistence<br/>[storage.ts]")]
  node_app_state["Settings and library state<br/>[useAppStore.ts]"]
  node_autosave["Resume autosave<br/>[useAutosave.ts]"]
end

node_user(("Resume author"))

node_user -->|"opens app"| node_router
node_router -->|"routes to"| node_dashboard
node_user -->|"manages resumes"| node_dashboard
node_dashboard -->|"starts creation"| node_newresume
node_newresume -->|"applies defaults"| node_template_apply
node_newresume -->|"chooses template"| node_templates
node_user -->|"edits resume"| node_editor
node_editor -->|"updates document"| node_resume_state
node_resume_state -->|"holds document"| node_document_model
node_editor -->|"shows changes"| node_preview
node_preview -->|"renders pages"| node_renderer
node_renderer -->|"reads configuration"| node_templates
node_user -->|"imports PDF"| node_import
node_import -->|"provides resume"| node_resume_state
node_editor -->|"shows ATS feedback"| node_ats
node_editor -->|"simulates ATS parsing"| node_ats_sim
node_editor -->|"offers writing advice"| node_writing
node_editor -->|"matches job description"| node_semantic
node_editor -->|"measures page fit"| node_fit
node_editor -->|"checks contrast"| node_contrast
node_user -->|"exports PDF"| node_pdf
node_user -->|"exports Word"| node_word
node_user -->|"shares encrypted link"| node_sharing
node_dashboard -->|"reads library"| node_app_state
node_app_state -->|"loads and saves settings"| node_storage
node_autosave -->|"saves document"| node_storage
node_dashboard -->|"loads resumes"| node_storage
node_user -->|"browses examples"| node_examples
node_user -->|"installs app"| node_offline

click node_router "https://github.com/akhil-dara/cvaurum/blob/main/src/app/router.tsx"
click node_dashboard "https://github.com/akhil-dara/cvaurum/blob/main/src/routes/Dashboard.tsx"
click node_newresume "https://github.com/akhil-dara/cvaurum/blob/main/src/components/dashboard/newResume.tsx"
click node_editor "https://github.com/akhil-dara/cvaurum/blob/main/src/components/editor/Editor.tsx"
click node_resume_state "https://github.com/akhil-dara/cvaurum/blob/main/src/store/useResumeStore.ts"
click node_document_model "https://github.com/akhil-dara/cvaurum/blob/main/src/types/document.ts"
click node_templates "https://github.com/akhil-dara/cvaurum/blob/main/src/templates/registry.ts"
click node_template_apply "https://github.com/akhil-dara/cvaurum/blob/main/src/lib/templateApply.ts"
click node_renderer "https://github.com/akhil-dara/cvaurum/blob/main/src/templates/TemplateRenderer.tsx"
click node_preview "https://github.com/akhil-dara/cvaurum/blob/main/src/components/preview/ResumePreview.tsx"
click node_import "https://github.com/akhil-dara/cvaurum/blob/main/src/lib/import/parse.ts"
click node_ats "https://github.com/akhil-dara/cvaurum/blob/main/src/lib/ats.ts"
click node_ats_sim "https://github.com/akhil-dara/cvaurum/blob/main/src/lib/atsSimulate.ts"
click node_writing "https://github.com/akhil-dara/cvaurum/blob/main/src/lib/writing.ts"
click node_semantic "https://github.com/akhil-dara/cvaurum/blob/main/src/lib/semantic/semantic.worker.ts"
click node_fit "https://github.com/akhil-dara/cvaurum/blob/main/src/lib/fitOnePage.ts"
click node_contrast "https://github.com/akhil-dara/cvaurum/blob/main/src/lib/a11y/index.ts"
click node_pdf "https://github.com/akhil-dara/cvaurum/blob/main/src/lib/pdf/exportFlow.ts"
click node_word "https://github.com/akhil-dara/cvaurum/blob/main/src/lib/docx.ts"
click node_sharing "https://github.com/akhil-dara/cvaurum/blob/main/src/lib/share.ts"
click node_storage "https://github.com/akhil-dara/cvaurum/blob/main/src/lib/storage.ts"
click node_app_state "https://github.com/akhil-dara/cvaurum/blob/main/src/store/useAppStore.ts"
click node_autosave "https://github.com/akhil-dara/cvaurum/blob/main/src/hooks/useAutosave.ts"
click node_examples "https://github.com/akhil-dara/cvaurum/blob/main/src/data/library/index.ts"
click node_offline "https://github.com/akhil-dara/cvaurum/blob/main/src/hooks/useInstallPrompt.ts"

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_router,node_dashboard,node_examples,node_offline toneBlue
class node_newresume,node_editor,node_resume_state,node_document_model,node_templates,node_template_apply,node_renderer,node_preview,node_import toneAmber
class node_ats,node_ats_sim,node_writing,node_semantic,node_fit,node_contrast toneMint
class node_pdf,node_word,node_sharing toneRose
class node_storage,node_app_state,node_autosave,node_user toneIndigo
```

## Components

### Application

- [Application routes](https://github.com/akhil-dara/cvaurum/blob/main/src/app/router.tsx): `src/app/router.tsx`
- [Resume dashboard](https://github.com/akhil-dara/cvaurum/blob/main/src/routes/Dashboard.tsx): `src/routes/Dashboard.tsx`
- [Example resume library](https://github.com/akhil-dara/cvaurum/blob/main/src/data/library/index.ts): `src/data/library/index.ts`
- [Offline installation](https://github.com/akhil-dara/cvaurum/blob/main/src/hooks/useInstallPrompt.ts): `src/hooks/useInstallPrompt.ts`

### Resume authoring

- [Resume creation](https://github.com/akhil-dara/cvaurum/blob/main/src/components/dashboard/newResume.tsx): `src/components/dashboard/newResume.tsx`
- [Resume editor](https://github.com/akhil-dara/cvaurum/blob/main/src/components/editor/Editor.tsx): `src/components/editor/Editor.tsx`
- [Resume document state](https://github.com/akhil-dara/cvaurum/blob/main/src/store/useResumeStore.ts): `src/store/useResumeStore.ts`
- [Resume document model](https://github.com/akhil-dara/cvaurum/blob/main/src/types/document.ts): `src/types/document.ts`
- [Template catalog](https://github.com/akhil-dara/cvaurum/blob/main/src/templates/registry.ts): `src/templates/registry.ts`
- [Template application](https://github.com/akhil-dara/cvaurum/blob/main/src/lib/templateApply.ts): `src/lib/templateApply.ts`
- [Template renderer](https://github.com/akhil-dara/cvaurum/blob/main/src/templates/TemplateRenderer.tsx): `src/templates/TemplateRenderer.tsx`
- [Live resume preview](https://github.com/akhil-dara/cvaurum/blob/main/src/components/preview/ResumePreview.tsx): `src/components/preview/ResumePreview.tsx`
- [PDF resume import](https://github.com/akhil-dara/cvaurum/blob/main/src/lib/import/parse.ts): `src/lib/import/parse.ts`

### Review and tailoring

- [ATS analysis](https://github.com/akhil-dara/cvaurum/blob/main/src/lib/ats.ts): `src/lib/ats.ts`
- [ATS parse simulation](https://github.com/akhil-dara/cvaurum/blob/main/src/lib/atsSimulate.ts): `src/lib/atsSimulate.ts`
- [Writing coach](https://github.com/akhil-dara/cvaurum/blob/main/src/lib/writing.ts): `src/lib/writing.ts`
- [Job matching](https://github.com/akhil-dara/cvaurum/blob/main/src/lib/semantic/semantic.worker.ts): `src/lib/semantic/semantic.worker.ts`
- [Page fit tools](https://github.com/akhil-dara/cvaurum/blob/main/src/lib/fitOnePage.ts): `src/lib/fitOnePage.ts`
- [Contrast audit and fixes](https://github.com/akhil-dara/cvaurum/blob/main/src/lib/a11y/index.ts): `src/lib/a11y/index.ts`

### Export and sharing

- [Accessible PDF export](https://github.com/akhil-dara/cvaurum/blob/main/src/lib/pdf/exportFlow.ts): `src/lib/pdf/exportFlow.ts`
- [Word document export](https://github.com/akhil-dara/cvaurum/blob/main/src/lib/docx.ts): `src/lib/docx.ts`
- [Encrypted resume sharing](https://github.com/akhil-dara/cvaurum/blob/main/src/lib/share.ts): `src/lib/share.ts`

### Local data

- [IndexedDB persistence](https://github.com/akhil-dara/cvaurum/blob/main/src/lib/storage.ts): `src/lib/storage.ts`
- [Settings and library state](https://github.com/akhil-dara/cvaurum/blob/main/src/store/useAppStore.ts): `src/store/useAppStore.ts`
- [Resume autosave](https://github.com/akhil-dara/cvaurum/blob/main/src/hooks/useAutosave.ts): `src/hooks/useAutosave.ts`

### Other components

- **Resume author**

## Connections

- Resume author → Application routes: opens app
- Application routes → Resume dashboard: routes to (evidence: `src/app/router.tsx`)
- Resume author → Resume dashboard: manages resumes
- Resume dashboard → Resume creation: starts creation (evidence: `src/routes/Dashboard.tsx`)
- Resume creation → Template application: applies defaults (evidence: `src/components/dashboard/newResume.tsx`)
- Resume creation → Template catalog: chooses template (evidence: `src/components/dashboard/newResume.tsx`)
- Resume author → Resume editor: edits resume
- Resume editor → Resume document state: updates document
- Resume document state → Resume document model: holds document (evidence: `src/store/useResumeStore.ts`)
- Resume editor → Live resume preview: shows changes
- Live resume preview → Template renderer: renders pages (evidence: `src/components/preview/ResumePreview.tsx`)
- Template renderer → Template catalog: reads configuration (evidence: `src/templates/TemplateRenderer.tsx`)
- Resume author → PDF resume import: imports PDF
- PDF resume import → Resume document state: provides resume
- Resume editor → ATS analysis: shows ATS feedback
- Resume editor → ATS parse simulation: simulates ATS parsing
- Resume editor → Writing coach: offers writing advice
- Resume editor → Job matching: matches job description
- Resume editor → Page fit tools: measures page fit
- Resume editor → Contrast audit and fixes: checks contrast
- Resume author → Accessible PDF export: exports PDF
- Resume author → Word document export: exports Word
- Resume author → Encrypted resume sharing: shares encrypted link
- Resume dashboard → Settings and library state: reads library (evidence: `src/routes/Dashboard.tsx`)
- Settings and library state → IndexedDB persistence: loads and saves settings (evidence: `src/store/useAppStore.ts`)
- Resume autosave → IndexedDB persistence: saves document (evidence: `src/hooks/useAutosave.ts`)
- Resume dashboard → IndexedDB persistence: loads resumes (evidence: `src/routes/Dashboard.tsx`)
- Resume author → Example resume library: browses examples
- Resume author → Offline installation: installs app
