# nakshatragoud123/sau-solutions-web architecture

> Architecture diagram of the GitHub repository nakshatragoud123/sau-solutions-web, 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/nakshatragoud123/sau-solutions-web
- Repository: https://github.com/nakshatragoud123/sau-solutions-web

## Overview

SAU is a local-services and essentials marketplace. Customers browse categories and listings, inspect an item, then add products to a cart or book a professional; the app also exposes checkout, order tracking, account, contact, and partner-registration flows. The main app routes pages and provides shared commerce and preference state. Commerce appears client-side; no backend or external commerce integration is evidenced. Relationships for unsampled pages rely on the SOURCE INDEX import references, not inspected implementations.

Main entry points: [`src/App.tsx`](https://github.com/nakshatragoud123/sau-solutions-web/blob/main/src/App.tsx) (Router & App Shell), [`src/components/ServiceCard.tsx`](https://github.com/nakshatragoud123/sau-solutions-web/blob/main/src/components/ServiceCard.tsx) (Service Card), [`src/pages/Home.tsx`](https://github.com/nakshatragoud123/sau-solutions-web/blob/main/src/pages/Home.tsx) (Home), [`src/pages/ServiceDetails.tsx`](https://github.com/nakshatragoud123/sau-solutions-web/blob/main/src/pages/ServiceDetails.tsx) (Service Details)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_discovery["Browse Marketplace"]
  node_home["Home<br/>[Home.tsx]"]
  node_categories["Categories<br/>[Categories.tsx]"]
  node_category_services["Category Listings"]
  node_service_details["Service Details<br/>[ServiceDetails.tsx]"]
  node_category_card["Category Card<br/>[CategoryCard.tsx]"]
  node_service_card["Service Card<br/>[ServiceCard.tsx]"]
  node_hero["Home Hero<br/>[Hero.tsx]"]
end

subgraph group_transactions["Commerce Flows"]
  node_cart["Cart<br/>[Cart.tsx]"]
  node_checkout["Checkout<br/>[Checkout.tsx]"]
  node_booking["Booking<br/>[Booking.tsx]"]
  node_orders["Orders<br/>[Orders.tsx]"]
  node_tracking["Order Tracking<br/>[Tracking.tsx]"]
end

subgraph group_accounts["Accounts &amp; Partners"]
  node_auth["Sign In &amp; Register<br/>[Auth.tsx]"]
  node_profile["Profile<br/>[Profile.tsx]"]
  node_partner["Partner Registration"]
  node_contact["Contact<br/>[Contact.tsx]"]
end

subgraph group_shared["Shared App &amp; State"]
  node_app["Router &amp; App Shell<br/>[App.tsx]"]
  node_commerce_provider["Commerce State"]
  node_preferences_provider["Preferences State"]
  node_navbar["Navigation<br/>[Navbar.tsx]"]
  node_footer["Footer<br/>[Footer.tsx]"]
  node_photo_image["Photo Renderer<br/>[PhotoImage.tsx]"]
  node_commerce_hook["Commerce Hook<br/>[useCommerce.ts]"]
  node_preferences_hook["Preferences Hook<br/>[usePreferences.ts]"]
end

subgraph group_catalog["Marketplace Data"]
  node_commerce_data["Cart &amp; Order Models<br/>[commerce.ts]"]
  node_services_data["Service Catalog<br/>[services.ts]"]
  node_categories_data["Category Catalog<br/>[categories.ts]"]
  node_images["Marketplace Images<br/>[imageCatalog.ts]"]
end

node_customer(("Customer"))

node_customer -->|"uses"| node_app
node_app -->|"routes to"| node_home
node_app -->|"routes to"| node_categories
node_app -->|"routes to"| node_category_services
node_app -->|"routes to"| node_service_details
node_app -->|"routes to"| node_cart
node_app -->|"routes to"| node_checkout
node_app -->|"routes to"| node_booking
node_app -->|"routes to"| node_orders
node_app -->|"routes to"| node_tracking
node_app -->|"routes to"| node_auth
node_app -->|"routes to"| node_profile
node_app -->|"routes to"| node_partner
node_app -->|"routes to"| node_contact
node_app -->|"provides"| node_commerce_provider
node_app -->|"provides"| node_preferences_provider
node_app -->|"renders"| node_navbar
node_app -->|"renders"| node_footer
node_home -->|"renders"| node_hero
node_home -->|"renders"| node_category_card
node_home -->|"renders"| node_service_card
node_home -->|"reads"| node_categories_data
node_home -->|"reads"| node_services_data
node_categories -->|"renders"| node_category_card
node_categories -->|"reads"| node_categories_data
node_category_services -->|"renders"| node_category_card
node_category_services -->|"renders"| node_service_card
node_category_services -->|"reads"| node_categories_data
node_category_services -->|"reads"| node_services_data
node_service_details -->|"reads"| node_services_data
node_service_details -->|"reads"| node_categories_data
node_service_details -->|"renders"| node_service_card
node_service_details -->|"uses"| node_commerce_hook
node_service_details -->|"uses"| node_preferences_hook
node_service_card -->|"uses"| node_commerce_hook
node_service_card -->|"uses type"| node_services_data
node_service_card -->|"reads"| node_images
node_service_card -->|"renders"| node_photo_image
node_category_card -->|"uses"| node_categories_data
node_category_card -->|"reads"| node_images
node_category_card -->|"renders"| node_photo_image
node_hero -->|"uses"| node_preferences_hook
node_hero -->|"reads"| node_images
node_hero -->|"renders"| node_photo_image
node_photo_image -->|"uses type"| node_images
node_commerce_provider -->|"uses"| node_commerce_data
node_commerce_provider -->|"uses"| node_services_data
node_commerce_hook -->|"reads context"| node_commerce_provider

click node_app "https://github.com/nakshatragoud123/sau-solutions-web/blob/main/src/App.tsx"
click node_home "https://github.com/nakshatragoud123/sau-solutions-web/blob/main/src/pages/Home.tsx"
click node_categories "https://github.com/nakshatragoud123/sau-solutions-web/blob/main/src/pages/Categories.tsx"
click node_category_services "https://github.com/nakshatragoud123/sau-solutions-web/blob/main/src/pages/CategoryServices.tsx"
click node_service_details "https://github.com/nakshatragoud123/sau-solutions-web/blob/main/src/pages/ServiceDetails.tsx"
click node_category_card "https://github.com/nakshatragoud123/sau-solutions-web/blob/main/src/components/CategoryCard.tsx"
click node_service_card "https://github.com/nakshatragoud123/sau-solutions-web/blob/main/src/components/ServiceCard.tsx"
click node_hero "https://github.com/nakshatragoud123/sau-solutions-web/blob/main/src/components/Hero.tsx"
click node_cart "https://github.com/nakshatragoud123/sau-solutions-web/blob/main/src/pages/Cart.tsx"
click node_checkout "https://github.com/nakshatragoud123/sau-solutions-web/blob/main/src/pages/Checkout.tsx"
click node_booking "https://github.com/nakshatragoud123/sau-solutions-web/blob/main/src/pages/Booking.tsx"
click node_orders "https://github.com/nakshatragoud123/sau-solutions-web/blob/main/src/pages/Orders.tsx"
click node_tracking "https://github.com/nakshatragoud123/sau-solutions-web/blob/main/src/pages/Tracking.tsx"
click node_auth "https://github.com/nakshatragoud123/sau-solutions-web/blob/main/src/pages/Auth.tsx"
click node_profile "https://github.com/nakshatragoud123/sau-solutions-web/blob/main/src/pages/Profile.tsx"
click node_partner "https://github.com/nakshatragoud123/sau-solutions-web/blob/main/src/pages/PartnerRegistration.tsx"
click node_contact "https://github.com/nakshatragoud123/sau-solutions-web/blob/main/src/pages/Contact.tsx"
click node_commerce_provider "https://github.com/nakshatragoud123/sau-solutions-web/blob/main/src/context/CommerceContext.tsx"
click node_preferences_provider "https://github.com/nakshatragoud123/sau-solutions-web/blob/main/src/context/PreferencesContext.tsx"
click node_navbar "https://github.com/nakshatragoud123/sau-solutions-web/blob/main/src/components/Navbar.tsx"
click node_footer "https://github.com/nakshatragoud123/sau-solutions-web/blob/main/src/components/Footer.tsx"
click node_commerce_data "https://github.com/nakshatragoud123/sau-solutions-web/blob/main/src/data/commerce.ts"
click node_services_data "https://github.com/nakshatragoud123/sau-solutions-web/blob/main/src/data/services.ts"
click node_categories_data "https://github.com/nakshatragoud123/sau-solutions-web/blob/main/src/data/categories.ts"
click node_images "https://github.com/nakshatragoud123/sau-solutions-web/blob/main/src/data/imageCatalog.ts"
click node_photo_image "https://github.com/nakshatragoud123/sau-solutions-web/blob/main/src/components/PhotoImage.tsx"
click node_commerce_hook "https://github.com/nakshatragoud123/sau-solutions-web/blob/main/src/context/useCommerce.ts"
click node_preferences_hook "https://github.com/nakshatragoud123/sau-solutions-web/blob/main/src/context/usePreferences.ts"

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_categories,node_category_services,node_service_details,node_category_card,node_service_card,node_hero toneBlue
class node_cart,node_checkout,node_booking,node_orders,node_tracking toneAmber
class node_auth,node_profile,node_partner,node_contact toneMint
class node_app,node_commerce_provider,node_preferences_provider,node_navbar,node_footer,node_photo_image,node_commerce_hook,node_preferences_hook toneRose
class node_commerce_data,node_services_data,node_categories_data,node_images,node_customer toneIndigo
```

## Components

### Browse Marketplace

- [Home](https://github.com/nakshatragoud123/sau-solutions-web/blob/main/src/pages/Home.tsx): `src/pages/Home.tsx`
- [Categories](https://github.com/nakshatragoud123/sau-solutions-web/blob/main/src/pages/Categories.tsx): `src/pages/Categories.tsx`
- [Category Listings](https://github.com/nakshatragoud123/sau-solutions-web/blob/main/src/pages/CategoryServices.tsx): `src/pages/CategoryServices.tsx`
- [Service Details](https://github.com/nakshatragoud123/sau-solutions-web/blob/main/src/pages/ServiceDetails.tsx): `src/pages/ServiceDetails.tsx`
- [Category Card](https://github.com/nakshatragoud123/sau-solutions-web/blob/main/src/components/CategoryCard.tsx): `src/components/CategoryCard.tsx`
- [Service Card](https://github.com/nakshatragoud123/sau-solutions-web/blob/main/src/components/ServiceCard.tsx): `src/components/ServiceCard.tsx`
- [Home Hero](https://github.com/nakshatragoud123/sau-solutions-web/blob/main/src/components/Hero.tsx): `src/components/Hero.tsx`

### Commerce Flows

- [Cart](https://github.com/nakshatragoud123/sau-solutions-web/blob/main/src/pages/Cart.tsx): `src/pages/Cart.tsx`
- [Checkout](https://github.com/nakshatragoud123/sau-solutions-web/blob/main/src/pages/Checkout.tsx): `src/pages/Checkout.tsx`
- [Booking](https://github.com/nakshatragoud123/sau-solutions-web/blob/main/src/pages/Booking.tsx): `src/pages/Booking.tsx`
- [Orders](https://github.com/nakshatragoud123/sau-solutions-web/blob/main/src/pages/Orders.tsx): `src/pages/Orders.tsx`
- [Order Tracking](https://github.com/nakshatragoud123/sau-solutions-web/blob/main/src/pages/Tracking.tsx): `src/pages/Tracking.tsx`

### Accounts & Partners

- [Sign In & Register](https://github.com/nakshatragoud123/sau-solutions-web/blob/main/src/pages/Auth.tsx): `src/pages/Auth.tsx`
- [Profile](https://github.com/nakshatragoud123/sau-solutions-web/blob/main/src/pages/Profile.tsx): `src/pages/Profile.tsx`
- [Partner Registration](https://github.com/nakshatragoud123/sau-solutions-web/blob/main/src/pages/PartnerRegistration.tsx): `src/pages/PartnerRegistration.tsx`
- [Contact](https://github.com/nakshatragoud123/sau-solutions-web/blob/main/src/pages/Contact.tsx): `src/pages/Contact.tsx`

### Shared App & State

- [Router & App Shell](https://github.com/nakshatragoud123/sau-solutions-web/blob/main/src/App.tsx): `src/App.tsx`
- [Commerce State](https://github.com/nakshatragoud123/sau-solutions-web/blob/main/src/context/CommerceContext.tsx): `src/context/CommerceContext.tsx`
- [Preferences State](https://github.com/nakshatragoud123/sau-solutions-web/blob/main/src/context/PreferencesContext.tsx): `src/context/PreferencesContext.tsx`
- [Navigation](https://github.com/nakshatragoud123/sau-solutions-web/blob/main/src/components/Navbar.tsx): `src/components/Navbar.tsx`
- [Footer](https://github.com/nakshatragoud123/sau-solutions-web/blob/main/src/components/Footer.tsx): `src/components/Footer.tsx`
- [Photo Renderer](https://github.com/nakshatragoud123/sau-solutions-web/blob/main/src/components/PhotoImage.tsx): `src/components/PhotoImage.tsx`
- [Commerce Hook](https://github.com/nakshatragoud123/sau-solutions-web/blob/main/src/context/useCommerce.ts): `src/context/useCommerce.ts`
- [Preferences Hook](https://github.com/nakshatragoud123/sau-solutions-web/blob/main/src/context/usePreferences.ts): `src/context/usePreferences.ts`

### Marketplace Data

- [Cart & Order Models](https://github.com/nakshatragoud123/sau-solutions-web/blob/main/src/data/commerce.ts): `src/data/commerce.ts`
- [Service Catalog](https://github.com/nakshatragoud123/sau-solutions-web/blob/main/src/data/services.ts): `src/data/services.ts`
- [Category Catalog](https://github.com/nakshatragoud123/sau-solutions-web/blob/main/src/data/categories.ts): `src/data/categories.ts`
- [Marketplace Images](https://github.com/nakshatragoud123/sau-solutions-web/blob/main/src/data/imageCatalog.ts): `src/data/imageCatalog.ts`

### Other components

- **Customer**

## Connections

- Customer → Router & App Shell: uses (evidence: `src/App.tsx`)
- Router & App Shell → Home: routes to (evidence: `src/App.tsx`)
- Router & App Shell → Categories: routes to (evidence: `src/App.tsx`)
- Router & App Shell → Category Listings: routes to (evidence: `src/App.tsx`)
- Router & App Shell → Service Details: routes to (evidence: `src/App.tsx`)
- Router & App Shell → Cart: routes to (evidence: `src/App.tsx`)
- Router & App Shell → Checkout: routes to (evidence: `src/App.tsx`)
- Router & App Shell → Booking: routes to (evidence: `src/App.tsx`)
- Router & App Shell → Orders: routes to (evidence: `src/App.tsx`)
- Router & App Shell → Order Tracking: routes to (evidence: `src/App.tsx`)
- Router & App Shell → Sign In & Register: routes to (evidence: `src/App.tsx`)
- Router & App Shell → Profile: routes to (evidence: `src/App.tsx`)
- Router & App Shell → Partner Registration: routes to (evidence: `src/App.tsx`)
- Router & App Shell → Contact: routes to (evidence: `src/App.tsx`)
- Router & App Shell → Commerce State: provides (evidence: `src/App.tsx`)
- Router & App Shell → Preferences State: provides (evidence: `src/App.tsx`)
- Router & App Shell → Navigation: renders (evidence: `src/App.tsx`)
- Router & App Shell → Footer: renders (evidence: `src/App.tsx`)
- Home → Home Hero: renders (evidence: `src/pages/Home.tsx`)
- Home → Category Card: renders (evidence: `src/pages/Home.tsx`)
- Home → Service Card: renders (evidence: `src/pages/Home.tsx`)
- Home → Category Catalog: reads (evidence: `src/pages/Home.tsx`)
- Home → Service Catalog: reads (evidence: `src/pages/Home.tsx`)
- Categories → Category Card: renders (evidence: `src/pages/Categories.tsx`)
- Categories → Category Catalog: reads (evidence: `src/pages/Categories.tsx`)
- Category Listings → Category Card: renders (evidence: `src/pages/CategoryServices.tsx`)
- Category Listings → Service Card: renders (evidence: `src/pages/CategoryServices.tsx`)
- Category Listings → Category Catalog: reads (evidence: `src/pages/CategoryServices.tsx`)
- Category Listings → Service Catalog: reads (evidence: `src/pages/CategoryServices.tsx`)
- Service Details → Service Catalog: reads (evidence: `src/pages/ServiceDetails.tsx`)
- Service Details → Category Catalog: reads (evidence: `src/pages/ServiceDetails.tsx`)
- Service Details → Service Card: renders (evidence: `src/pages/ServiceDetails.tsx`)
- Service Details → Commerce Hook: uses (evidence: `src/pages/ServiceDetails.tsx`)
- Service Details → Preferences Hook: uses (evidence: `src/pages/ServiceDetails.tsx`)
- Service Card → Commerce Hook: uses (evidence: `src/components/ServiceCard.tsx`)
- Service Card → Service Catalog: uses type (evidence: `src/components/ServiceCard.tsx`)
- Service Card → Marketplace Images: reads (evidence: `src/components/ServiceCard.tsx`)
- Service Card → Photo Renderer: renders (evidence: `src/components/ServiceCard.tsx`)
- Category Card → Category Catalog: uses (evidence: `src/components/CategoryCard.tsx`)
- Category Card → Marketplace Images: reads (evidence: `src/components/CategoryCard.tsx`)
- Category Card → Photo Renderer: renders (evidence: `src/components/CategoryCard.tsx`)
- Home Hero → Preferences Hook: uses (evidence: `src/components/Hero.tsx`)
- Home Hero → Marketplace Images: reads (evidence: `src/components/Hero.tsx`)
- Home Hero → Photo Renderer: renders (evidence: `src/components/Hero.tsx`)
- Photo Renderer → Marketplace Images: uses type (evidence: `src/components/PhotoImage.tsx`)
- Commerce State → Cart & Order Models: uses (evidence: `src/context/CommerceContext.tsx`)
- Commerce State → Service Catalog: uses (evidence: `src/context/CommerceContext.tsx`)
- Commerce Hook → Commerce State: reads context (evidence: `src/context/useCommerce.ts`)
