# mongkulim-a07y/zenex architecture

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

- Interactive diagram: https://gitdiagram.com/mongkulim-a07y/zenex
- Repository: https://github.com/mongkulim-a07y/zenex

## Overview

Zenex is a static, browser-based multi-category retail app. Users browse the home, shop, and product pages, then can use the cart, profile, and order-history pages; the README documents catalog, wishlist, account, checkout, and order capabilities. Shared scripts provide catalog data, localStorage-backed state, and layout helpers, while page scripts and styles are loaded by each HTML page. No source excerpts were provided, so the relationships shown here are limited to those explicitly documented in the README.

Main entry points: [`assets/js/core/layout.js`](https://github.com/mongkulim-a07y/zenex/blob/main/assets/js/core/layout.js) (Shared layout), [`index.html`](https://github.com/mongkulim-a07y/zenex/blob/main/index.html) (Home page), [`shop.html`](https://github.com/mongkulim-a07y/zenex/blob/main/shop.html) (Shop page), [`product.html`](https://github.com/mongkulim-a07y/zenex/blob/main/product.html) (Product page)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_pages["Retail pages"]
  node_home_page["Home page<br/>[index.html]"]
  node_shop_page["Shop page<br/>[shop.html]"]
  node_product_page["Product page<br/>[product.html]"]
  node_cart_page["Cart page<br/>[cart.html]"]
  node_history_page["Order history<br/>[history.html]"]
  node_profile_page["Profile page<br/>[profile.html]"]
end

subgraph group_page_logic["Page behavior"]
  node_home_logic["Home behavior<br/>[home.js]"]
  node_shop_logic["Shop behavior<br/>[shop.js]"]
  node_product_logic["Product behavior<br/>[product.js]"]
  node_cart_logic["Cart behavior<br/>[cart.js]"]
  node_history_logic["History behavior<br/>[history.js]"]
  node_profile_logic["Profile behavior<br/>[profile.js]"]
end

subgraph group_shared["Shared runtime"]
  node_catalog["Catalog data<br/>[data.js]"]
  node_store["Retail state<br/>[store.js]"]
  node_layout["Shared layout<br/>[layout.js]"]
end

subgraph group_presentation["Presentation"]
  node_base_styles["Base styles<br/>[base.css]"]
  node_component_styles["Component styles<br/>[components.css]"]
  node_page_styles["Page styles"]
end

node_shopper(("Shopper"))
node_local_storage[("Browser storage")]

node_shopper -->|"opens"| node_home_page
node_home_page -->|"loads script"| node_home_logic
node_shop_page -->|"loads script"| node_shop_logic
node_product_page -->|"loads script"| node_product_logic
node_cart_page -->|"loads script"| node_cart_logic
node_history_page -->|"loads script"| node_history_logic
node_profile_page -->|"loads script"| node_profile_logic
node_home_logic -->|"calls helpers"| node_layout
node_shop_logic -->|"calls helpers"| node_layout
node_product_logic -->|"calls helpers"| node_layout
node_cart_logic -->|"calls helpers"| node_layout
node_history_logic -->|"calls helpers"| node_layout
node_profile_logic -->|"calls helpers"| node_layout
node_home_page -->|"loads script"| node_catalog
node_shop_page -->|"loads script"| node_catalog
node_product_page -->|"loads script"| node_catalog
node_cart_page -->|"loads script"| node_catalog
node_history_page -->|"loads script"| node_catalog
node_profile_page -->|"loads script"| node_catalog
node_home_page -->|"loads script"| node_store
node_shop_page -->|"loads script"| node_store
node_product_page -->|"loads script"| node_store
node_cart_page -->|"loads script"| node_store
node_history_page -->|"loads script"| node_store
node_profile_page -->|"loads script"| node_store
node_home_page -->|"loads script"| node_layout
node_shop_page -->|"loads script"| node_layout
node_product_page -->|"loads script"| node_layout
node_cart_page -->|"loads script"| node_layout
node_history_page -->|"loads script"| node_layout
node_profile_page -->|"loads script"| node_layout
node_store -->|"reads and writes"| node_local_storage
node_home_page -->|"loads styles"| node_base_styles
node_shop_page -->|"loads styles"| node_base_styles
node_product_page -->|"loads styles"| node_base_styles
node_cart_page -->|"loads styles"| node_base_styles
node_history_page -->|"loads styles"| node_base_styles
node_profile_page -->|"loads styles"| node_base_styles
node_home_page -->|"loads styles"| node_component_styles
node_shop_page -->|"loads styles"| node_component_styles
node_product_page -->|"loads styles"| node_component_styles
node_cart_page -->|"loads styles"| node_component_styles
node_history_page -->|"loads styles"| node_component_styles
node_profile_page -->|"loads styles"| node_component_styles
node_home_page -->|"loads styles"| node_page_styles
node_shop_page -->|"loads styles"| node_page_styles
node_product_page -->|"loads styles"| node_page_styles
node_cart_page -->|"loads styles"| node_page_styles

click node_home_page "https://github.com/mongkulim-a07y/zenex/blob/main/index.html"
click node_shop_page "https://github.com/mongkulim-a07y/zenex/blob/main/shop.html"
click node_product_page "https://github.com/mongkulim-a07y/zenex/blob/main/product.html"
click node_cart_page "https://github.com/mongkulim-a07y/zenex/blob/main/cart.html"
click node_history_page "https://github.com/mongkulim-a07y/zenex/blob/main/history.html"
click node_profile_page "https://github.com/mongkulim-a07y/zenex/blob/main/profile.html"
click node_home_logic "https://github.com/mongkulim-a07y/zenex/blob/main/assets/js/pages/home.js"
click node_shop_logic "https://github.com/mongkulim-a07y/zenex/blob/main/assets/js/pages/shop.js"
click node_product_logic "https://github.com/mongkulim-a07y/zenex/blob/main/assets/js/pages/product.js"
click node_cart_logic "https://github.com/mongkulim-a07y/zenex/blob/main/assets/js/pages/cart.js"
click node_history_logic "https://github.com/mongkulim-a07y/zenex/blob/main/assets/js/pages/history.js"
click node_profile_logic "https://github.com/mongkulim-a07y/zenex/blob/main/assets/js/pages/profile.js"
click node_catalog "https://github.com/mongkulim-a07y/zenex/blob/main/assets/js/core/data.js"
click node_store "https://github.com/mongkulim-a07y/zenex/blob/main/assets/js/core/store.js"
click node_layout "https://github.com/mongkulim-a07y/zenex/blob/main/assets/js/core/layout.js"
click node_base_styles "https://github.com/mongkulim-a07y/zenex/blob/main/assets/css/base.css"
click node_component_styles "https://github.com/mongkulim-a07y/zenex/blob/main/assets/css/components.css"
click node_page_styles "https://github.com/mongkulim-a07y/zenex/tree/main/assets/css/pages"

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_home_page,node_shop_page,node_product_page,node_cart_page,node_history_page,node_profile_page toneBlue
class node_home_logic,node_shop_logic,node_product_logic,node_cart_logic,node_history_logic,node_profile_logic,node_local_storage toneAmber
class node_catalog,node_store,node_layout toneMint
class node_base_styles,node_component_styles,node_page_styles toneRose
class node_shopper toneIndigo
```

## Components

### Retail pages

- [Home page](https://github.com/mongkulim-a07y/zenex/blob/main/index.html): `index.html`
- [Shop page](https://github.com/mongkulim-a07y/zenex/blob/main/shop.html): `shop.html`
- [Product page](https://github.com/mongkulim-a07y/zenex/blob/main/product.html): `product.html`
- [Cart page](https://github.com/mongkulim-a07y/zenex/blob/main/cart.html): `cart.html`
- [Order history](https://github.com/mongkulim-a07y/zenex/blob/main/history.html): `history.html`
- [Profile page](https://github.com/mongkulim-a07y/zenex/blob/main/profile.html): `profile.html`

### Page behavior

- [Home behavior](https://github.com/mongkulim-a07y/zenex/blob/main/assets/js/pages/home.js): `assets/js/pages/home.js`
- [Shop behavior](https://github.com/mongkulim-a07y/zenex/blob/main/assets/js/pages/shop.js): `assets/js/pages/shop.js`
- [Product behavior](https://github.com/mongkulim-a07y/zenex/blob/main/assets/js/pages/product.js): `assets/js/pages/product.js`
- [Cart behavior](https://github.com/mongkulim-a07y/zenex/blob/main/assets/js/pages/cart.js): `assets/js/pages/cart.js`
- [History behavior](https://github.com/mongkulim-a07y/zenex/blob/main/assets/js/pages/history.js): `assets/js/pages/history.js`
- [Profile behavior](https://github.com/mongkulim-a07y/zenex/blob/main/assets/js/pages/profile.js): `assets/js/pages/profile.js`

### Shared runtime

- [Catalog data](https://github.com/mongkulim-a07y/zenex/blob/main/assets/js/core/data.js): `assets/js/core/data.js`
- [Retail state](https://github.com/mongkulim-a07y/zenex/blob/main/assets/js/core/store.js): `assets/js/core/store.js`
- [Shared layout](https://github.com/mongkulim-a07y/zenex/blob/main/assets/js/core/layout.js): `assets/js/core/layout.js`

### Presentation

- [Base styles](https://github.com/mongkulim-a07y/zenex/blob/main/assets/css/base.css): `assets/css/base.css`
- [Component styles](https://github.com/mongkulim-a07y/zenex/blob/main/assets/css/components.css): `assets/css/components.css`
- [Page styles](https://github.com/mongkulim-a07y/zenex/tree/main/assets/css/pages): `assets/css/pages`

### Other components

- **Shopper**
- **Browser storage**

## Connections

- Shopper → Home page: opens (evidence: `README.md`)
- Home page → Home behavior: loads script (evidence: `README.md`)
- Shop page → Shop behavior: loads script (evidence: `README.md`)
- Product page → Product behavior: loads script (evidence: `README.md`)
- Cart page → Cart behavior: loads script (evidence: `README.md`)
- Order history → History behavior: loads script (evidence: `README.md`)
- Profile page → Profile behavior: loads script (evidence: `README.md`)
- Home behavior → Shared layout: calls helpers (evidence: `README.md`)
- Shop behavior → Shared layout: calls helpers (evidence: `README.md`)
- Product behavior → Shared layout: calls helpers (evidence: `README.md`)
- Cart behavior → Shared layout: calls helpers (evidence: `README.md`)
- History behavior → Shared layout: calls helpers (evidence: `README.md`)
- Profile behavior → Shared layout: calls helpers (evidence: `README.md`)
- Home page → Catalog data: loads script (evidence: `README.md`)
- Shop page → Catalog data: loads script (evidence: `README.md`)
- Product page → Catalog data: loads script (evidence: `README.md`)
- Cart page → Catalog data: loads script (evidence: `README.md`)
- Order history → Catalog data: loads script (evidence: `README.md`)
- Profile page → Catalog data: loads script (evidence: `README.md`)
- Home page → Retail state: loads script (evidence: `README.md`)
- Shop page → Retail state: loads script (evidence: `README.md`)
- Product page → Retail state: loads script (evidence: `README.md`)
- Cart page → Retail state: loads script (evidence: `README.md`)
- Order history → Retail state: loads script (evidence: `README.md`)
- Profile page → Retail state: loads script (evidence: `README.md`)
- Home page → Shared layout: loads script (evidence: `README.md`)
- Shop page → Shared layout: loads script (evidence: `README.md`)
- Product page → Shared layout: loads script (evidence: `README.md`)
- Cart page → Shared layout: loads script (evidence: `README.md`)
- Order history → Shared layout: loads script (evidence: `README.md`)
- Profile page → Shared layout: loads script (evidence: `README.md`)
- Retail state → Browser storage: reads and writes (evidence: `README.md`)
- Home page → Base styles: loads styles (evidence: `README.md`)
- Shop page → Base styles: loads styles (evidence: `README.md`)
- Product page → Base styles: loads styles (evidence: `README.md`)
- Cart page → Base styles: loads styles (evidence: `README.md`)
- Order history → Base styles: loads styles (evidence: `README.md`)
- Profile page → Base styles: loads styles (evidence: `README.md`)
- Home page → Component styles: loads styles (evidence: `README.md`)
- Shop page → Component styles: loads styles (evidence: `README.md`)
- Product page → Component styles: loads styles (evidence: `README.md`)
- Cart page → Component styles: loads styles (evidence: `README.md`)
- Order history → Component styles: loads styles (evidence: `README.md`)
- Profile page → Component styles: loads styles (evidence: `README.md`)
- Home page → Page styles: loads styles (evidence: `README.md`)
- Shop page → Page styles: loads styles (evidence: `README.md`)
- Product page → Page styles: loads styles (evidence: `README.md`)
- Cart page → Page styles: loads styles (evidence: `README.md`)
