# mash20000/makumishop architecture

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

- Interactive diagram: https://gitdiagram.com/mash20000/makumishop
- Repository: https://github.com/mash20000/makumishop

## Overview

Makumi is a browser-based shop: customers browse listed products, add items to a cart, and submit checkout details to create a locally recorded order. The shop also lets users add catalog products to the listing. These behaviors and persistence helpers share one JavaScript file; the excerpts show browser-local storage, but no server-side order processing or payment integration. Some wiring is unsampled, so the graph includes only relationships visible in the excerpts.

Main entry points: [`script.js`](https://github.com/mash20000/makumishop/blob/main/script.js) (Product Browsing)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_shopping["Shopping"]
  node_catalog["Product Catalog<br/>[script.js]"]
  node_product_browse["Product Browsing<br/>[script.js]"]
  node_cart["Shopping Cart<br/>[script.js]"]
end

subgraph group_orders["Checkout and Orders"]
  node_checkout["Checkout<br/>[script.js]"]
  node_order_records["Order Records<br/>[script.js]"]
end

subgraph group_management["Shop Management"]
  node_listing_management["Product Listing<br/>[script.js]"]
end

subgraph group_runtime["Browser Runtime"]
  node_browser_storage[("Local Storage")]
end

node_customer(("Customer"))

node_customer -->|"browses"| node_product_browse
node_catalog -->|"renders"| node_product_browse
node_customer -->|"adds items"| node_cart
node_product_browse -->|"adds products"| node_cart
node_customer -->|"submits details"| node_checkout
node_cart -->|"provides items"| node_checkout
node_checkout -->|"creates order"| node_order_records
node_order_records -->|"saves orders"| node_browser_storage
node_customer -->|"adds products"| node_listing_management
node_catalog -->|"supplies choices"| node_listing_management
node_listing_management -->|"saves listing"| node_browser_storage

click node_catalog "https://github.com/mash20000/makumishop/blob/main/script.js"
click node_product_browse "https://github.com/mash20000/makumishop/blob/main/script.js"
click node_cart "https://github.com/mash20000/makumishop/blob/main/script.js"
click node_checkout "https://github.com/mash20000/makumishop/blob/main/script.js"
click node_order_records "https://github.com/mash20000/makumishop/blob/main/script.js"
click node_listing_management "https://github.com/mash20000/makumishop/blob/main/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_catalog,node_product_browse,node_cart toneBlue
class node_checkout,node_order_records toneAmber
class node_listing_management toneMint
class node_browser_storage toneRose
class node_customer toneIndigo
```

## Components

### Shopping

- [Product Catalog](https://github.com/mash20000/makumishop/blob/main/script.js): `script.js`
- [Product Browsing](https://github.com/mash20000/makumishop/blob/main/script.js): `script.js`
- [Shopping Cart](https://github.com/mash20000/makumishop/blob/main/script.js): `script.js`

### Checkout and Orders

- [Checkout](https://github.com/mash20000/makumishop/blob/main/script.js): `script.js`
- [Order Records](https://github.com/mash20000/makumishop/blob/main/script.js): `script.js`

### Shop Management

- [Product Listing](https://github.com/mash20000/makumishop/blob/main/script.js): `script.js`

### Browser Runtime

- **Local Storage**

### Other components

- **Customer**

## Connections

- Customer → Product Browsing: browses (evidence: `script.js`)
- Product Catalog → Product Browsing: renders (evidence: `script.js`)
- Customer → Shopping Cart: adds items (evidence: `script.js`)
- Product Browsing → Shopping Cart: adds products (evidence: `script.js`)
- Customer → Checkout: submits details (evidence: `script.js`)
- Shopping Cart → Checkout: provides items (evidence: `script.js`)
- Checkout → Order Records: creates order (evidence: `script.js`)
- Order Records → Local Storage: saves orders (evidence: `script.js`)
- Customer → Product Listing: adds products (evidence: `script.js`)
- Product Catalog → Product Listing: supplies choices (evidence: `script.js`)
- Product Listing → Local Storage: saves listing (evidence: `script.js`)
