# kichukishore/kk_wedding_invitation architecture

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

- Interactive diagram: https://gitdiagram.com/kichukishore/kk_wedding_invitation
- Repository: https://github.com/kichukishore/kk_wedding_invitation

## Overview

This is a client-side wedding invitation: a guest opens the page, moves through an envelope-opening experience, and views the invitation details. The page also includes a photo gallery, a scratch interaction, music controls, confetti, and an invitation-image download. The sampled source places these responsibilities together in app/page.tsx; the excerpts do not establish a connection to the public audio file, so that relationship is omitted.

Main entry points: [`app/page.tsx`](https://github.com/kichukishore/kk_wedding_invitation/blob/main/app/page.tsx) (Invitation page)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_invitation["Invitation experience"]
  node_page["Invitation page<br/>[page.tsx]"]
  node_envelope["Envelope opening<br/>[page.tsx]"]
  node_details["Wedding details<br/>[page.tsx]"]
end

subgraph group_interactions["Guest interactions"]
  node_scratch["Scratch interaction<br/>[page.tsx]"]
  node_sound["Music controls<br/>[page.tsx]"]
  node_download["Image download<br/>[page.tsx]"]
end

subgraph group_presentation["Visual presentation"]
  node_gallery["Photo gallery<br/>[page.tsx]"]
  node_confetti["Confetti effect<br/>[page.tsx]"]
end

node_guest(("Guest"))

node_guest -->|"opens"| node_page
node_page -->|"shows phase"| node_envelope
node_page -->|"shows details"| node_details
node_page -->|"renders gallery"| node_gallery
node_page -->|"renders scratch"| node_scratch
node_page -->|"shows controls"| node_sound
node_page -->|"renders effect"| node_confetti
node_page -->|"exports image"| node_download

click node_page "https://github.com/kichukishore/kk_wedding_invitation/blob/main/app/page.tsx"
click node_envelope "https://github.com/kichukishore/kk_wedding_invitation/blob/main/app/page.tsx"
click node_details "https://github.com/kichukishore/kk_wedding_invitation/blob/main/app/page.tsx"
click node_gallery "https://github.com/kichukishore/kk_wedding_invitation/blob/main/app/page.tsx"
click node_scratch "https://github.com/kichukishore/kk_wedding_invitation/blob/main/app/page.tsx"
click node_sound "https://github.com/kichukishore/kk_wedding_invitation/blob/main/app/page.tsx"
click node_confetti "https://github.com/kichukishore/kk_wedding_invitation/blob/main/app/page.tsx"
click node_download "https://github.com/kichukishore/kk_wedding_invitation/blob/main/app/page.tsx"

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_page,node_envelope,node_details toneBlue
class node_scratch,node_sound,node_download toneAmber
class node_gallery,node_confetti toneMint
class node_guest toneIndigo
```

## Components

### Invitation experience

- [Invitation page](https://github.com/kichukishore/kk_wedding_invitation/blob/main/app/page.tsx): `app/page.tsx`
- [Envelope opening](https://github.com/kichukishore/kk_wedding_invitation/blob/main/app/page.tsx): `app/page.tsx`
- [Wedding details](https://github.com/kichukishore/kk_wedding_invitation/blob/main/app/page.tsx): `app/page.tsx`

### Guest interactions

- [Scratch interaction](https://github.com/kichukishore/kk_wedding_invitation/blob/main/app/page.tsx): `app/page.tsx`
- [Music controls](https://github.com/kichukishore/kk_wedding_invitation/blob/main/app/page.tsx): `app/page.tsx`
- [Image download](https://github.com/kichukishore/kk_wedding_invitation/blob/main/app/page.tsx): `app/page.tsx`

### Visual presentation

- [Photo gallery](https://github.com/kichukishore/kk_wedding_invitation/blob/main/app/page.tsx): `app/page.tsx`
- [Confetti effect](https://github.com/kichukishore/kk_wedding_invitation/blob/main/app/page.tsx): `app/page.tsx`

### Other components

- **Guest**

## Connections

- Guest → Invitation page: opens (evidence: `app/page.tsx`)
- Invitation page → Envelope opening: shows phase (evidence: `app/page.tsx`)
- Invitation page → Wedding details: shows details (evidence: `app/page.tsx`)
- Invitation page → Photo gallery: renders gallery (evidence: `app/page.tsx`)
- Invitation page → Scratch interaction: renders scratch (evidence: `app/page.tsx`)
- Invitation page → Music controls: shows controls (evidence: `app/page.tsx`)
- Invitation page → Confetti effect: renders effect (evidence: `app/page.tsx`)
- Invitation page → Image download: exports image (evidence: `app/page.tsx`)
