# enisthebiker/menuver architecture

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

## Overview

Menuver is a self-hosted, multi-business digital-menu system. Business owners register or sign in, manage their menu categories, products, and restaurant identity, and customers view a business-specific menu via QR code or direct link. A developer administrator can list businesses, select one to manage, or delete it. The API excerpts show PHP endpoints using shared session/database helpers and querying MySQL; frontend-to-endpoint wiring is not shown, so those links are documented at the product level rather than inferred from filenames.

Main entry points: [`QRmenu/api/config.php`](https://github.com/enisthebiker/menuver/blob/main/QRmenu/api/config.php) (DB and sessions), [`QRmenu/admin.html`](https://github.com/enisthebiker/menuver/blob/main/QRmenu/admin.html) (Business panel), [`QRmenu/developer.html`](https://github.com/enisthebiker/menuver/blob/main/QRmenu/developer.html) (Developer panel), [`QRmenu/register.html`](https://github.com/enisthebiker/menuver/blob/main/QRmenu/register.html) (Registration)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ui["Web experiences"]
  node_public_menu["Public menu<br/>[index.html]"]
  node_business_panel["Business panel<br/>[admin.html]"]
  node_developer_panel["Developer panel<br/>[developer.html]"]
  node_signup["Registration<br/>[register.html]"]
  node_login_page["Login<br/>[login.html]"]
end

subgraph group_accounts["Accounts and access"]
  node_register_api["Business registration<br/>[register.php]"]
  node_login_api["Authentication<br/>[login.php]"]
  node_session_api["Session context<br/>[session.php]"]
  node_logout_api["Logout<br/>[logout.php]"]
  node_account_delete["Account deletion<br/>[delete-account.php]"]
end

subgraph group_menus["Menu management"]
  node_business_list["Business directory"]
  node_business_select["Business selection"]
  node_business_delete["Business deletion"]
  node_products_api["Product management<br/>[products.php]"]
  node_categories_api["Category management<br/>[categories.php]"]
  node_restaurant_api["Restaurant settings<br/>[restaurant.php]"]
end

subgraph group_data["Persistence"]
  node_shared_config["DB and sessions<br/>[config.php]"]
  node_mysql[("MySQL database<br/>[qrmenu &#40;4&#41;.sql]")]
end

node_customer(("Menu visitor"))
node_owner(("Business owner"))
node_developer(("Developer admin"))

node_customer -->|"opens QR or link"| node_public_menu
node_owner -->|"registers"| node_signup
node_owner -->|"signs in"| node_login_page
node_owner -->|"manages menu"| node_business_panel
node_developer -->|"manages businesses"| node_developer_panel
node_signup -.->|"submits registration"| node_register_api
node_login_page -.->|"submits credentials"| node_login_api
node_business_panel -.->|"gets business context"| node_session_api
node_business_panel -->|"manages products"| node_products_api
node_business_panel -->|"manages categories"| node_categories_api
node_business_panel -->|"updates identity"| node_restaurant_api
node_developer_panel -->|"lists businesses"| node_business_list
node_developer_panel -->|"selects business"| node_business_select
node_developer_panel -.->|"deletes business"| node_business_delete
node_login_api -->|"loads helpers"| node_shared_config
node_register_api -->|"loads database"| node_shared_config
node_session_api -->|"loads session helpers"| node_shared_config
node_logout_api -->|"loads session helpers"| node_shared_config
node_account_delete -->|"loads session helpers"| node_shared_config
node_business_list -->|"loads database"| node_shared_config
node_business_select -->|"loads database"| node_shared_config
node_business_delete -->|"loads database"| node_shared_config
node_products_api -->|"loads database"| node_shared_config
node_categories_api -->|"loads database"| node_shared_config
node_restaurant_api -->|"loads database"| node_shared_config
node_shared_config -->|"connects to"| node_mysql

click node_public_menu "https://github.com/enisthebiker/menuver/blob/main/QRmenu/index.html"
click node_business_panel "https://github.com/enisthebiker/menuver/blob/main/QRmenu/admin.html"
click node_developer_panel "https://github.com/enisthebiker/menuver/blob/main/QRmenu/developer.html"
click node_signup "https://github.com/enisthebiker/menuver/blob/main/QRmenu/register.html"
click node_login_page "https://github.com/enisthebiker/menuver/blob/main/QRmenu/login.html"
click node_register_api "https://github.com/enisthebiker/menuver/blob/main/QRmenu/api/register.php"
click node_login_api "https://github.com/enisthebiker/menuver/blob/main/QRmenu/api/login.php"
click node_session_api "https://github.com/enisthebiker/menuver/blob/main/QRmenu/api/session.php"
click node_logout_api "https://github.com/enisthebiker/menuver/blob/main/QRmenu/api/logout.php"
click node_account_delete "https://github.com/enisthebiker/menuver/blob/main/QRmenu/api/delete-account.php"
click node_business_list "https://github.com/enisthebiker/menuver/blob/main/QRmenu/api/admin-businesses.php"
click node_business_select "https://github.com/enisthebiker/menuver/blob/main/QRmenu/api/select-business.php"
click node_business_delete "https://github.com/enisthebiker/menuver/blob/main/QRmenu/api/delete-business.php"
click node_products_api "https://github.com/enisthebiker/menuver/blob/main/QRmenu/api/products.php"
click node_categories_api "https://github.com/enisthebiker/menuver/blob/main/QRmenu/api/categories.php"
click node_restaurant_api "https://github.com/enisthebiker/menuver/blob/main/QRmenu/api/restaurant.php"
click node_shared_config "https://github.com/enisthebiker/menuver/blob/main/QRmenu/api/config.php"
click node_mysql "https://github.com/enisthebiker/menuver/blob/main/QRmenu/database/qrmenu%20(4).sql"

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_public_menu,node_business_panel,node_developer_panel,node_signup,node_login_page toneBlue
class node_register_api,node_login_api,node_session_api,node_logout_api,node_account_delete toneAmber
class node_business_list,node_business_select,node_business_delete,node_products_api,node_categories_api,node_restaurant_api toneMint
class node_shared_config,node_mysql toneRose
class node_customer,node_owner,node_developer toneIndigo
```

## Components

### Web experiences

- [Public menu](https://github.com/enisthebiker/menuver/blob/main/QRmenu/index.html): `QRmenu/index.html`
- [Business panel](https://github.com/enisthebiker/menuver/blob/main/QRmenu/admin.html): `QRmenu/admin.html`
- [Developer panel](https://github.com/enisthebiker/menuver/blob/main/QRmenu/developer.html): `QRmenu/developer.html`
- [Registration](https://github.com/enisthebiker/menuver/blob/main/QRmenu/register.html): `QRmenu/register.html`
- [Login](https://github.com/enisthebiker/menuver/blob/main/QRmenu/login.html): `QRmenu/login.html`

### Accounts and access

- [Business registration](https://github.com/enisthebiker/menuver/blob/main/QRmenu/api/register.php): `QRmenu/api/register.php`
- [Authentication](https://github.com/enisthebiker/menuver/blob/main/QRmenu/api/login.php): `QRmenu/api/login.php`
- [Session context](https://github.com/enisthebiker/menuver/blob/main/QRmenu/api/session.php): `QRmenu/api/session.php`
- [Logout](https://github.com/enisthebiker/menuver/blob/main/QRmenu/api/logout.php): `QRmenu/api/logout.php`
- [Account deletion](https://github.com/enisthebiker/menuver/blob/main/QRmenu/api/delete-account.php): `QRmenu/api/delete-account.php`

### Menu management

- [Business directory](https://github.com/enisthebiker/menuver/blob/main/QRmenu/api/admin-businesses.php): `QRmenu/api/admin-businesses.php`
- [Business selection](https://github.com/enisthebiker/menuver/blob/main/QRmenu/api/select-business.php): `QRmenu/api/select-business.php`
- [Business deletion](https://github.com/enisthebiker/menuver/blob/main/QRmenu/api/delete-business.php): `QRmenu/api/delete-business.php`
- [Product management](https://github.com/enisthebiker/menuver/blob/main/QRmenu/api/products.php): `QRmenu/api/products.php`
- [Category management](https://github.com/enisthebiker/menuver/blob/main/QRmenu/api/categories.php): `QRmenu/api/categories.php`
- [Restaurant settings](https://github.com/enisthebiker/menuver/blob/main/QRmenu/api/restaurant.php): `QRmenu/api/restaurant.php`

### Persistence

- [DB and sessions](https://github.com/enisthebiker/menuver/blob/main/QRmenu/api/config.php): `QRmenu/api/config.php`
- [MySQL database](https://github.com/enisthebiker/menuver/blob/main/QRmenu/database/qrmenu%20(4).sql): `QRmenu/database/qrmenu (4).sql`

### Other components

- **Menu visitor**
- **Business owner**
- **Developer admin**

## Connections

- Menu visitor → Public menu: opens QR or link (evidence: `README.md`)
- Business owner → Registration: registers (evidence: `README.md`)
- Business owner → Login: signs in (evidence: `README.md`)
- Business owner → Business panel: manages menu (evidence: `README.md`)
- Developer admin → Developer panel: manages businesses (evidence: `README.md`)
- Registration → Business registration: submits registration
- Login → Authentication: submits credentials
- Business panel → Session context: gets business context
- Business panel → Product management: manages products (evidence: `README.md`)
- Business panel → Category management: manages categories (evidence: `README.md`)
- Business panel → Restaurant settings: updates identity (evidence: `README.md`)
- Developer panel → Business directory: lists businesses (evidence: `README.md`)
- Developer panel → Business selection: selects business (evidence: `README.md`)
- Developer panel → Business deletion: deletes business
- Authentication → DB and sessions: loads helpers (evidence: `QRmenu/api/login.php`)
- Business registration → DB and sessions: loads database (evidence: `QRmenu/api/register.php`)
- Session context → DB and sessions: loads session helpers (evidence: `QRmenu/api/session.php`)
- Logout → DB and sessions: loads session helpers (evidence: `QRmenu/api/logout.php`)
- Account deletion → DB and sessions: loads session helpers (evidence: `QRmenu/api/delete-account.php`)
- Business directory → DB and sessions: loads database (evidence: `QRmenu/api/admin-businesses.php`)
- Business selection → DB and sessions: loads database (evidence: `QRmenu/api/select-business.php`)
- Business deletion → DB and sessions: loads database (evidence: `QRmenu/api/delete-business.php`)
- Product management → DB and sessions: loads database (evidence: `QRmenu/api/products.php`)
- Category management → DB and sessions: loads database (evidence: `QRmenu/api/categories.php`)
- Restaurant settings → DB and sessions: loads database (evidence: `QRmenu/api/restaurant.php`)
- DB and sessions → MySQL database: connects to (evidence: `QRmenu/api/config.php`)
