# klanes0905/idk architecture

> Architecture diagram of the GitHub repository klanes0905/idk, 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/klanes0905/idk
- Repository: https://github.com/klanes0905/idk

## Overview

This is a small browser-based restaurant menu and demo ordering app. A shopper browses and filters food, opens an item’s details and 3D/AR viewer, adjusts quantity, adds it to a cart, and can place a demo order. The sampled JavaScript implements the catalog, interactions, cart, and checkout; cart state persists in browser storage. The HTML and model assets are present in the tree but were not sampled, so their internal structure and the app’s precise page wiring are not described.

Main entry points: [`ar-food-menu-complete/index.html`](https://github.com/klanes0905/idk/blob/main/ar-food-menu-complete/index.html) (Menu Page), [`ar-food-menu-complete/script.js`](https://github.com/klanes0905/idk/blob/main/ar-food-menu-complete/script.js) (Shopping Cart), [`ar-food-menu-complete/models/pizza.glb`](https://github.com/klanes0905/idk/blob/main/ar-food-menu-complete/models/pizza.glb) (Pizza Model)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_browse["Menu and Details"]
  node_page["Menu Page<br/>[index.html]"]
  node_catalog["Food Catalog<br/>[script.js]"]
  node_food_details["Food Details<br/>[script.js]"]
  node_ar_viewer["3D Food Viewer<br/>[script.js]"]
  node_pizza_model["Pizza Model<br/>[pizza.glb]"]
end

subgraph group_order["Cart and Checkout"]
  node_cart["Shopping Cart<br/>[script.js]"]
  node_checkout["Demo Checkout<br/>[script.js]"]
end

subgraph group_runtime["Browser Runtime"]
  node_storage[("Browser Storage")]
  node_toast["Status Toast<br/>[script.js]"]
end

node_shopper(("Shopper"))

node_shopper -.->|"uses"| node_page
node_catalog -->|"renders menu"| node_page
node_food_details -->|"updates details"| node_page
node_food_details -->|"sets model"| node_ar_viewer
node_ar_viewer -->|"loads model"| node_pizza_model
node_cart -->|"renders cart"| node_page
node_cart -->|"reads and writes"| node_storage
node_checkout -->|"clears cart"| node_cart
node_checkout -->|"shows result"| node_toast

click node_page "https://github.com/klanes0905/idk/blob/main/ar-food-menu-complete/index.html"
click node_catalog "https://github.com/klanes0905/idk/blob/main/ar-food-menu-complete/script.js"
click node_food_details "https://github.com/klanes0905/idk/blob/main/ar-food-menu-complete/script.js"
click node_ar_viewer "https://github.com/klanes0905/idk/blob/main/ar-food-menu-complete/script.js"
click node_pizza_model "https://github.com/klanes0905/idk/blob/main/ar-food-menu-complete/models/pizza.glb"
click node_cart "https://github.com/klanes0905/idk/blob/main/ar-food-menu-complete/script.js"
click node_checkout "https://github.com/klanes0905/idk/blob/main/ar-food-menu-complete/script.js"
click node_toast "https://github.com/klanes0905/idk/blob/main/ar-food-menu-complete/script.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_page,node_catalog,node_food_details,node_ar_viewer,node_pizza_model toneBlue
class node_cart,node_checkout toneAmber
class node_storage,node_toast toneMint
class node_shopper toneIndigo
```

## Components

### Menu and Details

- [Menu Page](https://github.com/klanes0905/idk/blob/main/ar-food-menu-complete/index.html): `ar-food-menu-complete/index.html`
- [Food Catalog](https://github.com/klanes0905/idk/blob/main/ar-food-menu-complete/script.js): `ar-food-menu-complete/script.js`
- [Food Details](https://github.com/klanes0905/idk/blob/main/ar-food-menu-complete/script.js): `ar-food-menu-complete/script.js`
- [3D Food Viewer](https://github.com/klanes0905/idk/blob/main/ar-food-menu-complete/script.js): `ar-food-menu-complete/script.js`
- [Pizza Model](https://github.com/klanes0905/idk/blob/main/ar-food-menu-complete/models/pizza.glb): `ar-food-menu-complete/models/pizza.glb`

### Cart and Checkout

- [Shopping Cart](https://github.com/klanes0905/idk/blob/main/ar-food-menu-complete/script.js): `ar-food-menu-complete/script.js`
- [Demo Checkout](https://github.com/klanes0905/idk/blob/main/ar-food-menu-complete/script.js): `ar-food-menu-complete/script.js`

### Browser Runtime

- **Browser Storage**
- [Status Toast](https://github.com/klanes0905/idk/blob/main/ar-food-menu-complete/script.js): `ar-food-menu-complete/script.js`

### Other components

- **Shopper**

## Connections

- Shopper → Menu Page: uses
- Food Catalog → Menu Page: renders menu (evidence: `ar-food-menu-complete/script.js`)
- Food Details → Menu Page: updates details (evidence: `ar-food-menu-complete/script.js`)
- Food Details → 3D Food Viewer: sets model (evidence: `ar-food-menu-complete/script.js`)
- 3D Food Viewer → Pizza Model: loads model (evidence: `ar-food-menu-complete/script.js`)
- Shopping Cart → Menu Page: renders cart (evidence: `ar-food-menu-complete/script.js`)
- Shopping Cart → Browser Storage: reads and writes (evidence: `ar-food-menu-complete/script.js`)
- Demo Checkout → Shopping Cart: clears cart (evidence: `ar-food-menu-complete/script.js`)
- Demo Checkout → Status Toast: shows result (evidence: `ar-food-menu-complete/script.js`)
