# hector99-rod/invitation architecture

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

- Interactive diagram: https://gitdiagram.com/hector99-rod/invitation
- Repository: https://github.com/hector99-rod/invitation

## Overview

This is a personalized wedding invitation website. Guests open the invitation, view ceremony and reception details, and can respond through a family-specific link or the general form; they can also submit photos and request songs. The browser app handles presentation and submission, while the documented Apps Script backend connects the site to Google Sheets and Drive. The README documents these capabilities and the backend flow; the Apps Script source and HTML were not sampled, so internal backend and page-to-script details are limited to documented relationships.

Main entry points: [`apps-script/Code.gs`](https://github.com/hector99-rod/invitation/blob/main/apps-script/Code.gs) (Apps Script web app), [`js/app.js`](https://github.com/hector99-rod/invitation/blob/main/js/app.js) (Invitation app), [`index.html`](https://github.com/hector99-rod/invitation/blob/main/index.html) (Invitation page), [`musica/cancion.mp3`](https://github.com/hector99-rod/invitation/blob/main/musica/cancion.mp3) (Background music)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_invitation["Invitation experience"]
  node_web_page["Invitation page<br/>[index.html]"]
  node_browser_app["Invitation app<br/>[app.js]"]
  node_event_details["Event details and maps<br/>[app.js]"]
  node_music["Background music<br/>[cancion.mp3]"]
end

subgraph group_guest_actions["Guest actions"]
  node_rsvp["Attendance response<br/>[app.js]"]
  node_song_request["Song requests<br/>[app.js]"]
  node_photo_upload["Guest photo upload<br/>[app.js]"]
end

subgraph group_integration["Backend integration"]
  node_apps_script["Apps Script web app<br/>[Code.gs]"]
  node_sheets[("Google Sheets")]
  node_drive[("Google Drive photos")]
end

subgraph group_configuration["Site configuration"]
  node_site_config["Invitation configuration<br/>[config.js]"]
end

node_guest(("Guest"))

node_guest -->|"opens"| node_web_page
node_web_page -.->|"runs"| node_browser_app
node_browser_app -->|"reads settings"| node_site_config
node_browser_app -->|"renders"| node_event_details
node_browser_app -->|"plays"| node_music
node_guest -->|"submits response"| node_rsvp
node_guest -->|"requests song"| node_song_request
node_guest -->|"uploads photos"| node_photo_upload
node_rsvp -->|"sends response"| node_apps_script
node_song_request -->|"sends request"| node_apps_script
node_photo_upload -->|"sends photos"| node_apps_script
node_apps_script -->|"reads and writes"| node_sheets
node_apps_script -->|"stores photos"| node_drive

click node_web_page "https://github.com/hector99-rod/invitation/blob/main/index.html"
click node_browser_app "https://github.com/hector99-rod/invitation/blob/main/js/app.js"
click node_event_details "https://github.com/hector99-rod/invitation/blob/main/js/app.js"
click node_music "https://github.com/hector99-rod/invitation/blob/main/musica/cancion.mp3"
click node_rsvp "https://github.com/hector99-rod/invitation/blob/main/js/app.js"
click node_song_request "https://github.com/hector99-rod/invitation/blob/main/js/app.js"
click node_photo_upload "https://github.com/hector99-rod/invitation/blob/main/js/app.js"
click node_apps_script "https://github.com/hector99-rod/invitation/blob/main/apps-script/Code.gs"
click node_site_config "https://github.com/hector99-rod/invitation/blob/main/js/config.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_web_page,node_browser_app,node_event_details,node_music toneBlue
class node_rsvp,node_song_request,node_photo_upload toneAmber
class node_apps_script,node_sheets,node_drive toneMint
class node_site_config toneRose
class node_guest toneIndigo
```

## Components

### Invitation experience

- [Invitation page](https://github.com/hector99-rod/invitation/blob/main/index.html): `index.html`
- [Invitation app](https://github.com/hector99-rod/invitation/blob/main/js/app.js): `js/app.js`
- [Event details and maps](https://github.com/hector99-rod/invitation/blob/main/js/app.js): `js/app.js`
- [Background music](https://github.com/hector99-rod/invitation/blob/main/musica/cancion.mp3): `musica/cancion.mp3`

### Guest actions

- [Attendance response](https://github.com/hector99-rod/invitation/blob/main/js/app.js): `js/app.js`
- [Song requests](https://github.com/hector99-rod/invitation/blob/main/js/app.js): `js/app.js`
- [Guest photo upload](https://github.com/hector99-rod/invitation/blob/main/js/app.js): `js/app.js`

### Backend integration

- [Apps Script web app](https://github.com/hector99-rod/invitation/blob/main/apps-script/Code.gs): `apps-script/Code.gs`
- **Google Sheets**
- **Google Drive photos**

### Site configuration

- [Invitation configuration](https://github.com/hector99-rod/invitation/blob/main/js/config.js): `js/config.js`

### Other components

- **Guest**

## Connections

- Guest → Invitation page: opens (evidence: `README.md`)
- Invitation page → Invitation app: runs
- Invitation app → Invitation configuration: reads settings (evidence: `js/config.js`)
- Invitation app → Event details and maps: renders (evidence: `js/app.js`)
- Invitation app → Background music: plays (evidence: `js/app.js`)
- Guest → Attendance response: submits response (evidence: `README.md`)
- Guest → Song requests: requests song (evidence: `README.md`)
- Guest → Guest photo upload: uploads photos (evidence: `README.md`)
- Attendance response → Apps Script web app: sends response (evidence: `README.md`)
- Song requests → Apps Script web app: sends request (evidence: `README.md`)
- Guest photo upload → Apps Script web app: sends photos (evidence: `README.md`)
- Apps Script web app → Google Sheets: reads and writes (evidence: `README.md`)
- Apps Script web app → Google Drive photos: stores photos (evidence: `README.md`)
