# adlasoff-art/zandofy-c7175cf9 architecture

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

- Interactive diagram: https://gitdiagram.com/adlasoff-art/zandofy-c7175cf9
- Repository: https://github.com/adlasoff-art/zandofy-c7175cf9

## Overview

Zandofy is a React/Vite commerce marketplace backed by Supabase Auth, PostgreSQL, and Edge Functions. The principal customer journey is browsing/searching products, viewing a product or store, checking out, and tracking fulfillment; the application also supports vendor, shipper, rider, and administrative work. The graph preserves those domain areas and crawler-facing SEO. Several page and function relationships are documented only by route/import references or README-level architecture; unsampled connections are not asserted as direct calls.

Main entry points: [`frontend/src/App.tsx`](https://github.com/adlasoff-art/zandofy-c7175cf9/blob/develop/frontend/src/App.tsx) (React app router), [`api/meta-injector.ts`](https://github.com/adlasoff-art/zandofy-c7175cf9/blob/develop/api/meta-injector.ts) (Crawler metadata), [`frontend/src/integrations/supabase/client.ts`](https://github.com/adlasoff-art/zandofy-c7175cf9/blob/develop/frontend/src/integrations/supabase/client.ts) (Supabase platform), [`supabase/functions/_shared/email.ts`](https://github.com/adlasoff-art/zandofy-c7175cf9/blob/develop/supabase/functions/_shared/email.ts) (Email delivery helper)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Application shell"]
  node_app["React app router<br/>[App.tsx]"]
  node_auth["Authentication<br/>[AuthPage.tsx]"]
end

subgraph group_commerce["Customer commerce"]
  node_catalog["Category browsing<br/>[CategoryPage.tsx]"]
  node_search["Product search<br/>[SearchPage.tsx]"]
  node_product["Product detail<br/>[ProductPage.tsx]"]
  node_store["Storefronts<br/>[StorePage.tsx]"]
  node_checkout["Checkout<br/>[CheckoutPage.tsx]"]
  node_tracking["Order tracking<br/>[TrackingPage.tsx]"]
end

subgraph group_operations["Marketplace operations"]
  node_vendor["Vendor workspace"]
  node_vendorjoin["Vendor onboarding"]
  node_shipper["Shipper workspace"]
  node_rider["Rider workspace"]
  node_admin["Admin workspace<br/>[DashboardPage.tsx]"]
  node_help["Help center<br/>[HelpCenterPage.tsx]"]
end

subgraph group_backend["Supabase services"]
  node_supabase[("Supabase platform<br/>[client.ts]")]
  node_adminusers["Admin user actions<br/>[index.ts]"]
  node_health["Health checks<br/>[index.ts]"]
  node_email["Email delivery helper<br/>[email.ts]"]
end

subgraph group_seo["SEO delivery"]
  node_meta["Crawler metadata<br/>[meta-injector.ts]"]
  node_sitemap["Sitemap endpoint<br/>[sitemap.ts]"]
  node_botua["Crawler matching<br/>[bot-ua.ts]"]
  node_pathresolve["Path resolution"]
end

node_user(("Customer"))
node_crawler(("Search crawlers"))

node_user -->|"uses"| node_app
node_app -->|"routes to"| node_auth
node_app -->|"routes to"| node_catalog
node_app -->|"routes to"| node_product
node_app -->|"routes to"| node_store
node_app -->|"routes to"| node_checkout
node_app -->|"routes to"| node_search
node_app -->|"routes to"| node_tracking
node_app -->|"routes to"| node_vendor
node_app -->|"routes to"| node_vendorjoin
node_app -->|"routes to"| node_shipper
node_app -->|"routes to"| node_rider
node_app -->|"routes to"| node_admin
node_app -->|"routes to"| node_help
node_app -.->|"uses platform"| node_supabase
node_adminusers -->|"sends email"| node_email
node_health -->|"sends alerts"| node_email
node_crawler -->|"requests metadata"| node_meta
node_meta -->|"checks agent"| node_botua
node_meta -->|"resolves path"| node_pathresolve
node_meta -.->|"reads public data"| node_supabase
node_crawler -.->|"requests sitemap"| node_sitemap

click node_app "https://github.com/adlasoff-art/zandofy-c7175cf9/blob/develop/frontend/src/App.tsx"
click node_auth "https://github.com/adlasoff-art/zandofy-c7175cf9/blob/develop/frontend/src/pages/AuthPage.tsx"
click node_catalog "https://github.com/adlasoff-art/zandofy-c7175cf9/blob/develop/frontend/src/pages/CategoryPage.tsx"
click node_search "https://github.com/adlasoff-art/zandofy-c7175cf9/blob/develop/frontend/src/pages/SearchPage.tsx"
click node_product "https://github.com/adlasoff-art/zandofy-c7175cf9/blob/develop/frontend/src/pages/ProductPage.tsx"
click node_store "https://github.com/adlasoff-art/zandofy-c7175cf9/blob/develop/frontend/src/pages/StorePage.tsx"
click node_checkout "https://github.com/adlasoff-art/zandofy-c7175cf9/blob/develop/frontend/src/pages/CheckoutPage.tsx"
click node_tracking "https://github.com/adlasoff-art/zandofy-c7175cf9/blob/develop/frontend/src/pages/TrackingPage.tsx"
click node_vendor "https://github.com/adlasoff-art/zandofy-c7175cf9/blob/develop/frontend/src/pages/VendorDashboardPage.tsx"
click node_vendorjoin "https://github.com/adlasoff-art/zandofy-c7175cf9/blob/develop/frontend/src/pages/BecomeVendorPage.tsx"
click node_shipper "https://github.com/adlasoff-art/zandofy-c7175cf9/blob/develop/frontend/src/pages/ShipperDashboardPage.tsx"
click node_rider "https://github.com/adlasoff-art/zandofy-c7175cf9/blob/develop/frontend/src/pages/RiderDashboardPage.tsx"
click node_admin "https://github.com/adlasoff-art/zandofy-c7175cf9/blob/develop/frontend/src/pages/DashboardPage.tsx"
click node_help "https://github.com/adlasoff-art/zandofy-c7175cf9/blob/develop/frontend/src/pages/HelpCenterPage.tsx"
click node_supabase "https://github.com/adlasoff-art/zandofy-c7175cf9/blob/develop/frontend/src/integrations/supabase/client.ts"
click node_adminusers "https://github.com/adlasoff-art/zandofy-c7175cf9/blob/develop/supabase/functions/admin-users/index.ts"
click node_health "https://github.com/adlasoff-art/zandofy-c7175cf9/blob/develop/supabase/functions/run-healthchecks/index.ts"
click node_email "https://github.com/adlasoff-art/zandofy-c7175cf9/blob/develop/supabase/functions/_shared/email.ts"
click node_meta "https://github.com/adlasoff-art/zandofy-c7175cf9/blob/develop/api/meta-injector.ts"
click node_sitemap "https://github.com/adlasoff-art/zandofy-c7175cf9/blob/develop/api/sitemap.ts"
click node_botua "https://github.com/adlasoff-art/zandofy-c7175cf9/blob/develop/api/_shared/bot-ua.ts"
click node_pathresolve "https://github.com/adlasoff-art/zandofy-c7175cf9/blob/develop/api/meta-injector-path.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_app,node_auth toneBlue
class node_catalog,node_search,node_product,node_store,node_checkout,node_tracking toneAmber
class node_vendor,node_vendorjoin,node_shipper,node_rider,node_admin,node_help toneMint
class node_supabase,node_adminusers,node_health,node_email toneRose
class node_meta,node_sitemap,node_botua,node_pathresolve,node_user,node_crawler toneIndigo
```

## Components

### Application shell

- [React app router](https://github.com/adlasoff-art/zandofy-c7175cf9/blob/develop/frontend/src/App.tsx): `frontend/src/App.tsx`
- [Authentication](https://github.com/adlasoff-art/zandofy-c7175cf9/blob/develop/frontend/src/pages/AuthPage.tsx): `frontend/src/pages/AuthPage.tsx`

### Customer commerce

- [Category browsing](https://github.com/adlasoff-art/zandofy-c7175cf9/blob/develop/frontend/src/pages/CategoryPage.tsx): `frontend/src/pages/CategoryPage.tsx`
- [Product search](https://github.com/adlasoff-art/zandofy-c7175cf9/blob/develop/frontend/src/pages/SearchPage.tsx): `frontend/src/pages/SearchPage.tsx`
- [Product detail](https://github.com/adlasoff-art/zandofy-c7175cf9/blob/develop/frontend/src/pages/ProductPage.tsx): `frontend/src/pages/ProductPage.tsx`
- [Storefronts](https://github.com/adlasoff-art/zandofy-c7175cf9/blob/develop/frontend/src/pages/StorePage.tsx): `frontend/src/pages/StorePage.tsx`
- [Checkout](https://github.com/adlasoff-art/zandofy-c7175cf9/blob/develop/frontend/src/pages/CheckoutPage.tsx): `frontend/src/pages/CheckoutPage.tsx`
- [Order tracking](https://github.com/adlasoff-art/zandofy-c7175cf9/blob/develop/frontend/src/pages/TrackingPage.tsx): `frontend/src/pages/TrackingPage.tsx`

### Marketplace operations

- [Vendor workspace](https://github.com/adlasoff-art/zandofy-c7175cf9/blob/develop/frontend/src/pages/VendorDashboardPage.tsx): `frontend/src/pages/VendorDashboardPage.tsx`
- [Vendor onboarding](https://github.com/adlasoff-art/zandofy-c7175cf9/blob/develop/frontend/src/pages/BecomeVendorPage.tsx): `frontend/src/pages/BecomeVendorPage.tsx`
- [Shipper workspace](https://github.com/adlasoff-art/zandofy-c7175cf9/blob/develop/frontend/src/pages/ShipperDashboardPage.tsx): `frontend/src/pages/ShipperDashboardPage.tsx`
- [Rider workspace](https://github.com/adlasoff-art/zandofy-c7175cf9/blob/develop/frontend/src/pages/RiderDashboardPage.tsx): `frontend/src/pages/RiderDashboardPage.tsx`
- [Admin workspace](https://github.com/adlasoff-art/zandofy-c7175cf9/blob/develop/frontend/src/pages/DashboardPage.tsx): `frontend/src/pages/DashboardPage.tsx`
- [Help center](https://github.com/adlasoff-art/zandofy-c7175cf9/blob/develop/frontend/src/pages/HelpCenterPage.tsx): `frontend/src/pages/HelpCenterPage.tsx`

### Supabase services

- [Supabase platform](https://github.com/adlasoff-art/zandofy-c7175cf9/blob/develop/frontend/src/integrations/supabase/client.ts): `frontend/src/integrations/supabase/client.ts`
- [Admin user actions](https://github.com/adlasoff-art/zandofy-c7175cf9/blob/develop/supabase/functions/admin-users/index.ts): `supabase/functions/admin-users/index.ts`
- [Health checks](https://github.com/adlasoff-art/zandofy-c7175cf9/blob/develop/supabase/functions/run-healthchecks/index.ts): `supabase/functions/run-healthchecks/index.ts`
- [Email delivery helper](https://github.com/adlasoff-art/zandofy-c7175cf9/blob/develop/supabase/functions/_shared/email.ts): `supabase/functions/_shared/email.ts`

### SEO delivery

- [Crawler metadata](https://github.com/adlasoff-art/zandofy-c7175cf9/blob/develop/api/meta-injector.ts): `api/meta-injector.ts`
- [Sitemap endpoint](https://github.com/adlasoff-art/zandofy-c7175cf9/blob/develop/api/sitemap.ts): `api/sitemap.ts`
- [Crawler matching](https://github.com/adlasoff-art/zandofy-c7175cf9/blob/develop/api/_shared/bot-ua.ts): `api/_shared/bot-ua.ts`
- [Path resolution](https://github.com/adlasoff-art/zandofy-c7175cf9/blob/develop/api/meta-injector-path.ts): `api/meta-injector-path.ts`

### Other components

- **Customer**
- **Search crawlers**

## Connections

- Customer → React app router: uses
- React app router → Authentication: routes to (evidence: `frontend/src/App.tsx`)
- React app router → Category browsing: routes to (evidence: `frontend/src/App.tsx`)
- React app router → Product detail: routes to (evidence: `frontend/src/App.tsx`)
- React app router → Storefronts: routes to (evidence: `frontend/src/App.tsx`)
- React app router → Checkout: routes to (evidence: `frontend/src/App.tsx`)
- React app router → Product search: routes to (evidence: `frontend/src/App.tsx`)
- React app router → Order tracking: routes to (evidence: `frontend/src/App.tsx`)
- React app router → Vendor workspace: routes to (evidence: `frontend/src/App.tsx`)
- React app router → Vendor onboarding: routes to (evidence: `frontend/src/App.tsx`)
- React app router → Shipper workspace: routes to (evidence: `frontend/src/App.tsx`)
- React app router → Rider workspace: routes to (evidence: `frontend/src/App.tsx`)
- React app router → Admin workspace: routes to (evidence: `frontend/src/App.tsx`)
- React app router → Help center: routes to (evidence: `frontend/src/App.tsx`)
- React app router → Supabase platform: uses platform
- Admin user actions → Email delivery helper: sends email (evidence: `supabase/functions/admin-users/index.ts`)
- Health checks → Email delivery helper: sends alerts (evidence: `supabase/functions/run-healthchecks/index.ts`)
- Search crawlers → Crawler metadata: requests metadata (evidence: `api/meta-injector.ts`)
- Crawler metadata → Crawler matching: checks agent (evidence: `api/meta-injector.ts`)
- Crawler metadata → Path resolution: resolves path (evidence: `api/meta-injector.ts`)
- Crawler metadata → Supabase platform: reads public data
- Search crawlers → Sitemap endpoint: requests sitemap
