# product-builders-2026/invitation_template architecture

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

- Interactive diagram: https://gitdiagram.com/product-builders-2026/invitation_template
- Repository: https://github.com/product-builders-2026/invitation_template

## Overview

This is a browser-based engagement invitation microsite. A guest opens the envelope, pulls out the invitation card, and arrives at the invitation page, where they can explore its sections and use the countdown, guided tour, calendar download, and sharing controls. The main JavaScript also handles decorative and accessibility-oriented interactions. The source excerpt supports these behaviors, but the HTML and CSS were not sampled, so page content and visual styling are represented only at a high level.

Main entry points: [`js/main.js`](https://github.com/product-builders-2026/invitation_template/blob/main/js/main.js) (Envelope opening), [`index.html`](https://github.com/product-builders-2026/invitation_template/blob/main/index.html) (Invitation page)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["Invitation experience"]
  node_envelope["Envelope opening<br/>[main.js]"]
  node_invitation["Invitation page<br/>[index.html]"]
  node_card["Card preview<br/>[main.js]"]
  node_decorations["Garland decor<br/>[main.js]"]
end

subgraph group_engagement["Guest interactions"]
  node_scroll_reveals["Scroll reveals<br/>[main.js]"]
  node_guided_tour["Guided tour<br/>[main.js]"]
  node_background_toggle["Background toggle<br/>[main.js]"]
end

subgraph group_utilities["Invitation utilities"]
  node_countdown["Event countdown<br/>[main.js]"]
  node_calendar_export["Calendar export<br/>[main.js]"]
  node_sharing["Invitation sharing<br/>[main.js]"]
end

node_guest(("Guest"))
node_browser{{"Browser APIs"}}

node_guest -->|"opens"| node_envelope
node_envelope -->|"starts"| node_guided_tour
node_guest -->|"pulls"| node_card
node_card -->|"embeds"| node_invitation
node_guest -->|"scrolls"| node_scroll_reveals
node_guest -->|"may cancel"| node_guided_tour
node_guest -->|"toggles"| node_background_toggle
node_guest -->|"downloads"| node_calendar_export
node_calendar_export -->|"creates download"| node_browser
node_guest -->|"shares"| node_sharing
node_sharing -->|"uses share or clipboard"| node_browser

click node_envelope "https://github.com/product-builders-2026/invitation_template/blob/main/js/main.js"
click node_invitation "https://github.com/product-builders-2026/invitation_template/blob/main/index.html"
click node_card "https://github.com/product-builders-2026/invitation_template/blob/main/js/main.js"
click node_decorations "https://github.com/product-builders-2026/invitation_template/blob/main/js/main.js"
click node_scroll_reveals "https://github.com/product-builders-2026/invitation_template/blob/main/js/main.js"
click node_guided_tour "https://github.com/product-builders-2026/invitation_template/blob/main/js/main.js"
click node_background_toggle "https://github.com/product-builders-2026/invitation_template/blob/main/js/main.js"
click node_countdown "https://github.com/product-builders-2026/invitation_template/blob/main/js/main.js"
click node_calendar_export "https://github.com/product-builders-2026/invitation_template/blob/main/js/main.js"
click node_sharing "https://github.com/product-builders-2026/invitation_template/blob/main/js/main.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_envelope,node_invitation,node_card,node_decorations,node_browser toneBlue
class node_scroll_reveals,node_guided_tour,node_background_toggle toneAmber
class node_countdown,node_calendar_export,node_sharing toneMint
class node_guest toneIndigo
```

## Components

### Invitation experience

- [Envelope opening](https://github.com/product-builders-2026/invitation_template/blob/main/js/main.js): `js/main.js`
- [Invitation page](https://github.com/product-builders-2026/invitation_template/blob/main/index.html): `index.html`
- [Card preview](https://github.com/product-builders-2026/invitation_template/blob/main/js/main.js): `js/main.js`
- [Garland decor](https://github.com/product-builders-2026/invitation_template/blob/main/js/main.js): `js/main.js`

### Guest interactions

- [Scroll reveals](https://github.com/product-builders-2026/invitation_template/blob/main/js/main.js): `js/main.js`
- [Guided tour](https://github.com/product-builders-2026/invitation_template/blob/main/js/main.js): `js/main.js`
- [Background toggle](https://github.com/product-builders-2026/invitation_template/blob/main/js/main.js): `js/main.js`

### Invitation utilities

- [Event countdown](https://github.com/product-builders-2026/invitation_template/blob/main/js/main.js): `js/main.js`
- [Calendar export](https://github.com/product-builders-2026/invitation_template/blob/main/js/main.js): `js/main.js`
- [Invitation sharing](https://github.com/product-builders-2026/invitation_template/blob/main/js/main.js): `js/main.js`

### Other components

- **Guest**
- **Browser APIs**

## Connections

- Guest → Envelope opening: opens (evidence: `js/main.js`)
- Envelope opening → Guided tour: starts (evidence: `js/main.js`)
- Guest → Card preview: pulls (evidence: `js/main.js`)
- Card preview → Invitation page: embeds (evidence: `js/main.js`)
- Guest → Scroll reveals: scrolls (evidence: `js/main.js`)
- Guest → Guided tour: may cancel (evidence: `js/main.js`)
- Guest → Background toggle: toggles (evidence: `js/main.js`)
- Guest → Calendar export: downloads (evidence: `js/main.js`)
- Calendar export → Browser APIs: creates download (evidence: `js/main.js`)
- Guest → Invitation sharing: shares (evidence: `js/main.js`)
- Invitation sharing → Browser APIs: uses share or clipboard (evidence: `js/main.js`)
