# siva8401/sasi_wonder_cakes architecture

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

- Interactive diagram: https://gitdiagram.com/siva8401/sasi_wonder_cakes
- Repository: https://github.com/siva8401/sasi_wonder_cakes

## Overview

This is a browser-based bakery catalog and ordering site. A customer browses and filters products, adds items to a cart, enters checkout details (including delivery location and timing), then sends the order through WhatsApp. The sampled app.js supports these interactions, browser cart storage, and location lookup; the README is empty, and unsampled source limits certainty about the full checkout and location implementation.

Main entry points: [`app.js`](https://github.com/siva8401/sasi_wonder_cakes/blob/main/app.js) (Checkout details)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_catalog["Product catalog"]
  node_catalog_data["Product catalog data<br/>[app.js]"]
  node_catalog_view["Catalog and filters<br/>[app.js]"]
end

subgraph group_ordering["Cart and checkout"]
  node_cart["Cart interactions<br/>[app.js]"]
  node_checkout["Checkout details<br/>[app.js]"]
  node_location["Location lookup<br/>[app.js]"]
  node_order_send["Order message<br/>[app.js]"]
  node_alert["Order confirmation alert<br/>[app.js]"]
end

subgraph group_browser["Browser services"]
  node_cart_storage[("Browser cart storage")]
  node_geolocation["Browser geolocation"]
end

node_customer(("Customer"))
node_whatsapp["WhatsApp"]

node_customer -->|"browses"| node_catalog_view
node_catalog_view -->|"filters and renders"| node_catalog_data
node_customer -->|"adds items"| node_cart
node_cart -->|"reads and writes"| node_cart_storage
node_customer -->|"enters details"| node_checkout
node_checkout -->|"requests location"| node_location
node_location -->|"queries"| node_geolocation
node_checkout -->|"formats order"| node_order_send
node_order_send -->|"opens message"| node_whatsapp
node_checkout -->|"clears cart"| node_cart_storage
node_checkout -->|"shows confirmation"| node_alert

click node_catalog_data "https://github.com/siva8401/sasi_wonder_cakes/blob/main/app.js"
click node_catalog_view "https://github.com/siva8401/sasi_wonder_cakes/blob/main/app.js"
click node_cart "https://github.com/siva8401/sasi_wonder_cakes/blob/main/app.js"
click node_checkout "https://github.com/siva8401/sasi_wonder_cakes/blob/main/app.js"
click node_location "https://github.com/siva8401/sasi_wonder_cakes/blob/main/app.js"
click node_order_send "https://github.com/siva8401/sasi_wonder_cakes/blob/main/app.js"
click node_alert "https://github.com/siva8401/sasi_wonder_cakes/blob/main/app.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_data,node_catalog_view toneBlue
class node_cart,node_checkout,node_location,node_order_send,node_alert toneAmber
class node_cart_storage,node_geolocation toneMint
class node_customer,node_whatsapp toneIndigo
```

## Components

### Product catalog

- [Product catalog data](https://github.com/siva8401/sasi_wonder_cakes/blob/main/app.js): `app.js`
- [Catalog and filters](https://github.com/siva8401/sasi_wonder_cakes/blob/main/app.js): `app.js`

### Cart and checkout

- [Cart interactions](https://github.com/siva8401/sasi_wonder_cakes/blob/main/app.js): `app.js`
- [Checkout details](https://github.com/siva8401/sasi_wonder_cakes/blob/main/app.js): `app.js`
- [Location lookup](https://github.com/siva8401/sasi_wonder_cakes/blob/main/app.js): `app.js`
- [Order message](https://github.com/siva8401/sasi_wonder_cakes/blob/main/app.js): `app.js`
- [Order confirmation alert](https://github.com/siva8401/sasi_wonder_cakes/blob/main/app.js): `app.js`

### Browser services

- **Browser cart storage**
- **Browser geolocation**

### Other components

- **Customer**
- **WhatsApp**

## Connections

- Customer → Catalog and filters: browses (evidence: `app.js`)
- Catalog and filters → Product catalog data: filters and renders (evidence: `app.js`)
- Customer → Cart interactions: adds items (evidence: `app.js`)
- Cart interactions → Browser cart storage: reads and writes (evidence: `app.js`)
- Customer → Checkout details: enters details (evidence: `app.js`)
- Checkout details → Location lookup: requests location (evidence: `app.js`)
- Location lookup → Browser geolocation: queries (evidence: `app.js`)
- Checkout details → Order message: formats order (evidence: `app.js`)
- Order message → WhatsApp: opens message (evidence: `app.js`)
- Checkout details → Browser cart storage: clears cart (evidence: `app.js`)
- Checkout details → Order confirmation alert: shows confirmation (evidence: `app.js`)
