# komal251205/smart-guest-house architecture

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

- Interactive diagram: https://gitdiagram.com/komal251205/smart-guest-house
- Repository: https://github.com/komal251205/smart-guest-house

## Overview

Smart Guest House is a static wedding and event venue website. Visitors browse the public venue site, its locally stored photo gallery, and an interactive lightbox; the owner can use a local photo manager to generate gallery data for redeployment. The sampled JavaScript shows gallery loading and lightbox behavior. The README documents the HTML pages, local photo workflow, and static hosting; relationships not visible in the sample are limited to those explicit statements.

Main entry points: [`script.js`](https://github.com/komal251205/smart-guest-house/blob/main/script.js) (Gallery Loader And Renderer), [`index.html`](https://github.com/komal251205/smart-guest-house/blob/main/index.html) (Venue Landing Page), [`upload.html`](https://github.com/komal251205/smart-guest-house/blob/main/upload.html) (Local Photo Manager), [`gallery.json`](https://github.com/komal251205/smart-guest-house/blob/main/gallery.json) (Gallery Entries)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_public["Public Website"]
  node_site["Venue Landing Page<br/>[index.html]"]
  node_site_interactions["Navigation And Effects<br/>[script.js]"]
end

subgraph group_gallery["Photo Gallery"]
  node_gallery_runtime["Gallery Loader And Renderer<br/>[script.js]"]
  node_gallery_data["Gallery Entries<br/>[gallery.json]"]
  node_venue_photos["Venue Photos"]
  node_lightbox["Photo Lightbox<br/>[script.js]"]
end

subgraph group_owner["Owner Photo Management"]
  node_photo_manager["Local Photo Manager<br/>[upload.html]"]
end

node_visitor(("Visitor"))
node_owner_actor(("Venue Owner"))
node_static_host["Static Site Hosting"]

node_visitor -->|"visits"| node_site
node_site -->|"uses"| node_site_interactions
node_site -->|"shows gallery"| node_gallery_runtime
node_gallery_runtime -->|"fetches"| node_gallery_data
node_gallery_runtime -->|"renders photos"| node_venue_photos
node_gallery_runtime -->|"opens"| node_lightbox
node_owner_actor -->|"opens locally"| node_photo_manager
node_photo_manager -->|"generates"| node_gallery_data
node_owner_actor -->|"adds photos"| node_venue_photos
node_static_host -->|"serves"| node_site

click node_site "https://github.com/komal251205/smart-guest-house/blob/main/index.html"
click node_site_interactions "https://github.com/komal251205/smart-guest-house/blob/main/script.js"
click node_gallery_runtime "https://github.com/komal251205/smart-guest-house/blob/main/script.js"
click node_gallery_data "https://github.com/komal251205/smart-guest-house/blob/main/gallery.json"
click node_venue_photos "https://github.com/komal251205/smart-guest-house/tree/main/images"
click node_lightbox "https://github.com/komal251205/smart-guest-house/blob/main/script.js"
click node_photo_manager "https://github.com/komal251205/smart-guest-house/blob/main/upload.html"

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_site,node_site_interactions toneBlue
class node_gallery_runtime,node_gallery_data,node_venue_photos,node_lightbox toneAmber
class node_photo_manager toneMint
class node_visitor,node_owner_actor,node_static_host toneIndigo
```

## Components

### Public Website

- [Venue Landing Page](https://github.com/komal251205/smart-guest-house/blob/main/index.html): `index.html`
- [Navigation And Effects](https://github.com/komal251205/smart-guest-house/blob/main/script.js): `script.js`

### Photo Gallery

- [Gallery Loader And Renderer](https://github.com/komal251205/smart-guest-house/blob/main/script.js): `script.js`
- [Gallery Entries](https://github.com/komal251205/smart-guest-house/blob/main/gallery.json): `gallery.json`
- [Venue Photos](https://github.com/komal251205/smart-guest-house/tree/main/images): `images`
- [Photo Lightbox](https://github.com/komal251205/smart-guest-house/blob/main/script.js): `script.js`

### Owner Photo Management

- [Local Photo Manager](https://github.com/komal251205/smart-guest-house/blob/main/upload.html): `upload.html`

### Other components

- **Visitor**
- **Venue Owner**
- **Static Site Hosting**

## Connections

- Visitor → Venue Landing Page: visits (evidence: `README.md`)
- Venue Landing Page → Navigation And Effects: uses (evidence: `README.md`)
- Venue Landing Page → Gallery Loader And Renderer: shows gallery (evidence: `README.md`)
- Gallery Loader And Renderer → Gallery Entries: fetches (evidence: `script.js`)
- Gallery Loader And Renderer → Venue Photos: renders photos (evidence: `script.js`)
- Gallery Loader And Renderer → Photo Lightbox: opens (evidence: `script.js`)
- Venue Owner → Local Photo Manager: opens locally (evidence: `README.md`)
- Local Photo Manager → Gallery Entries: generates (evidence: `README.md`)
- Venue Owner → Venue Photos: adds photos (evidence: `README.md`)
- Static Site Hosting → Venue Landing Page: serves (evidence: `README.md`)
