# synchronium/cvbuilder architecture

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

- Interactive diagram: https://gitdiagram.com/synchronium/cvbuilder
- Repository: https://github.com/synchronium/cvbuilder

## Overview

CV Builder turns validated career JSON into a resolved view model, then renders it in a selectable, print-first template. The UI also loads targeted variants and supports browser printing. The README documents Claude Code workflows for onboarding, content review, variant creation, comparison and cover letters, but those skills are not present in the supplied source tree, so they are not mapped as runtime components. Template internals beyond sampled files are represented by their exact directories; edges are limited to excerpted or indexed relationships and README statements.

Main entry points: [`src/App.tsx`](https://github.com/synchronium/cvbuilder/blob/main/src/App.tsx) (App orchestration), [`src/templates/registry.ts`](https://github.com/synchronium/cvbuilder/blob/main/src/templates/registry.ts) (Template registry), [`src/templates/_shared`](https://github.com/synchronium/cvbuilder/tree/main/src/templates/_shared) (Shared primitives), [`src/components/CVPage.tsx`](https://github.com/synchronium/cvbuilder/blob/main/src/components/CVPage.tsx) (CV page)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ui["Application UI"]
  node_app["App orchestration<br/>[App.tsx]"]
  node_page["CV page<br/>[CVPage.tsx]"]
  node_controls["Page controls"]
  node_empty["Empty state<br/>[EmptyState.tsx]"]
  node_boundary["Error boundary<br/>[ErrorBoundary.tsx]"]
end

subgraph group_data["CV data pipeline"]
  node_base["Base CV loader<br/>[baseCv.ts]"]
  node_variants["Variant loader<br/>[variants.ts]"]
  node_schema["CV schema<br/>[schemas.ts]"]
  node_resolver["CV resolver<br/>[resolveCv.ts]"]
  node_duration["Date and duration<br/>[duration.ts]"]
end

subgraph group_templates["Rendering templates"]
  node_registry["Template registry<br/>[registry.ts]"]
  node_classic["Classic template"]
  node_two_col["Two-column template"]
  node_divided["Divided template"]
  node_vivid["Vivid template"]
end

subgraph group_shared["Shared presentation"]
  node_shared["Shared primitives"]
  node_inline["Inline emphasis parser<br/>[parseInline.ts]"]
end

node_person(("CV user"))
node_browser["Browser print"]

node_person -->|"selects CV"| node_app
node_app -->|"loads base data"| node_base
node_app -->|"loads selected variant"| node_variants
node_app -->|"resolves active data"| node_resolver
node_resolver -->|"validates with"| node_schema
node_resolver -->|"formats dates"| node_duration
node_app -->|"selects template"| node_registry
node_app -->|"renders page"| node_page
node_app -->|"renders when empty"| node_empty
node_page -->|"renders controls"| node_controls
node_registry -->|"registers template"| node_classic
node_registry -->|"registers template"| node_two_col
node_registry -->|"registers template"| node_divided
node_registry -->|"registers template"| node_vivid
node_page -->|"renders selected"| node_classic
node_classic -.->|"composes primitives"| node_shared
node_two_col -->|"composes primitives"| node_shared
node_divided -->|"composes primitives"| node_shared
node_vivid -->|"composes primitives"| node_shared
node_shared -->|"parses emphasis"| node_inline
node_person -->|"prints to PDF"| node_browser

click node_app "https://github.com/synchronium/cvbuilder/blob/main/src/App.tsx"
click node_page "https://github.com/synchronium/cvbuilder/blob/main/src/components/CVPage.tsx"
click node_controls "https://github.com/synchronium/cvbuilder/tree/main/src/components"
click node_empty "https://github.com/synchronium/cvbuilder/blob/main/src/components/EmptyState.tsx"
click node_boundary "https://github.com/synchronium/cvbuilder/blob/main/src/components/ErrorBoundary.tsx"
click node_base "https://github.com/synchronium/cvbuilder/blob/main/src/data/baseCv.ts"
click node_variants "https://github.com/synchronium/cvbuilder/blob/main/src/data/variants.ts"
click node_schema "https://github.com/synchronium/cvbuilder/blob/main/src/data/schemas.ts"
click node_resolver "https://github.com/synchronium/cvbuilder/blob/main/src/data/resolveCv.ts"
click node_duration "https://github.com/synchronium/cvbuilder/blob/main/src/data/duration.ts"
click node_registry "https://github.com/synchronium/cvbuilder/blob/main/src/templates/registry.ts"
click node_classic "https://github.com/synchronium/cvbuilder/tree/main/src/templates/classic"
click node_two_col "https://github.com/synchronium/cvbuilder/tree/main/src/templates/two-column"
click node_divided "https://github.com/synchronium/cvbuilder/tree/main/src/templates/divided"
click node_vivid "https://github.com/synchronium/cvbuilder/tree/main/src/templates/vivid"
click node_shared "https://github.com/synchronium/cvbuilder/tree/main/src/templates/_shared"
click node_inline "https://github.com/synchronium/cvbuilder/blob/main/src/utils/parseInline.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_app,node_page,node_controls,node_empty,node_boundary,node_person,node_browser toneBlue
class node_base,node_variants,node_schema,node_resolver,node_duration toneAmber
class node_registry,node_classic,node_two_col,node_divided,node_vivid toneMint
class node_shared,node_inline toneRose
```

## Components

### Application UI

- [App orchestration](https://github.com/synchronium/cvbuilder/blob/main/src/App.tsx): `src/App.tsx`
- [CV page](https://github.com/synchronium/cvbuilder/blob/main/src/components/CVPage.tsx): `src/components/CVPage.tsx`
- [Page controls](https://github.com/synchronium/cvbuilder/tree/main/src/components): `src/components`
- [Empty state](https://github.com/synchronium/cvbuilder/blob/main/src/components/EmptyState.tsx): `src/components/EmptyState.tsx`
- [Error boundary](https://github.com/synchronium/cvbuilder/blob/main/src/components/ErrorBoundary.tsx): `src/components/ErrorBoundary.tsx`

### CV data pipeline

- [Base CV loader](https://github.com/synchronium/cvbuilder/blob/main/src/data/baseCv.ts): `src/data/baseCv.ts`
- [Variant loader](https://github.com/synchronium/cvbuilder/blob/main/src/data/variants.ts): `src/data/variants.ts`
- [CV schema](https://github.com/synchronium/cvbuilder/blob/main/src/data/schemas.ts): `src/data/schemas.ts`
- [CV resolver](https://github.com/synchronium/cvbuilder/blob/main/src/data/resolveCv.ts): `src/data/resolveCv.ts`
- [Date and duration](https://github.com/synchronium/cvbuilder/blob/main/src/data/duration.ts): `src/data/duration.ts`

### Rendering templates

- [Template registry](https://github.com/synchronium/cvbuilder/blob/main/src/templates/registry.ts): `src/templates/registry.ts`
- [Classic template](https://github.com/synchronium/cvbuilder/tree/main/src/templates/classic): `src/templates/classic`
- [Two-column template](https://github.com/synchronium/cvbuilder/tree/main/src/templates/two-column): `src/templates/two-column`
- [Divided template](https://github.com/synchronium/cvbuilder/tree/main/src/templates/divided): `src/templates/divided`
- [Vivid template](https://github.com/synchronium/cvbuilder/tree/main/src/templates/vivid): `src/templates/vivid`

### Shared presentation

- [Shared primitives](https://github.com/synchronium/cvbuilder/tree/main/src/templates/_shared): `src/templates/_shared`
- [Inline emphasis parser](https://github.com/synchronium/cvbuilder/blob/main/src/utils/parseInline.ts): `src/utils/parseInline.ts`

### Other components

- **CV user**
- **Browser print**

## Connections

- CV user → App orchestration: selects CV (evidence: `README.md`)
- App orchestration → Base CV loader: loads base data (evidence: `src/App.tsx`)
- App orchestration → Variant loader: loads selected variant (evidence: `src/App.tsx`)
- App orchestration → CV resolver: resolves active data (evidence: `src/App.tsx`)
- CV resolver → CV schema: validates with (evidence: `src/data/resolveCv.ts`)
- CV resolver → Date and duration: formats dates (evidence: `src/data/resolveCv.ts`)
- App orchestration → Template registry: selects template (evidence: `src/App.tsx`)
- App orchestration → CV page: renders page (evidence: `src/App.tsx`)
- App orchestration → Empty state: renders when empty (evidence: `src/App.tsx`)
- CV page → Page controls: renders controls (evidence: `src/components/CVPage.tsx`)
- Template registry → Classic template: registers template (evidence: `src/templates/registry.ts`)
- Template registry → Two-column template: registers template (evidence: `src/templates/registry.ts`)
- Template registry → Divided template: registers template (evidence: `src/templates/registry.ts`)
- Template registry → Vivid template: registers template (evidence: `src/templates/registry.ts`)
- CV page → Classic template: renders selected (evidence: `src/components/CVPage.tsx`)
- Classic template → Shared primitives: composes primitives (evidence: `README.md`)
- Two-column template → Shared primitives: composes primitives (evidence: `src/templates/two-column/TwoColumnSidebar.tsx`)
- Divided template → Shared primitives: composes primitives (evidence: `src/templates/divided/DividedRole.tsx`)
- Vivid template → Shared primitives: composes primitives (evidence: `src/templates/vivid/VividTemplate.tsx`)
- Shared primitives → Inline emphasis parser: parses emphasis (evidence: `src/templates/_shared/Prose.tsx`)
- CV user → Browser print: prints to PDF (evidence: `README.md`)
