# shiva-kar/resume-builder architecture

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

- Interactive diagram: https://gitdiagram.com/shiva-kar/resume-builder
- Repository: https://github.com/shiva-kar/resume-builder

## Overview

Resume Builder lets users enter and organize resume content, customize its appearance, preview the result, and export a PDF; it also ships as an offline Electron desktop app. The main web page coordinates editing and preview, while section forms update persistent shared state and the preview renders that state using configurable layouts and paper sizes. The README documents template variety, drag-and-drop, typography and theme controls. Some subsystem links are based on README descriptions or indexed references rather than inspected implementation excerpts.

Main entry points: [`src/lib/store.ts`](https://github.com/shiva-kar/resume-builder/blob/main/src/lib/store.ts) (Resume store), [`src/components/pdf/LivePreview.tsx`](https://github.com/shiva-kar/resume-builder/blob/main/src/components/pdf/LivePreview.tsx) (Live preview), [`src/app/page.tsx`](https://github.com/shiva-kar/resume-builder/blob/main/src/app/page.tsx) (Builder page), [`src/components/editor`](https://github.com/shiva-kar/resume-builder/tree/main/src/components/editor) (Section forms)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_editing["Resume Editing"]
  node_webapp["Builder page<br/>[page.tsx]"]
  node_sectionforms["Section forms"]
  node_customform["Custom sections"]
  node_forminput["Rich text input<br/>[FormInput.tsx]"]
  node_sectionwrapper["Section reordering<br/>[SectionWrapper.tsx]"]
end

subgraph group_state["Resume State"]
  node_schema["Resume schema<br/>[schema.ts]"]
  node_store[("Resume store<br/>[store.ts]")]
  node_localstorage[("Browser storage")]
end

subgraph group_rendering["Preview and Export"]
  node_livepreview["Live preview<br/>[LivePreview.tsx]"]
  node_canvas["Resume canvas<br/>[PreviewCanvas.tsx]"]
  node_templates["Resume templates<br/>[templates.ts]"]
  node_papersizes["Paper sizes<br/>[paperSizes.ts]"]
  node_formatting["Text formatting<br/>[formatting.ts]"]
  node_pdfviewer["PDF viewer<br/>[PDFViewer.tsx]"]
  node_pdfexport["PDF export<br/>[ResumePDF.tsx]"]
end

subgraph group_desktop["Desktop App"]
  node_desktop["Electron window<br/>[main.js]"]
end

node_user(("Resume author"))
node_desktopuser(("Desktop user"))

node_user -->|"edits resume"| node_webapp
node_webapp -->|"presents forms"| node_sectionforms
node_webapp -->|"opens preview"| node_livepreview
node_sectionforms -->|"updates state"| node_store
node_customform -->|"updates state"| node_store
node_sectionforms -->|"uses inputs"| node_forminput
node_sectionwrapper -->|"reorders sections"| node_store
node_store -->|"uses types"| node_schema
node_store -->|"persists data"| node_localstorage
node_livepreview -->|"reads resume"| node_store
node_livepreview -->|"renders preview"| node_canvas
node_canvas -->|"formats text"| node_formatting
node_livepreview -->|"sizes pages"| node_papersizes
node_canvas -.->|"uses layouts"| node_templates
node_pdfviewer -->|"renders document"| node_pdfexport
node_pdfexport -->|"uses dimensions"| node_papersizes
node_desktopuser -->|"launches app"| node_desktop
node_desktop -->|"loads offline app"| node_webapp

click node_webapp "https://github.com/shiva-kar/resume-builder/blob/main/src/app/page.tsx"
click node_sectionforms "https://github.com/shiva-kar/resume-builder/tree/main/src/components/editor"
click node_customform "https://github.com/shiva-kar/resume-builder/blob/main/src/components/editor/CustomSectionForm.tsx"
click node_forminput "https://github.com/shiva-kar/resume-builder/blob/main/src/components/editor/FormInput.tsx"
click node_sectionwrapper "https://github.com/shiva-kar/resume-builder/blob/main/src/components/editor/SectionWrapper.tsx"
click node_schema "https://github.com/shiva-kar/resume-builder/blob/main/src/lib/schema.ts"
click node_store "https://github.com/shiva-kar/resume-builder/blob/main/src/lib/store.ts"
click node_livepreview "https://github.com/shiva-kar/resume-builder/blob/main/src/components/pdf/LivePreview.tsx"
click node_canvas "https://github.com/shiva-kar/resume-builder/blob/main/src/components/pdf/PreviewCanvas.tsx"
click node_templates "https://github.com/shiva-kar/resume-builder/blob/main/src/lib/templates.ts"
click node_papersizes "https://github.com/shiva-kar/resume-builder/blob/main/src/lib/paperSizes.ts"
click node_formatting "https://github.com/shiva-kar/resume-builder/blob/main/src/lib/formatting.ts"
click node_pdfviewer "https://github.com/shiva-kar/resume-builder/blob/main/src/components/pdf/PDFViewer.tsx"
click node_pdfexport "https://github.com/shiva-kar/resume-builder/blob/main/src/components/pdf/ResumePDF.tsx"
click node_desktop "https://github.com/shiva-kar/resume-builder/blob/main/electron/main.js"

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_sectionforms,node_customform,node_forminput,node_sectionwrapper,node_desktopuser toneBlue
class node_schema,node_store,node_localstorage toneAmber
class node_livepreview,node_canvas,node_templates,node_papersizes,node_formatting,node_pdfviewer,node_pdfexport toneMint
class node_desktop toneRose
class node_user toneIndigo
```

## Components

### Resume Editing

- [Builder page](https://github.com/shiva-kar/resume-builder/blob/main/src/app/page.tsx): `src/app/page.tsx`
- [Section forms](https://github.com/shiva-kar/resume-builder/tree/main/src/components/editor): `src/components/editor`
- [Custom sections](https://github.com/shiva-kar/resume-builder/blob/main/src/components/editor/CustomSectionForm.tsx): `src/components/editor/CustomSectionForm.tsx`
- [Rich text input](https://github.com/shiva-kar/resume-builder/blob/main/src/components/editor/FormInput.tsx): `src/components/editor/FormInput.tsx`
- [Section reordering](https://github.com/shiva-kar/resume-builder/blob/main/src/components/editor/SectionWrapper.tsx): `src/components/editor/SectionWrapper.tsx`

### Resume State

- [Resume schema](https://github.com/shiva-kar/resume-builder/blob/main/src/lib/schema.ts): `src/lib/schema.ts`
- [Resume store](https://github.com/shiva-kar/resume-builder/blob/main/src/lib/store.ts): `src/lib/store.ts`
- **Browser storage**

### Preview and Export

- [Live preview](https://github.com/shiva-kar/resume-builder/blob/main/src/components/pdf/LivePreview.tsx): `src/components/pdf/LivePreview.tsx`
- [Resume canvas](https://github.com/shiva-kar/resume-builder/blob/main/src/components/pdf/PreviewCanvas.tsx): `src/components/pdf/PreviewCanvas.tsx`
- [Resume templates](https://github.com/shiva-kar/resume-builder/blob/main/src/lib/templates.ts): `src/lib/templates.ts`
- [Paper sizes](https://github.com/shiva-kar/resume-builder/blob/main/src/lib/paperSizes.ts): `src/lib/paperSizes.ts`
- [Text formatting](https://github.com/shiva-kar/resume-builder/blob/main/src/lib/formatting.ts): `src/lib/formatting.ts`
- [PDF viewer](https://github.com/shiva-kar/resume-builder/blob/main/src/components/pdf/PDFViewer.tsx): `src/components/pdf/PDFViewer.tsx`
- [PDF export](https://github.com/shiva-kar/resume-builder/blob/main/src/components/pdf/ResumePDF.tsx): `src/components/pdf/ResumePDF.tsx`

### Desktop App

- [Electron window](https://github.com/shiva-kar/resume-builder/blob/main/electron/main.js): `electron/main.js`

### Other components

- **Resume author**
- **Desktop user**

## Connections

- Resume author → Builder page: edits resume (evidence: `README.md`)
- Builder page → Section forms: presents forms (evidence: `src/app/page.tsx`)
- Builder page → Live preview: opens preview (evidence: `src/app/page.tsx`)
- Section forms → Resume store: updates state (evidence: `src/components/editor/PersonalInfoForm.tsx`)
- Custom sections → Resume store: updates state (evidence: `src/components/editor/CustomSectionForm.tsx`)
- Section forms → Rich text input: uses inputs (evidence: `src/components/editor/PersonalInfoForm.tsx`)
- Section reordering → Resume store: reorders sections (evidence: `src/components/editor/SectionWrapper.tsx`)
- Resume store → Resume schema: uses types (evidence: `src/lib/store.ts`)
- Resume store → Browser storage: persists data (evidence: `src/lib/store.ts`)
- Live preview → Resume store: reads resume (evidence: `src/components/pdf/LivePreview.tsx`)
- Live preview → Resume canvas: renders preview (evidence: `src/components/pdf/LivePreview.tsx`)
- Resume canvas → Text formatting: formats text (evidence: `src/components/pdf/PreviewCanvas.tsx`)
- Live preview → Paper sizes: sizes pages (evidence: `src/components/pdf/LivePreview.tsx`)
- Resume canvas → Resume templates: uses layouts
- PDF viewer → PDF export: renders document (evidence: `src/components/pdf/PDFViewer.tsx`)
- PDF export → Paper sizes: uses dimensions (evidence: `src/components/pdf/ResumePDF.tsx`)
- Desktop user → Electron window: launches app (evidence: `README.md`)
- Electron window → Builder page: loads offline app (evidence: `README.md`)
