# ganeshnil/my-first-website-vaishnavi-alankar architecture

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

- Interactive diagram: https://gitdiagram.com/ganeshnil/my-first-website-vaishnavi-alankar
- Repository: https://github.com/ganeshnil/my-first-website-vaishnavi-alankar

## Overview

Vaishnavi Alankar is a jewelry showcase website with interactive product browsing, a scroll-driven visual experience, and client-side cart, wishlist, account, and checkout features. The user journey begins in the website UI, where visitors browse and filter products, then use the cart and checkout flow; account features support registration and sign-in. The excerpts show the main script’s initialization, browser storage, and Supabase interactions, but omit much of the product and order logic, so those connections are limited to documented or directly evidenced relationships.

Main entry points: [`index.html`](https://github.com/ganeshnil/my-first-website-vaishnavi-alankar/blob/main/index.html) (Jewelry website), [`main.js`](https://github.com/ganeshnil/my-first-website-vaishnavi-alankar/blob/main/main.js) (Product browsing), [`styles.css`](https://github.com/ganeshnil/my-first-website-vaishnavi-alankar/blob/main/styles.css) (Luxury responsive UI), [`indian-data.js`](https://github.com/ganeshnil/my-first-website-vaishnavi-alankar/blob/main/indian-data.js) (Indian locations)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["Website experience"]
  node_website["Jewelry website<br/>[index.html]"]
  node_styles["Luxury responsive UI<br/>[styles.css]"]
  node_scroll["Scroll animations<br/>[main.js]"]
  node_viewer["3D jewelry viewer<br/>[main.js]"]
end

subgraph group_commerce["Shopping and checkout"]
  node_product_browse["Product browsing<br/>[main.js]"]
  node_product_filters["Product filters<br/>[main.js]"]
  node_cart_wishlist["Cart and wishlist<br/>[main.js]"]
  node_quickview["Product quick view<br/>[main.js]"]
  node_checkout["Checkout<br/>[main.js]"]
  node_delivery["Delivery details<br/>[main.js]"]
  node_indian_locations["Indian locations<br/>[indian-data.js]"]
end

subgraph group_identity["Account services"]
  node_auth_ui["Account interface<br/>[main.js]"]
  node_registration["Account registration<br/>[main.js]"]
  node_auth_service["Supabase Auth"]
end

subgraph group_data["Client and remote data"]
  node_browser_storage[("Browser local storage")]
  node_supabase[("Supabase")]
end

node_visitor(("Visitor"))

node_visitor -->|"opens"| node_website
node_website -.->|"styles"| node_styles
node_website -->|"initializes"| node_scroll
node_website -.->|"initializes"| node_viewer
node_visitor -.->|"browses"| node_product_browse
node_product_browse -->|"filters"| node_product_filters
node_visitor -.->|"manages items"| node_cart_wishlist
node_cart_wishlist -->|"persists"| node_browser_storage
node_product_browse -.->|"opens"| node_quickview
node_visitor -.->|"starts checkout"| node_checkout
node_checkout -.->|"collects details"| node_delivery
node_checkout -->|"reads items"| node_cart_wishlist
node_visitor -.->|"opens account"| node_auth_ui
node_auth_ui -.->|"submits registration"| node_registration
node_registration -->|"signs up"| node_auth_service
node_auth_service -.->|"authenticates"| node_supabase
node_registration -->|"inserts registration"| node_supabase
node_auth_service -->|"syncs cart and wishlist"| node_browser_storage
node_delivery -.->|"uses location options"| node_indian_locations

click node_website "https://github.com/ganeshnil/my-first-website-vaishnavi-alankar/blob/main/index.html"
click node_styles "https://github.com/ganeshnil/my-first-website-vaishnavi-alankar/blob/main/styles.css"
click node_scroll "https://github.com/ganeshnil/my-first-website-vaishnavi-alankar/blob/main/main.js"
click node_viewer "https://github.com/ganeshnil/my-first-website-vaishnavi-alankar/blob/main/main.js"
click node_product_browse "https://github.com/ganeshnil/my-first-website-vaishnavi-alankar/blob/main/main.js"
click node_product_filters "https://github.com/ganeshnil/my-first-website-vaishnavi-alankar/blob/main/main.js"
click node_cart_wishlist "https://github.com/ganeshnil/my-first-website-vaishnavi-alankar/blob/main/main.js"
click node_quickview "https://github.com/ganeshnil/my-first-website-vaishnavi-alankar/blob/main/main.js"
click node_checkout "https://github.com/ganeshnil/my-first-website-vaishnavi-alankar/blob/main/main.js"
click node_delivery "https://github.com/ganeshnil/my-first-website-vaishnavi-alankar/blob/main/main.js"
click node_auth_ui "https://github.com/ganeshnil/my-first-website-vaishnavi-alankar/blob/main/main.js"
click node_registration "https://github.com/ganeshnil/my-first-website-vaishnavi-alankar/blob/main/main.js"
click node_indian_locations "https://github.com/ganeshnil/my-first-website-vaishnavi-alankar/blob/main/indian-data.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_website,node_styles,node_scroll,node_viewer toneBlue
class node_product_browse,node_product_filters,node_cart_wishlist,node_quickview,node_checkout,node_delivery,node_indian_locations toneAmber
class node_auth_ui,node_registration,node_auth_service toneMint
class node_browser_storage,node_supabase toneRose
class node_visitor toneIndigo
```

## Components

### Website experience

- [Jewelry website](https://github.com/ganeshnil/my-first-website-vaishnavi-alankar/blob/main/index.html): `index.html`
- [Luxury responsive UI](https://github.com/ganeshnil/my-first-website-vaishnavi-alankar/blob/main/styles.css): `styles.css`
- [Scroll animations](https://github.com/ganeshnil/my-first-website-vaishnavi-alankar/blob/main/main.js): `main.js`
- [3D jewelry viewer](https://github.com/ganeshnil/my-first-website-vaishnavi-alankar/blob/main/main.js): `main.js`

### Shopping and checkout

- [Product browsing](https://github.com/ganeshnil/my-first-website-vaishnavi-alankar/blob/main/main.js): `main.js`
- [Product filters](https://github.com/ganeshnil/my-first-website-vaishnavi-alankar/blob/main/main.js): `main.js`
- [Cart and wishlist](https://github.com/ganeshnil/my-first-website-vaishnavi-alankar/blob/main/main.js): `main.js`
- [Product quick view](https://github.com/ganeshnil/my-first-website-vaishnavi-alankar/blob/main/main.js): `main.js`
- [Checkout](https://github.com/ganeshnil/my-first-website-vaishnavi-alankar/blob/main/main.js): `main.js`
- [Delivery details](https://github.com/ganeshnil/my-first-website-vaishnavi-alankar/blob/main/main.js): `main.js`
- [Indian locations](https://github.com/ganeshnil/my-first-website-vaishnavi-alankar/blob/main/indian-data.js): `indian-data.js`

### Account services

- [Account interface](https://github.com/ganeshnil/my-first-website-vaishnavi-alankar/blob/main/main.js): `main.js`
- [Account registration](https://github.com/ganeshnil/my-first-website-vaishnavi-alankar/blob/main/main.js): `main.js`
- **Supabase Auth**

### Client and remote data

- **Browser local storage**
- **Supabase**

### Other components

- **Visitor**

## Connections

- Visitor → Jewelry website: opens (evidence: `README.md`)
- Jewelry website → Luxury responsive UI: styles
- Jewelry website → Scroll animations: initializes (evidence: `main.js`)
- Jewelry website → 3D jewelry viewer: initializes
- Visitor → Product browsing: browses (evidence: `README.md`)
- Product browsing → Product filters: filters (evidence: `main.js`)
- Visitor → Cart and wishlist: manages items (evidence: `README.md`)
- Cart and wishlist → Browser local storage: persists (evidence: `main.js`)
- Product browsing → Product quick view: opens (evidence: `main.js`)
- Visitor → Checkout: starts checkout
- Checkout → Delivery details: collects details (evidence: `main.js`)
- Checkout → Cart and wishlist: reads items (evidence: `main.js`)
- Visitor → Account interface: opens account
- Account interface → Account registration: submits registration (evidence: `main.js`)
- Account registration → Supabase Auth: signs up (evidence: `main.js`)
- Supabase Auth → Supabase: authenticates
- Account registration → Supabase: inserts registration (evidence: `main.js`)
- Supabase Auth → Browser local storage: syncs cart and wishlist
- Delivery details → Indian locations: uses location options
