# she-demure/wedding architecture

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

- Interactive diagram: https://gitdiagram.com/she-demure/wedding
- Repository: https://github.com/she-demure/wedding

## Overview

This is a wedding invitation website. Guests view the invitation, explore the couple’s story and event details, and can submit an attendance response; the RSVP handler validates and stores that response. The site also provides a downloadable calendar invitation and venue map links. The excerpts show the RSVP and calendar handlers, but not whether the page links to the calendar endpoint. The RSVP schema is represented by the supplied migration; no database client implementation beyond the handler is inferred.

Main entry points: [`app/page.tsx`](https://github.com/she-demure/wedding/blob/main/app/page.tsx) (Invitation page), [`app/api/rsvp/route.ts`](https://github.com/she-demure/wedding/blob/main/app/api/rsvp/route.ts) (RSVP handler), [`app/layout.tsx`](https://github.com/she-demure/wedding/blob/main/app/layout.tsx) (Site shell), [`app/api/calendar/route.ts`](https://github.com/she-demure/wedding/blob/main/app/api/calendar/route.ts) (Calendar download)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_guest_site["Guest invitation"]
  node_invitation["Invitation page<br/>[page.tsx]"]
  node_site_shell["Site shell<br/>[layout.tsx]"]
  node_rsvp_form["RSVP form<br/>[page.tsx]"]
end

subgraph group_guest_actions["Guest actions"]
  node_calendar["Calendar download<br/>[route.ts]"]
  node_maps["Venue maps"]
end

subgraph group_rsvp_storage["RSVP storage"]
  node_rsvp_api["RSVP handler<br/>[route.ts]"]
  node_rsvp_db[("RSVP table")]
end

node_guest(("Guest"))

node_guest -->|"views"| node_invitation
node_site_shell -->|"renders"| node_invitation
node_guest -->|"fills"| node_rsvp_form
node_rsvp_form -->|"submits"| node_rsvp_api
node_rsvp_api -->|"inserts"| node_rsvp_db
node_guest -->|"requests download"| node_calendar
node_invitation -->|"links to venues"| node_maps

click node_invitation "https://github.com/she-demure/wedding/blob/main/app/page.tsx"
click node_site_shell "https://github.com/she-demure/wedding/blob/main/app/layout.tsx"
click node_calendar "https://github.com/she-demure/wedding/blob/main/app/api/calendar/route.ts"
click node_rsvp_form "https://github.com/she-demure/wedding/blob/main/app/page.tsx"
click node_rsvp_api "https://github.com/she-demure/wedding/blob/main/app/api/rsvp/route.ts"
click node_rsvp_db "https://github.com/she-demure/wedding/blob/main/supabase/migrations/20261120000000_create_wedding_rsvps.sql"

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_invitation,node_site_shell,node_rsvp_form toneBlue
class node_calendar,node_maps toneAmber
class node_rsvp_api,node_rsvp_db toneMint
class node_guest toneIndigo
```

## Components

### Guest invitation

- [Invitation page](https://github.com/she-demure/wedding/blob/main/app/page.tsx): `app/page.tsx`
- [Site shell](https://github.com/she-demure/wedding/blob/main/app/layout.tsx): `app/layout.tsx`
- [RSVP form](https://github.com/she-demure/wedding/blob/main/app/page.tsx): `app/page.tsx`

### Guest actions

- [Calendar download](https://github.com/she-demure/wedding/blob/main/app/api/calendar/route.ts): `app/api/calendar/route.ts`
- **Venue maps**

### RSVP storage

- [RSVP handler](https://github.com/she-demure/wedding/blob/main/app/api/rsvp/route.ts): `app/api/rsvp/route.ts`
- [RSVP table](https://github.com/she-demure/wedding/blob/main/supabase/migrations/20261120000000_create_wedding_rsvps.sql): `supabase/migrations/20261120000000_create_wedding_rsvps.sql`

### Other components

- **Guest**

## Connections

- Guest → Invitation page: views (evidence: `app/page.tsx`)
- Site shell → Invitation page: renders (evidence: `app/layout.tsx`)
- Guest → RSVP form: fills (evidence: `app/page.tsx`)
- RSVP form → RSVP handler: submits (evidence: `app/page.tsx`)
- RSVP handler → RSVP table: inserts (evidence: `app/api/rsvp/route.ts`)
- Guest → Calendar download: requests download (evidence: `app/api/calendar/route.ts`)
- Invitation page → Venue maps: links to venues (evidence: `app/page.tsx`)
