# ruiji1367/diy-instax-photobooth-vercel architecture

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

- Interactive diagram: https://gitdiagram.com/ruiji1367/diy-instax-photobooth-vercel
- Repository: https://github.com/ruiji1367/diy-instax-photobooth-vercel

## Overview

The tree suggests a browser-based booth product with booth, settings, and camera screens, plus a separate offline spike. The asset names identify these capabilities, but their bundled contents and wiring were not inspected. The only shown runtime logic is the offline service worker, so its cache and network behavior is mapped explicitly; relationships among the application assets are left unspecified.

Main entry points: [`offline-spike/sw.js`](https://github.com/ruiji1367/diy-instax-photobooth-vercel/blob/main/offline-spike/sw.js) (Offline Service Worker)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_booth["Booth Interface"]
  node_app_entry["Web App Entry<br/>[index.html]"]
  node_app_bundle["App Bundle<br/>[index-CGP3v68X.js]"]
  node_booth_page["Booth Page"]
  node_booth_settings["Booth Settings"]
end

subgraph group_camera["Camera"]
  node_camera_page["Camera Page"]
  node_camera_module["Camera Module<br/>[camera-qMUGvUY_.js]"]
end

subgraph group_offline["Offline Support"]
  node_offline_page["Offline Page<br/>[index.html]"]
  node_offline_probe["Offline Probe<br/>[probe.txt]"]
  node_service_worker["Offline Service Worker<br/>[sw.js]"]
  node_cache[("Browser Cache")]
end

node_network(("Network"))
node_browser(("Browser Runtime"))

node_service_worker -->|"pre-caches assets"| node_cache
node_service_worker -->|"stores GET responses"| node_cache
node_service_worker -->|"fetches GET requests"| node_network
node_service_worker -->|"serves on failure"| node_cache
node_service_worker -->|"claims clients"| node_browser

click node_app_entry "https://github.com/ruiji1367/diy-instax-photobooth-vercel/blob/main/index.html"
click node_app_bundle "https://github.com/ruiji1367/diy-instax-photobooth-vercel/blob/main/assets/index-CGP3v68X.js"
click node_booth_page "https://github.com/ruiji1367/diy-instax-photobooth-vercel/blob/main/assets/BoothPage-DsMx-Fl1.js"
click node_booth_settings "https://github.com/ruiji1367/diy-instax-photobooth-vercel/blob/main/assets/BoothSettingsPage-CYAZ2kUO.js"
click node_camera_page "https://github.com/ruiji1367/diy-instax-photobooth-vercel/blob/main/assets/CameraPage-gxQdXVH7.js"
click node_camera_module "https://github.com/ruiji1367/diy-instax-photobooth-vercel/blob/main/assets/camera-qMUGvUY_.js"
click node_offline_page "https://github.com/ruiji1367/diy-instax-photobooth-vercel/blob/main/offline-spike/index.html"
click node_offline_probe "https://github.com/ruiji1367/diy-instax-photobooth-vercel/blob/main/offline-spike/probe.txt"
click node_service_worker "https://github.com/ruiji1367/diy-instax-photobooth-vercel/blob/main/offline-spike/sw.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_app_bundle,node_booth_page,node_booth_settings,node_browser toneBlue
class node_camera_page,node_camera_module toneAmber
class node_offline_page,node_offline_probe,node_service_worker,node_cache toneMint
class node_network toneIndigo
```

## Components

### Booth Interface

- [Web App Entry](https://github.com/ruiji1367/diy-instax-photobooth-vercel/blob/main/index.html): `index.html`
- [App Bundle](https://github.com/ruiji1367/diy-instax-photobooth-vercel/blob/main/assets/index-CGP3v68X.js): `assets/index-CGP3v68X.js`
- [Booth Page](https://github.com/ruiji1367/diy-instax-photobooth-vercel/blob/main/assets/BoothPage-DsMx-Fl1.js): `assets/BoothPage-DsMx-Fl1.js`
- [Booth Settings](https://github.com/ruiji1367/diy-instax-photobooth-vercel/blob/main/assets/BoothSettingsPage-CYAZ2kUO.js): `assets/BoothSettingsPage-CYAZ2kUO.js`

### Camera

- [Camera Page](https://github.com/ruiji1367/diy-instax-photobooth-vercel/blob/main/assets/CameraPage-gxQdXVH7.js): `assets/CameraPage-gxQdXVH7.js`
- [Camera Module](https://github.com/ruiji1367/diy-instax-photobooth-vercel/blob/main/assets/camera-qMUGvUY_.js): `assets/camera-qMUGvUY_.js`

### Offline Support

- [Offline Page](https://github.com/ruiji1367/diy-instax-photobooth-vercel/blob/main/offline-spike/index.html): `offline-spike/index.html`
- [Offline Probe](https://github.com/ruiji1367/diy-instax-photobooth-vercel/blob/main/offline-spike/probe.txt): `offline-spike/probe.txt`
- [Offline Service Worker](https://github.com/ruiji1367/diy-instax-photobooth-vercel/blob/main/offline-spike/sw.js): `offline-spike/sw.js`
- **Browser Cache**

### Other components

- **Network**
- **Browser Runtime**

## Connections

- Offline Service Worker → Browser Cache: pre-caches assets (evidence: `offline-spike/sw.js`)
- Offline Service Worker → Browser Cache: stores GET responses (evidence: `offline-spike/sw.js`)
- Offline Service Worker → Network: fetches GET requests (evidence: `offline-spike/sw.js`)
- Offline Service Worker → Browser Cache: serves on failure (evidence: `offline-spike/sw.js`)
- Offline Service Worker → Browser Runtime: claims clients (evidence: `offline-spike/sw.js`)
