# salman-sensei/artisans-haven architecture

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

- Interactive diagram: https://gitdiagram.com/salman-sensei/artisans-haven
- Repository: https://github.com/salman-sensei/artisans-haven

## Overview

Artisan’s Haven is a single-file handcrafted-goods storefront. The documented shopping flow is product discovery through search, filters, and quick view, followed by cart updates and simulated checkout. The README also describes reviews, wishlist, contact email, persistent cart state, and visual effects. All repository components map to `index.html`; the source itself was not excerpted, so relationships below are limited to those documented in the README.

Main entry points: [`index.html`](https://github.com/salman-sensei/artisans-haven/blob/main/index.html) (Storefront)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_storefront["Storefront"]
  node_storefront["Storefront<br/>[index.html]"]
  node_catalog["Product Catalog<br/>[index.html]"]
  node_search["Live Search<br/>[index.html]"]
  node_filters["Category Filters<br/>[index.html]"]
  node_quickview["Product Quick View<br/>[index.html]"]
  node_wishlist["Wishlist<br/>[index.html]"]
end

subgraph group_commerce["Shopping &amp; Cart"]
  node_cart["Cart<br/>[index.html]"]
  node_cartstorage["Cart Persistence<br/>[index.html]"]
  node_checkout["Simulated Checkout<br/>[index.html]"]
end

subgraph group_community["Customer Engagement"]
  node_reviews["Reviews &amp; Ratings<br/>[index.html]"]
  node_contact["Contact Form<br/>[index.html]"]
end

subgraph group_experience["Visual Experience"]
  node_motion["Animations &amp; Effects<br/>[index.html]"]
  node_canvas["Canvas Particles<br/>[index.html]"]
end

node_shopper(("Shopper"))
node_localstorage[("Browser LocalStorage")]
node_emailjs["EmailJS"]

node_shopper -->|"uses"| node_storefront
node_storefront -->|"shows products"| node_catalog
node_shopper -->|"searches"| node_search
node_shopper -->|"filters"| node_filters
node_shopper -->|"opens details"| node_quickview
node_shopper -->|"manages items"| node_wishlist
node_shopper -->|"adds items"| node_cart
node_cart -->|"persists cart"| node_cartstorage
node_cartstorage -->|"saves and restores"| node_localstorage
node_shopper -->|"checks out"| node_checkout
node_shopper -->|"rates products"| node_reviews
node_shopper -->|"sends inquiry"| node_contact
node_contact -->|"sends email"| node_emailjs
node_storefront -->|"animates interface"| node_motion
node_storefront -->|"renders particles"| node_canvas

click node_storefront "https://github.com/salman-sensei/artisans-haven/blob/main/index.html"
click node_catalog "https://github.com/salman-sensei/artisans-haven/blob/main/index.html"
click node_search "https://github.com/salman-sensei/artisans-haven/blob/main/index.html"
click node_filters "https://github.com/salman-sensei/artisans-haven/blob/main/index.html"
click node_quickview "https://github.com/salman-sensei/artisans-haven/blob/main/index.html"
click node_wishlist "https://github.com/salman-sensei/artisans-haven/blob/main/index.html"
click node_cart "https://github.com/salman-sensei/artisans-haven/blob/main/index.html"
click node_cartstorage "https://github.com/salman-sensei/artisans-haven/blob/main/index.html"
click node_checkout "https://github.com/salman-sensei/artisans-haven/blob/main/index.html"
click node_reviews "https://github.com/salman-sensei/artisans-haven/blob/main/index.html"
click node_contact "https://github.com/salman-sensei/artisans-haven/blob/main/index.html"
click node_motion "https://github.com/salman-sensei/artisans-haven/blob/main/index.html"
click node_canvas "https://github.com/salman-sensei/artisans-haven/blob/main/index.html"

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_storefront,node_catalog,node_search,node_filters,node_quickview,node_wishlist toneBlue
class node_cart,node_cartstorage,node_checkout,node_localstorage toneAmber
class node_reviews,node_contact toneMint
class node_motion,node_canvas toneRose
class node_shopper,node_emailjs toneIndigo
```

## Components

### Storefront

- [Storefront](https://github.com/salman-sensei/artisans-haven/blob/main/index.html): `index.html`
- [Product Catalog](https://github.com/salman-sensei/artisans-haven/blob/main/index.html): `index.html`
- [Live Search](https://github.com/salman-sensei/artisans-haven/blob/main/index.html): `index.html`
- [Category Filters](https://github.com/salman-sensei/artisans-haven/blob/main/index.html): `index.html`
- [Product Quick View](https://github.com/salman-sensei/artisans-haven/blob/main/index.html): `index.html`
- [Wishlist](https://github.com/salman-sensei/artisans-haven/blob/main/index.html): `index.html`

### Shopping & Cart

- [Cart](https://github.com/salman-sensei/artisans-haven/blob/main/index.html): `index.html`
- [Cart Persistence](https://github.com/salman-sensei/artisans-haven/blob/main/index.html): `index.html`
- [Simulated Checkout](https://github.com/salman-sensei/artisans-haven/blob/main/index.html): `index.html`

### Customer Engagement

- [Reviews & Ratings](https://github.com/salman-sensei/artisans-haven/blob/main/index.html): `index.html`
- [Contact Form](https://github.com/salman-sensei/artisans-haven/blob/main/index.html): `index.html`

### Visual Experience

- [Animations & Effects](https://github.com/salman-sensei/artisans-haven/blob/main/index.html): `index.html`
- [Canvas Particles](https://github.com/salman-sensei/artisans-haven/blob/main/index.html): `index.html`

### Other components

- **Shopper**
- **Browser LocalStorage**
- **EmailJS**

## Connections

- Shopper → Storefront: uses (evidence: `README.md`)
- Storefront → Product Catalog: shows products (evidence: `README.md`)
- Shopper → Live Search: searches (evidence: `README.md`)
- Shopper → Category Filters: filters (evidence: `README.md`)
- Shopper → Product Quick View: opens details (evidence: `README.md`)
- Shopper → Wishlist: manages items (evidence: `README.md`)
- Shopper → Cart: adds items (evidence: `README.md`)
- Cart → Cart Persistence: persists cart (evidence: `README.md`)
- Cart Persistence → Browser LocalStorage: saves and restores (evidence: `README.md`)
- Shopper → Simulated Checkout: checks out (evidence: `README.md`)
- Shopper → Reviews & Ratings: rates products (evidence: `README.md`)
- Shopper → Contact Form: sends inquiry (evidence: `README.md`)
- Contact Form → EmailJS: sends email (evidence: `README.md`)
- Storefront → Animations & Effects: animates interface (evidence: `README.md`)
- Storefront → Canvas Particles: renders particles (evidence: `README.md`)
