# burakorkmez/ai-resume-builder architecture

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

- Interactive diagram: https://gitdiagram.com/burakorkmez/ai-resume-builder
- Repository: https://github.com/burakorkmez/ai-resume-builder

## Overview

Veyro is a resume-building web app with editing, AI-assisted improvement and job tailoring, resume management, and paid Pro billing. The main workflow runs from dashboard creation to resume editing and review; client state autosaves through server actions to persistent storage. Sign-in and subscription management are supporting branches. Several modules are represented from the source index and README-level product context; their internal behavior was not sampled, so uncertain connections are omitted.

Main entry points: [`lib/store.ts`](https://github.com/burakorkmez/ai-resume-builder/blob/master/lib/store.ts) (Client state and autosave), [`components/editor/editor.tsx`](https://github.com/burakorkmez/ai-resume-builder/blob/master/components/editor/editor.tsx) (Resume editor), [`lib/actions.ts`](https://github.com/burakorkmez/ai-resume-builder/blob/master/lib/actions.ts) (Server actions), [`lib/billing.ts`](https://github.com/burakorkmez/ai-resume-builder/blob/master/lib/billing.ts) (Billing service)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["Resume experience"]
  node_dashboard["Resume dashboard<br/>[dashboard.tsx]"]
  node_editor["Resume editor<br/>[editor.tsx]"]
  node_form["Resume form<br/>[form.tsx]"]
  node_review["Suggestion review<br/>[review.tsx]"]
  node_document["Resume rendering"]
  node_store["Client state and autosave<br/>[store.ts]"]
  node_resume["Resume model<br/>[resume.ts]"]
end

subgraph group_account["Accounts and billing"]
  node_auth["Authentication<br/>[auth.ts]"]
  node_authroute["Auth API route<br/>[route.ts]"]
  node_accountui["Account settings<br/>[account.tsx]"]
  node_billingui["Billing management<br/>[billing.tsx]"]
  node_billing["Billing service<br/>[billing.ts]"]
  node_webhook["Polar webhook<br/>[route.ts]"]
  node_signin["Sign-in page<br/>[page.tsx]"]
  node_authclient["Auth client<br/>[auth-client.ts]"]
end

subgraph group_services["Application services"]
  node_actions["Server actions<br/>[actions.ts]"]
  node_database["Postgres data access<br/>[db.ts]"]
  node_ai["AI resume service<br/>[ai.ts]"]
end

subgraph group_marketing["Public site"]
  node_landing["Landing page<br/>[page.tsx]"]
  node_hero["Landing hero<br/>[hero.tsx]"]
  node_sample["Sample resume<br/>[sample-resume.tsx]"]
end

node_visitor(("Visitor"))
node_aiendpoint{{"AI function endpoint"}}
node_polar{{"Polar payments"}}

node_visitor -->|"visits"| node_landing
node_landing -->|"renders"| node_hero
node_landing -->|"renders"| node_sample
node_visitor -.->|"opens app"| node_dashboard
node_dashboard -->|"manages resumes"| node_store
node_editor -->|"edits and requests AI"| node_store
node_editor -->|"renders"| node_form
node_editor -->|"renders"| node_review
node_editor -->|"previews"| node_document
node_dashboard -->|"previews"| node_document
node_review -->|"submits decisions"| node_store
node_store -->|"saves and loads"| node_actions
node_actions -->|"reads and writes"| node_database
node_actions -->|"resolves session"| node_auth
node_actions -->|"checks subscription"| node_billing
node_actions -->|"sends AI request"| node_aiendpoint
node_aiendpoint -.->|"runs"| node_ai
node_store -->|"uses data types"| node_resume
node_editor -->|"uses resume model"| node_resume
node_form -->|"uses resume model"| node_resume
node_document -->|"formats resume data"| node_resume
node_signin -->|"uses"| node_authclient
node_authroute -->|"routes to"| node_auth
node_accountui -->|"reads account state"| node_store
node_billingui -->|"reads billing state"| node_store
node_webhook -->|"syncs subscription"| node_billing
node_billing -->|"reads and writes"| node_database
node_billingui -.->|"starts checkout"| node_polar
node_billing -->|"creates checkout"| node_polar

click node_dashboard "https://github.com/burakorkmez/ai-resume-builder/blob/master/components/app/dashboard.tsx"
click node_editor "https://github.com/burakorkmez/ai-resume-builder/blob/master/components/editor/editor.tsx"
click node_form "https://github.com/burakorkmez/ai-resume-builder/blob/master/components/editor/form.tsx"
click node_review "https://github.com/burakorkmez/ai-resume-builder/blob/master/components/editor/review.tsx"
click node_document "https://github.com/burakorkmez/ai-resume-builder/blob/master/components/resume-document.tsx"
click node_store "https://github.com/burakorkmez/ai-resume-builder/blob/master/lib/store.ts"
click node_resume "https://github.com/burakorkmez/ai-resume-builder/blob/master/lib/resume.ts"
click node_actions "https://github.com/burakorkmez/ai-resume-builder/blob/master/lib/actions.ts"
click node_database "https://github.com/burakorkmez/ai-resume-builder/blob/master/lib/db.ts"
click node_ai "https://github.com/burakorkmez/ai-resume-builder/blob/master/functions/ai.ts"
click node_auth "https://github.com/burakorkmez/ai-resume-builder/blob/master/lib/auth.ts"
click node_authroute "https://github.com/burakorkmez/ai-resume-builder/blob/master/app/api/auth/%5B...path%5D/route.ts"
click node_accountui "https://github.com/burakorkmez/ai-resume-builder/blob/master/components/app/account.tsx"
click node_billingui "https://github.com/burakorkmez/ai-resume-builder/blob/master/components/app/billing.tsx"
click node_billing "https://github.com/burakorkmez/ai-resume-builder/blob/master/lib/billing.ts"
click node_webhook "https://github.com/burakorkmez/ai-resume-builder/blob/master/app/api/webhooks/polar/route.ts"
click node_landing "https://github.com/burakorkmez/ai-resume-builder/blob/master/app/page.tsx"
click node_hero "https://github.com/burakorkmez/ai-resume-builder/blob/master/components/landing/hero.tsx"
click node_sample "https://github.com/burakorkmez/ai-resume-builder/blob/master/components/landing/sample-resume.tsx"
click node_signin "https://github.com/burakorkmez/ai-resume-builder/blob/master/app/auth/sign-in/page.tsx"
click node_authclient "https://github.com/burakorkmez/ai-resume-builder/blob/master/lib/auth-client.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_dashboard,node_editor,node_form,node_review,node_document,node_store,node_resume toneBlue
class node_auth,node_authroute,node_accountui,node_billingui,node_billing,node_webhook,node_signin,node_authclient toneAmber
class node_actions,node_database,node_ai toneMint
class node_landing,node_hero,node_sample toneRose
class node_visitor,node_aiendpoint,node_polar toneIndigo
```

## Components

### Resume experience

- [Resume dashboard](https://github.com/burakorkmez/ai-resume-builder/blob/master/components/app/dashboard.tsx): `components/app/dashboard.tsx`
- [Resume editor](https://github.com/burakorkmez/ai-resume-builder/blob/master/components/editor/editor.tsx): `components/editor/editor.tsx`
- [Resume form](https://github.com/burakorkmez/ai-resume-builder/blob/master/components/editor/form.tsx): `components/editor/form.tsx`
- [Suggestion review](https://github.com/burakorkmez/ai-resume-builder/blob/master/components/editor/review.tsx): `components/editor/review.tsx`
- [Resume rendering](https://github.com/burakorkmez/ai-resume-builder/blob/master/components/resume-document.tsx): `components/resume-document.tsx`
- [Client state and autosave](https://github.com/burakorkmez/ai-resume-builder/blob/master/lib/store.ts): `lib/store.ts`
- [Resume model](https://github.com/burakorkmez/ai-resume-builder/blob/master/lib/resume.ts): `lib/resume.ts`

### Accounts and billing

- [Authentication](https://github.com/burakorkmez/ai-resume-builder/blob/master/lib/auth.ts): `lib/auth.ts`
- [Auth API route](https://github.com/burakorkmez/ai-resume-builder/blob/master/app/api/auth/%5B...path%5D/route.ts): `app/api/auth/[...path]/route.ts`
- [Account settings](https://github.com/burakorkmez/ai-resume-builder/blob/master/components/app/account.tsx): `components/app/account.tsx`
- [Billing management](https://github.com/burakorkmez/ai-resume-builder/blob/master/components/app/billing.tsx): `components/app/billing.tsx`
- [Billing service](https://github.com/burakorkmez/ai-resume-builder/blob/master/lib/billing.ts): `lib/billing.ts`
- [Polar webhook](https://github.com/burakorkmez/ai-resume-builder/blob/master/app/api/webhooks/polar/route.ts): `app/api/webhooks/polar/route.ts`
- [Sign-in page](https://github.com/burakorkmez/ai-resume-builder/blob/master/app/auth/sign-in/page.tsx): `app/auth/sign-in/page.tsx`
- [Auth client](https://github.com/burakorkmez/ai-resume-builder/blob/master/lib/auth-client.ts): `lib/auth-client.ts`

### Application services

- [Server actions](https://github.com/burakorkmez/ai-resume-builder/blob/master/lib/actions.ts): `lib/actions.ts`
- [Postgres data access](https://github.com/burakorkmez/ai-resume-builder/blob/master/lib/db.ts): `lib/db.ts`
- [AI resume service](https://github.com/burakorkmez/ai-resume-builder/blob/master/functions/ai.ts): `functions/ai.ts`

### Public site

- [Landing page](https://github.com/burakorkmez/ai-resume-builder/blob/master/app/page.tsx): `app/page.tsx`
- [Landing hero](https://github.com/burakorkmez/ai-resume-builder/blob/master/components/landing/hero.tsx): `components/landing/hero.tsx`
- [Sample resume](https://github.com/burakorkmez/ai-resume-builder/blob/master/components/landing/sample-resume.tsx): `components/landing/sample-resume.tsx`

### Other components

- **Visitor**
- **AI function endpoint**
- **Polar payments**

## Connections

- Visitor → Landing page: visits (evidence: `app/page.tsx`)
- Landing page → Landing hero: renders (evidence: `app/page.tsx`)
- Landing page → Sample resume: renders (evidence: `app/page.tsx`)
- Visitor → Resume dashboard: opens app
- Resume dashboard → Client state and autosave: manages resumes (evidence: `components/app/dashboard.tsx`)
- Resume editor → Client state and autosave: edits and requests AI (evidence: `components/editor/editor.tsx`)
- Resume editor → Resume form: renders (evidence: `components/editor/editor.tsx`)
- Resume editor → Suggestion review: renders (evidence: `components/editor/editor.tsx`)
- Resume editor → Resume rendering: previews (evidence: `components/editor/editor.tsx`)
- Resume dashboard → Resume rendering: previews (evidence: `components/app/dashboard.tsx`)
- Suggestion review → Client state and autosave: submits decisions (evidence: `components/editor/review.tsx`)
- Client state and autosave → Server actions: saves and loads (evidence: `lib/store.ts`)
- Server actions → Postgres data access: reads and writes (evidence: `lib/actions.ts`)
- Server actions → Authentication: resolves session (evidence: `lib/actions.ts`)
- Server actions → Billing service: checks subscription (evidence: `lib/actions.ts`)
- Server actions → AI function endpoint: sends AI request (evidence: `lib/actions.ts`)
- AI function endpoint → AI resume service: runs
- Client state and autosave → Resume model: uses data types (evidence: `lib/store.ts`)
- Resume editor → Resume model: uses resume model (evidence: `components/editor/editor.tsx`)
- Resume form → Resume model: uses resume model (evidence: `components/editor/form.tsx`)
- Resume rendering → Resume model: formats resume data (evidence: `components/resume-document.tsx`)
- Sign-in page → Auth client: uses (evidence: `app/auth/sign-in/page.tsx`)
- Auth API route → Authentication: routes to (evidence: `app/api/auth/[...path]/route.ts`)
- Account settings → Client state and autosave: reads account state (evidence: `components/app/account.tsx`)
- Billing management → Client state and autosave: reads billing state (evidence: `components/app/billing.tsx`)
- Polar webhook → Billing service: syncs subscription (evidence: `app/api/webhooks/polar/route.ts`)
- Billing service → Postgres data access: reads and writes (evidence: `lib/billing.ts`)
- Billing management → Polar payments: starts checkout
- Billing service → Polar payments: creates checkout
