# dechub-official/30th_anniversary architecture

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

- Interactive diagram: https://gitdiagram.com/dechub-official/30th_anniversary
- Repository: https://github.com/dechub-official/30th_anniversary

## Overview

This is a Tanishq anniversary guest-wishes web app: guests enter a name and message, capture a photo or record a video, then proceed through consent and submission. The React app provides landing/QR and mobile routes, with draft and submission state persisted in browser storage. A serverless submissions handler separately accepts submissions and consent updates and writes records and media to disk. The excerpts do not show whether the client calls that handler, so that integration is marked unverified.

Main entry points: [`src/App.jsx`](https://github.com/dechub-official/30th_anniversary/blob/main/src/App.jsx) (Route dispatch), [`src/main.jsx`](https://github.com/dechub-official/30th_anniversary/blob/main/src/main.jsx) (React app mount), [`api/submissions.js`](https://github.com/dechub-official/30th_anniversary/blob/main/api/submissions.js) (Submission API)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["App entry"]
  node_app_entry["React app mount<br/>[main.jsx]"]
  node_router["Route dispatch<br/>[App.jsx]"]
end

subgraph group_guest["Guest experience"]
  node_landing_qr["Landing and QR<br/>[App.jsx]"]
  node_mobile_form["Wish details<br/>[App.jsx]"]
  node_photo_capture["Photo capture<br/>[App.jsx]"]
  node_video_recording["Video recording<br/>[App.jsx]"]
  node_consent["Consent<br/>[App.jsx]"]
end

subgraph group_state["Submission state"]
  node_draft_state["Draft state<br/>[App.jsx]"]
  node_browser_storage[("Browser storage")]
  node_submission_logic["Submission handling<br/>[App.jsx]"]
end

subgraph group_backend["Submission backend"]
  node_api_handler["Submission API<br/>[submissions.js]"]
  node_file_store[("Submission files")]
end

node_guest(("Guest"))

node_guest -->|"opens"| node_app_entry
node_app_entry -->|"renders"| node_router
node_router -->|"routes"| node_landing_qr
node_router -->|"routes"| node_mobile_form
node_router -->|"routes"| node_photo_capture
node_router -->|"routes"| node_video_recording
node_router -->|"routes"| node_consent
node_mobile_form -->|"updates"| node_draft_state
node_photo_capture -->|"uses"| node_draft_state
node_video_recording -->|"uses"| node_draft_state
node_draft_state -->|"persists"| node_browser_storage
node_photo_capture -->|"submits"| node_submission_logic
node_video_recording -.->|"submits"| node_submission_logic
node_consent -.->|"updates consent"| node_submission_logic
node_submission_logic -->|"stores"| node_browser_storage
node_submission_logic -.->|"may call"| node_api_handler
node_api_handler -->|"writes and reads"| node_file_store

click node_app_entry "https://github.com/dechub-official/30th_anniversary/blob/main/src/main.jsx"
click node_router "https://github.com/dechub-official/30th_anniversary/blob/main/src/App.jsx"
click node_landing_qr "https://github.com/dechub-official/30th_anniversary/blob/main/src/App.jsx"
click node_mobile_form "https://github.com/dechub-official/30th_anniversary/blob/main/src/App.jsx"
click node_photo_capture "https://github.com/dechub-official/30th_anniversary/blob/main/src/App.jsx"
click node_video_recording "https://github.com/dechub-official/30th_anniversary/blob/main/src/App.jsx"
click node_consent "https://github.com/dechub-official/30th_anniversary/blob/main/src/App.jsx"
click node_draft_state "https://github.com/dechub-official/30th_anniversary/blob/main/src/App.jsx"
click node_submission_logic "https://github.com/dechub-official/30th_anniversary/blob/main/src/App.jsx"
click node_api_handler "https://github.com/dechub-official/30th_anniversary/blob/main/api/submissions.js"

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_entry,node_router toneBlue
class node_landing_qr,node_mobile_form,node_photo_capture,node_video_recording,node_consent toneAmber
class node_draft_state,node_browser_storage,node_submission_logic toneMint
class node_api_handler,node_file_store toneRose
class node_guest toneIndigo
```

## Components

### App entry

- [React app mount](https://github.com/dechub-official/30th_anniversary/blob/main/src/main.jsx): `src/main.jsx`
- [Route dispatch](https://github.com/dechub-official/30th_anniversary/blob/main/src/App.jsx): `src/App.jsx`

### Guest experience

- [Landing and QR](https://github.com/dechub-official/30th_anniversary/blob/main/src/App.jsx): `src/App.jsx`
- [Wish details](https://github.com/dechub-official/30th_anniversary/blob/main/src/App.jsx): `src/App.jsx`
- [Photo capture](https://github.com/dechub-official/30th_anniversary/blob/main/src/App.jsx): `src/App.jsx`
- [Video recording](https://github.com/dechub-official/30th_anniversary/blob/main/src/App.jsx): `src/App.jsx`
- [Consent](https://github.com/dechub-official/30th_anniversary/blob/main/src/App.jsx): `src/App.jsx`

### Submission state

- [Draft state](https://github.com/dechub-official/30th_anniversary/blob/main/src/App.jsx): `src/App.jsx`
- **Browser storage**
- [Submission handling](https://github.com/dechub-official/30th_anniversary/blob/main/src/App.jsx): `src/App.jsx`

### Submission backend

- [Submission API](https://github.com/dechub-official/30th_anniversary/blob/main/api/submissions.js): `api/submissions.js`
- **Submission files**

### Other components

- **Guest**

## Connections

- Guest → React app mount: opens (evidence: `src/main.jsx`)
- React app mount → Route dispatch: renders (evidence: `src/main.jsx`)
- Route dispatch → Landing and QR: routes (evidence: `src/App.jsx`)
- Route dispatch → Wish details: routes (evidence: `src/App.jsx`)
- Route dispatch → Photo capture: routes (evidence: `src/App.jsx`)
- Route dispatch → Video recording: routes (evidence: `src/App.jsx`)
- Route dispatch → Consent: routes (evidence: `src/App.jsx`)
- Wish details → Draft state: updates (evidence: `src/App.jsx`)
- Photo capture → Draft state: uses (evidence: `src/App.jsx`)
- Video recording → Draft state: uses (evidence: `src/App.jsx`)
- Draft state → Browser storage: persists (evidence: `src/App.jsx`)
- Photo capture → Submission handling: submits (evidence: `src/App.jsx`)
- Video recording → Submission handling: submits (evidence: `src/App.jsx`)
- Consent → Submission handling: updates consent (evidence: `src/App.jsx`)
- Submission handling → Browser storage: stores (evidence: `src/App.jsx`)
- Submission handling → Submission API: may call
- Submission API → Submission files: writes and reads (evidence: `api/submissions.js`)
