# eshtechz/menumint architecture

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

- Interactive diagram: https://gitdiagram.com/eshtechz/menumint
- Repository: https://github.com/eshtechz/menumint

## Overview

MenuMint is a static landing page for validating a restaurant direct-order offer, paired with a customer-facing sample menu. The principal visitor flow is to view the offer and submit an enquiry; visitors can also open the demo menu and try its order interaction. The sampled app code validates and records referral parameters and logs demo opens in browser storage. The README documents inbox activation and optional host analytics, but the relevant form, demo, and hosting wiring was not sampled, so those details are shown only where documented.

Main entry points: [`index.html`](https://github.com/eshtechz/menumint/blob/main/index.html) (Lead form), [`app.js`](https://github.com/eshtechz/menumint/blob/main/app.js) (Page behavior), [`demo/index.html`](https://github.com/eshtechz/menumint/blob/main/demo/index.html) (Sample menu), [`demo/menu.js`](https://github.com/eshtechz/menumint/blob/main/demo/menu.js) (Menu behavior)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_visitor(("Visitor"))
node_landing["Offer page<br/>[index.html]"]
node_leadform["Lead form<br/>[index.html]"]
node_pagebehavior["Page behavior<br/>[app.js]"]
node_demo["Sample menu<br/>[index.html]"]
node_demobehavior["Menu behavior<br/>[menu.js]"]
node_inbox["Owner inbox"]
node_browserstore[("Browser event storage")]
node_analytics["Host analytics"]

node_visitor -->|"views"| node_landing
node_landing -->|"offers"| node_leadform
node_pagebehavior -->|"reads referral"| node_leadform
node_leadform -->|"sends enquiry"| node_inbox
node_visitor -->|"opens"| node_demo
node_demo -->|"provides interaction"| node_demobehavior
node_pagebehavior -->|"logs demo opens"| node_browserstore
node_visitor -.->|"may be measured"| node_analytics

click node_landing "https://github.com/eshtechz/menumint/blob/main/index.html"
click node_leadform "https://github.com/eshtechz/menumint/blob/main/index.html"
click node_pagebehavior "https://github.com/eshtechz/menumint/blob/main/app.js"
click node_demo "https://github.com/eshtechz/menumint/blob/main/demo/index.html"
click node_demobehavior "https://github.com/eshtechz/menumint/blob/main/demo/menu.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_visitor,node_inbox,node_analytics toneIndigo
class node_landing,node_leadform,node_pagebehavior,node_demo,node_demobehavior toneTeal
class node_browserstore toneAmber
```

## Components

### Other components

- **Visitor**
- [Offer page](https://github.com/eshtechz/menumint/blob/main/index.html): `index.html`
- [Lead form](https://github.com/eshtechz/menumint/blob/main/index.html): `index.html`
- [Page behavior](https://github.com/eshtechz/menumint/blob/main/app.js): `app.js`
- [Sample menu](https://github.com/eshtechz/menumint/blob/main/demo/index.html): `demo/index.html`
- [Menu behavior](https://github.com/eshtechz/menumint/blob/main/demo/menu.js): `demo/menu.js`
- **Owner inbox**
- **Browser event storage**
- **Host analytics**

## Connections

- Visitor → Offer page: views (evidence: `README.md`)
- Offer page → Lead form: offers (evidence: `README.md`)
- Page behavior → Lead form: reads referral (evidence: `app.js`)
- Lead form → Owner inbox: sends enquiry (evidence: `README.md`)
- Visitor → Sample menu: opens (evidence: `README.md`)
- Sample menu → Menu behavior: provides interaction (evidence: `README.md`)
- Page behavior → Browser event storage: logs demo opens (evidence: `app.js`)
- Visitor → Host analytics: may be measured (evidence: `README.md`)
