# support-local-repo/virtualphotobooth.online architecture

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

- Interactive diagram: https://gitdiagram.com/support-local-repo/virtualphotobooth.online
- Repository: https://github.com/support-local-repo/virtualphotobooth.online

## Overview

Virtual Photo Booth is a browser-based photo-strip maker: visitors enter the booth, capture photos or upload them, customize the strip, then export it. The editor composes layouts, filters, stickers, text, dates, and watermarks on a canvas. The README also describes SEO landing pages and instant downloads; the tree and source index identify upload, donation, and email features, though some implementations were not sampled. Edges below are limited to documented or indexed references; unsampled wiring is omitted.

Main entry points: [`src/modules/canvas/useCanvas.ts`](https://github.com/support-local-repo/virtualphotobooth.online/blob/main/src/modules/canvas/useCanvas.ts) (Canvas renderer), [`src/app/api/send-email/route.ts`](https://github.com/support-local-repo/virtualphotobooth.online/blob/main/src/app/api/send-email/route.ts) (Email endpoint), [`src/modules/landing/LandingPage.tsx`](https://github.com/support-local-repo/virtualphotobooth.online/blob/main/src/modules/landing/LandingPage.tsx) (Landing page), [`src/app/booth/page.tsx`](https://github.com/support-local-repo/virtualphotobooth.online/blob/main/src/app/booth/page.tsx) (Booth entry route)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_discovery["Discovery"]
  node_landing["Landing page<br/>[LandingPage.tsx]"]
  node_seo["SEO pages<br/>[SeoPage.tsx]"]
  node_features["Feature content"]
end

subgraph group_booth["Booth workflow"]
  node_booth_menu["Booth menu<br/>[BoothMenu.tsx]"]
  node_menu_route["Booth entry route<br/>[page.tsx]"]
  node_camera_route["Camera route<br/>[page.tsx]"]
  node_camera["Camera capture<br/>[BoothCamera.tsx]"]
  node_camera_hook["Camera access<br/>[useCamera.ts]"]
  node_upload["Photo upload<br/>[BoothUpload.tsx]"]
  node_result["Strip editor<br/>[BoothResult.tsx]"]
end

subgraph group_composition["Strip composition"]
  node_canvas["Canvas renderer<br/>[useCanvas.ts]"]
  node_layouts["Strip layouts<br/>[layouts.ts]"]
  node_filters["Image filters<br/>[filters.ts]"]
  node_stickers["Sticker drawing<br/>[stickers.ts]"]
  node_watermark["Watermark drawing<br/>[watermark.ts]"]
  node_templates["Strip templates"]
end

subgraph group_services["Sharing and services"]
  node_donation["Donation control<br/>[DonationButton.tsx]"]
  node_email_route["Email endpoint<br/>[route.ts]"]
  node_email_template["Email content<br/>[email.template.tsx]"]
  node_resend["Resend adapter<br/>[resend.client.ts]"]
end

node_visitor(("Visitor"))
node_paypal["PayPal"]
node_email_user(("Email recipient"))

node_visitor -->|"opens"| node_landing
node_visitor -->|"discovers"| node_seo
node_landing -->|"renders"| node_features
node_visitor -->|"opens booth"| node_menu_route
node_menu_route -->|"renders"| node_booth_menu
node_camera_route -->|"renders"| node_camera
node_camera -->|"uses camera"| node_camera_hook
node_visitor -.->|"selects photos"| node_upload
node_visitor -->|"customizes strip"| node_result
node_result -->|"renders strip"| node_canvas
node_canvas -->|"computes layout"| node_layouts
node_canvas -->|"applies filters"| node_filters
node_canvas -->|"draws stickers"| node_stickers
node_canvas -->|"draws watermark"| node_watermark
node_visitor -.->|"chooses donation"| node_donation
node_donation -.->|"opens payment"| node_paypal
node_email_user -->|"submits strip"| node_email_route
node_email_route -->|"builds message"| node_email_template
node_email_route -->|"sends attachment"| node_resend

click node_landing "https://github.com/support-local-repo/virtualphotobooth.online/blob/main/src/modules/landing/LandingPage.tsx"
click node_seo "https://github.com/support-local-repo/virtualphotobooth.online/blob/main/src/modules/landing/SeoPage.tsx"
click node_features "https://github.com/support-local-repo/virtualphotobooth.online/blob/main/src/modules/landing/FeaturesSection.tsx"
click node_booth_menu "https://github.com/support-local-repo/virtualphotobooth.online/blob/main/src/modules/booth/BoothMenu.tsx"
click node_menu_route "https://github.com/support-local-repo/virtualphotobooth.online/blob/main/src/app/booth/page.tsx"
click node_camera_route "https://github.com/support-local-repo/virtualphotobooth.online/blob/main/src/app/booth/camera/page.tsx"
click node_camera "https://github.com/support-local-repo/virtualphotobooth.online/blob/main/src/modules/booth/BoothCamera.tsx"
click node_camera_hook "https://github.com/support-local-repo/virtualphotobooth.online/blob/main/src/shared/hooks/useCamera.ts"
click node_upload "https://github.com/support-local-repo/virtualphotobooth.online/blob/main/src/modules/booth/BoothUpload.tsx"
click node_result "https://github.com/support-local-repo/virtualphotobooth.online/blob/main/src/modules/booth/BoothResult.tsx"
click node_canvas "https://github.com/support-local-repo/virtualphotobooth.online/blob/main/src/modules/canvas/useCanvas.ts"
click node_layouts "https://github.com/support-local-repo/virtualphotobooth.online/blob/main/src/modules/canvas/layouts.ts"
click node_filters "https://github.com/support-local-repo/virtualphotobooth.online/blob/main/src/modules/canvas/filters.ts"
click node_stickers "https://github.com/support-local-repo/virtualphotobooth.online/blob/main/src/modules/canvas/stickers.ts"
click node_watermark "https://github.com/support-local-repo/virtualphotobooth.online/blob/main/src/modules/canvas/watermark.ts"
click node_templates "https://github.com/support-local-repo/virtualphotobooth.online/blob/main/src/config/templates.config.ts"
click node_donation "https://github.com/support-local-repo/virtualphotobooth.online/blob/main/src/modules/donation/DonationButton.tsx"
click node_email_route "https://github.com/support-local-repo/virtualphotobooth.online/blob/main/src/app/api/send-email/route.ts"
click node_email_template "https://github.com/support-local-repo/virtualphotobooth.online/blob/main/src/modules/email/email.template.tsx"
click node_resend "https://github.com/support-local-repo/virtualphotobooth.online/blob/main/src/infrastructure/resend/resend.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_landing,node_seo,node_features toneBlue
class node_booth_menu,node_menu_route,node_camera_route,node_camera,node_camera_hook,node_upload,node_result toneAmber
class node_canvas,node_layouts,node_filters,node_stickers,node_watermark,node_templates toneMint
class node_donation,node_email_route,node_email_template,node_resend toneRose
class node_visitor,node_paypal,node_email_user toneIndigo
```

## Components

### Discovery

- [Landing page](https://github.com/support-local-repo/virtualphotobooth.online/blob/main/src/modules/landing/LandingPage.tsx): `src/modules/landing/LandingPage.tsx`
- [SEO pages](https://github.com/support-local-repo/virtualphotobooth.online/blob/main/src/modules/landing/SeoPage.tsx): `src/modules/landing/SeoPage.tsx`
- [Feature content](https://github.com/support-local-repo/virtualphotobooth.online/blob/main/src/modules/landing/FeaturesSection.tsx): `src/modules/landing/FeaturesSection.tsx`

### Booth workflow

- [Booth menu](https://github.com/support-local-repo/virtualphotobooth.online/blob/main/src/modules/booth/BoothMenu.tsx): `src/modules/booth/BoothMenu.tsx`
- [Booth entry route](https://github.com/support-local-repo/virtualphotobooth.online/blob/main/src/app/booth/page.tsx): `src/app/booth/page.tsx`
- [Camera route](https://github.com/support-local-repo/virtualphotobooth.online/blob/main/src/app/booth/camera/page.tsx): `src/app/booth/camera/page.tsx`
- [Camera capture](https://github.com/support-local-repo/virtualphotobooth.online/blob/main/src/modules/booth/BoothCamera.tsx): `src/modules/booth/BoothCamera.tsx`
- [Camera access](https://github.com/support-local-repo/virtualphotobooth.online/blob/main/src/shared/hooks/useCamera.ts): `src/shared/hooks/useCamera.ts`
- [Photo upload](https://github.com/support-local-repo/virtualphotobooth.online/blob/main/src/modules/booth/BoothUpload.tsx): `src/modules/booth/BoothUpload.tsx`
- [Strip editor](https://github.com/support-local-repo/virtualphotobooth.online/blob/main/src/modules/booth/BoothResult.tsx): `src/modules/booth/BoothResult.tsx`

### Strip composition

- [Canvas renderer](https://github.com/support-local-repo/virtualphotobooth.online/blob/main/src/modules/canvas/useCanvas.ts): `src/modules/canvas/useCanvas.ts`
- [Strip layouts](https://github.com/support-local-repo/virtualphotobooth.online/blob/main/src/modules/canvas/layouts.ts): `src/modules/canvas/layouts.ts`
- [Image filters](https://github.com/support-local-repo/virtualphotobooth.online/blob/main/src/modules/canvas/filters.ts): `src/modules/canvas/filters.ts`
- [Sticker drawing](https://github.com/support-local-repo/virtualphotobooth.online/blob/main/src/modules/canvas/stickers.ts): `src/modules/canvas/stickers.ts`
- [Watermark drawing](https://github.com/support-local-repo/virtualphotobooth.online/blob/main/src/modules/canvas/watermark.ts): `src/modules/canvas/watermark.ts`
- [Strip templates](https://github.com/support-local-repo/virtualphotobooth.online/blob/main/src/config/templates.config.ts): `src/config/templates.config.ts`

### Sharing and services

- [Donation control](https://github.com/support-local-repo/virtualphotobooth.online/blob/main/src/modules/donation/DonationButton.tsx): `src/modules/donation/DonationButton.tsx`
- [Email endpoint](https://github.com/support-local-repo/virtualphotobooth.online/blob/main/src/app/api/send-email/route.ts): `src/app/api/send-email/route.ts`
- [Email content](https://github.com/support-local-repo/virtualphotobooth.online/blob/main/src/modules/email/email.template.tsx): `src/modules/email/email.template.tsx`
- [Resend adapter](https://github.com/support-local-repo/virtualphotobooth.online/blob/main/src/infrastructure/resend/resend.client.ts): `src/infrastructure/resend/resend.client.ts`

### Other components

- **Visitor**
- **PayPal**
- **Email recipient**

## Connections

- Visitor → Landing page: opens
- Visitor → SEO pages: discovers (evidence: `src/modules/landing/SeoPage.tsx`)
- Landing page → Feature content: renders (evidence: `src/modules/landing/LandingPage.tsx`)
- Visitor → Booth entry route: opens booth (evidence: `src/app/booth/page.tsx`)
- Booth entry route → Booth menu: renders (evidence: `src/app/booth/page.tsx`)
- Camera route → Camera capture: renders (evidence: `src/app/booth/camera/page.tsx`)
- Camera capture → Camera access: uses camera (evidence: `src/modules/booth/BoothCamera.tsx`)
- Visitor → Photo upload: selects photos
- Visitor → Strip editor: customizes strip (evidence: `src/modules/booth/BoothResult.tsx`)
- Strip editor → Canvas renderer: renders strip (evidence: `src/modules/booth/BoothResult.tsx`)
- Canvas renderer → Strip layouts: computes layout (evidence: `src/modules/canvas/useCanvas.ts`)
- Canvas renderer → Image filters: applies filters (evidence: `src/modules/canvas/useCanvas.ts`)
- Canvas renderer → Sticker drawing: draws stickers (evidence: `src/modules/canvas/useCanvas.ts`)
- Canvas renderer → Watermark drawing: draws watermark (evidence: `src/modules/canvas/useCanvas.ts`)
- Visitor → Donation control: chooses donation
- Donation control → PayPal: opens payment
- Email recipient → Email endpoint: submits strip (evidence: `src/app/api/send-email/route.ts`)
- Email endpoint → Email content: builds message (evidence: `src/app/api/send-email/route.ts`)
- Email endpoint → Resend adapter: sends attachment (evidence: `src/app/api/send-email/route.ts`)
