# aithagoniakhil-131/saanvi-botique-customer architecture

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

- Interactive diagram: https://gitdiagram.com/aithagoniakhil-131/saanvi-botique-customer
- Repository: https://github.com/aithagoniakhil-131/saanvi-botique-customer

## Overview

Saanvi Boutique is a customer-facing fashion boutique website, with pages for browsing collections and designs, requesting appointments, and viewing booking confirmation. Its shared authentication handler checks Supabase sessions, protects the wishlist, updates navigation, and handles sign-out; a separate Firebase configuration initializes authentication, Firestore, and storage. The README offers little product detail and no page source was excerpted, so page roles are based on filenames and their links are not asserted. The Capacitor back-button integration is shown as an optional native capability.

Main entry points: [`auth-nav.js`](https://github.com/aithagoniakhil-131/saanvi-botique-customer/blob/main/auth-nav.js) (Session and navigation), [`supabase-config.js`](https://github.com/aithagoniakhil-131/saanvi-botique-customer/blob/main/supabase-config.js) (Supabase client setup), [`index.html`](https://github.com/aithagoniakhil-131/saanvi-botique-customer/blob/main/index.html) (Boutique home), [`firebase-config.js`](https://github.com/aithagoniakhil-131/saanvi-botique-customer/blob/main/firebase-config.js) (Firebase setup)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_storefront["Boutique storefront"]
  node_home["Boutique home<br/>[index.html]"]
  node_collections["Collections<br/>[collections.html]"]
  node_collection["Collection detail"]
  node_dress["Dress detail<br/>[dress-detail.html]"]
  node_works["Our works<br/>[our-works.html]"]
  node_about["About boutique<br/>[about.html]"]
end

subgraph group_customer["Customer services"]
  node_appointment["Appointment booking<br/>[appointment.html]"]
  node_confirmation["Booking confirmation"]
  node_contact["Contact<br/>[contact.html]"]
  node_wishlist["Wishlist<br/>[wishlist.html]"]
end

subgraph group_identity["Identity and navigation"]
  node_login["Login<br/>[login.html]"]
  node_authnav["Session and navigation<br/>[auth-nav.js]"]
end

subgraph group_integrations["Cloud and mobile integrations"]
  node_supabaseconfig["Supabase client setup<br/>[supabase-config.js]"]
  node_supabase[("Supabase service")]
  node_firebaseconfig["Firebase setup<br/>[firebase-config.js]"]
  node_firebase[("Firebase services")]
  node_capacitor["Capacitor App plugin"]
end

node_visitor(("Customer"))

node_visitor -.->|"opens storefront"| node_home
node_supabaseconfig -->|"creates client"| node_supabase
node_authnav -->|"checks session"| node_supabase
node_authnav -->|"signs out"| node_supabase
node_authnav -->|"uses client"| node_supabaseconfig
node_firebaseconfig -->|"initializes services"| node_firebase
node_authnav -->|"registers back button"| node_capacitor
node_authnav -->|"guards access"| node_wishlist
node_authnav -->|"redirects"| node_login
node_authnav -->|"redirects"| node_home

click node_home "https://github.com/aithagoniakhil-131/saanvi-botique-customer/blob/main/index.html"
click node_collections "https://github.com/aithagoniakhil-131/saanvi-botique-customer/blob/main/collections.html"
click node_collection "https://github.com/aithagoniakhil-131/saanvi-botique-customer/blob/main/inside-collection.html"
click node_dress "https://github.com/aithagoniakhil-131/saanvi-botique-customer/blob/main/dress-detail.html"
click node_works "https://github.com/aithagoniakhil-131/saanvi-botique-customer/blob/main/our-works.html"
click node_about "https://github.com/aithagoniakhil-131/saanvi-botique-customer/blob/main/about.html"
click node_appointment "https://github.com/aithagoniakhil-131/saanvi-botique-customer/blob/main/appointment.html"
click node_confirmation "https://github.com/aithagoniakhil-131/saanvi-botique-customer/blob/main/booking-confirmed.html"
click node_contact "https://github.com/aithagoniakhil-131/saanvi-botique-customer/blob/main/contact.html"
click node_wishlist "https://github.com/aithagoniakhil-131/saanvi-botique-customer/blob/main/wishlist.html"
click node_login "https://github.com/aithagoniakhil-131/saanvi-botique-customer/blob/main/login.html"
click node_authnav "https://github.com/aithagoniakhil-131/saanvi-botique-customer/blob/main/auth-nav.js"
click node_supabaseconfig "https://github.com/aithagoniakhil-131/saanvi-botique-customer/blob/main/supabase-config.js"
click node_firebaseconfig "https://github.com/aithagoniakhil-131/saanvi-botique-customer/blob/main/firebase-config.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_home,node_collections,node_collection,node_dress,node_works,node_about toneBlue
class node_appointment,node_confirmation,node_contact,node_wishlist toneAmber
class node_login,node_authnav toneMint
class node_supabaseconfig,node_supabase,node_firebaseconfig,node_firebase,node_capacitor toneRose
class node_visitor toneIndigo
```

## Components

### Boutique storefront

- [Boutique home](https://github.com/aithagoniakhil-131/saanvi-botique-customer/blob/main/index.html): `index.html`
- [Collections](https://github.com/aithagoniakhil-131/saanvi-botique-customer/blob/main/collections.html): `collections.html`
- [Collection detail](https://github.com/aithagoniakhil-131/saanvi-botique-customer/blob/main/inside-collection.html): `inside-collection.html`
- [Dress detail](https://github.com/aithagoniakhil-131/saanvi-botique-customer/blob/main/dress-detail.html): `dress-detail.html`
- [Our works](https://github.com/aithagoniakhil-131/saanvi-botique-customer/blob/main/our-works.html): `our-works.html`
- [About boutique](https://github.com/aithagoniakhil-131/saanvi-botique-customer/blob/main/about.html): `about.html`

### Customer services

- [Appointment booking](https://github.com/aithagoniakhil-131/saanvi-botique-customer/blob/main/appointment.html): `appointment.html`
- [Booking confirmation](https://github.com/aithagoniakhil-131/saanvi-botique-customer/blob/main/booking-confirmed.html): `booking-confirmed.html`
- [Contact](https://github.com/aithagoniakhil-131/saanvi-botique-customer/blob/main/contact.html): `contact.html`
- [Wishlist](https://github.com/aithagoniakhil-131/saanvi-botique-customer/blob/main/wishlist.html): `wishlist.html`

### Identity and navigation

- [Login](https://github.com/aithagoniakhil-131/saanvi-botique-customer/blob/main/login.html): `login.html`
- [Session and navigation](https://github.com/aithagoniakhil-131/saanvi-botique-customer/blob/main/auth-nav.js): `auth-nav.js`

### Cloud and mobile integrations

- [Supabase client setup](https://github.com/aithagoniakhil-131/saanvi-botique-customer/blob/main/supabase-config.js): `supabase-config.js`
- **Supabase service**
- [Firebase setup](https://github.com/aithagoniakhil-131/saanvi-botique-customer/blob/main/firebase-config.js): `firebase-config.js`
- **Firebase services**
- **Capacitor App plugin**

### Other components

- **Customer**

## Connections

- Customer → Boutique home: opens storefront
- Supabase client setup → Supabase service: creates client (evidence: `supabase-config.js`)
- Session and navigation → Supabase service: checks session (evidence: `auth-nav.js`)
- Session and navigation → Supabase service: signs out (evidence: `auth-nav.js`)
- Session and navigation → Supabase client setup: uses client (evidence: `auth-nav.js`)
- Firebase setup → Firebase services: initializes services (evidence: `firebase-config.js`)
- Session and navigation → Capacitor App plugin: registers back button (evidence: `auth-nav.js`)
- Session and navigation → Wishlist: guards access (evidence: `auth-nav.js`)
- Session and navigation → Login: redirects (evidence: `auth-nav.js`)
- Session and navigation → Boutique home: redirects (evidence: `auth-nav.js`)
