# elmerpabel/qr architecture

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

- Interactive diagram: https://gitdiagram.com/elmerpabel/qr
- Repository: https://github.com/elmerpabel/qr

## Overview

A minimal QR redirect page: a visitor opens a URL containing `k`, the page looks up its destination through Google Apps Script, then redirects the browser. The README documents an animated loading indicator as part of the page. No source excerpts were available, so relationships are based only on the README.

Main entry points: [`index.html`](https://github.com/elmerpabel/qr/blob/main/index.html) (Redirect Page)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_visitor(("QR Visitor"))
node_page["Redirect Page<br/>[index.html]"]
node_lookup["Key Lookup<br/>[index.html]"]
node_loading["Loading Indicator<br/>[index.html]"]
node_apps_script["Apps Script"]
node_destination["Destination URL"]

node_visitor -->|"opens QR URL"| node_page
node_page -->|"reads parameter"| node_lookup
node_page -->|"shows loading"| node_loading
node_page -->|"sends key"| node_apps_script
node_apps_script -->|"returns destination"| node_page
node_page -->|"redirects browser"| node_destination

click node_page "https://github.com/elmerpabel/qr/blob/main/index.html"
click node_lookup "https://github.com/elmerpabel/qr/blob/main/index.html"
click node_loading "https://github.com/elmerpabel/qr/blob/main/index.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_visitor,node_apps_script,node_destination toneIndigo
class node_page,node_lookup,node_loading toneTeal
```

## Components

### Other components

- **QR Visitor**
- [Redirect Page](https://github.com/elmerpabel/qr/blob/main/index.html): `index.html`
- [Key Lookup](https://github.com/elmerpabel/qr/blob/main/index.html): `index.html`
- [Loading Indicator](https://github.com/elmerpabel/qr/blob/main/index.html): `index.html`
- **Apps Script**
- **Destination URL**

## Connections

- QR Visitor → Redirect Page: opens QR URL (evidence: `README.md`)
- Redirect Page → Key Lookup: reads parameter (evidence: `README.md`)
- Redirect Page → Loading Indicator: shows loading (evidence: `README.md`)
- Redirect Page → Apps Script: sends key (evidence: `README.md`)
- Apps Script → Redirect Page: returns destination (evidence: `README.md`)
- Redirect Page → Destination URL: redirects browser (evidence: `README.md`)
