How sangralrahul/zyphix works
Zyphix is a hyperlocal commerce platform for groceries, restaurant meals, pharmacy goods, and neighbourhood partners. The documented customer journey is location setup, nearby discovery, ordering, and fulfilment tracking; the artifact application exposes corresponding discovery, product, cart, checkout, and confirmation screens. Authentication and shared commerce state form an internal application layer. The tree also contains API and Supabase function implementations, but their runtime wiring to the commerce UI is not established by the excerpts, so those links are omitted.
Main entry points: App.tsx Commerce app · index.ts API router · ZyphixNow.tsx Local discovery · ProductDetail.tsx Product detail
Components 22
Customer commerce
- Commerce app
artifacts/zyphix/src/App.tsx - Local discovery
artifacts/zyphix/src/pages/ZyphixNow.tsx - Product detail
artifacts/zyphix/src/pages/ProductDetail.tsx - Cart
artifacts/zyphix/src/pages/Cart.tsx - Checkout
artifacts/zyphix/src/pages/Checkout.tsx - Order confirmation
artifacts/zyphix/src/pages/OrderConfirmation.tsx - Restaurant discovery
artifacts/zyphix/src/pages/ZyphixEats.tsx - Kirana map
artifacts/zyphix/src/pages/KiranaMap.tsx
Identity and state
- Account
artifacts/zyphix/src/pages/Account.tsx - Authentication
artifacts/zyphix/src/context/AuthContext.tsx - Auth modal
artifacts/zyphix/src/components/AuthModal.tsx - Commerce state
artifacts/zyphix/src/context/CartContext.tsx
Partner operations
- Partner onboarding
artifacts/zyphix/src/pages/PartnerLanding.tsx - Merchant setup
artifacts/zyphix/src/pages/MerchantSetup.tsx - Partner dashboard
artifacts/zyphix/src/pages/PartnerDashboard.tsx
Platform services
- Supabase client
artifacts/zyphix/src/integrations/supabase/client.ts - API router
artifacts/api-server/src/routes/index.ts - Email OTP
artifacts/api-server/src/routes/email-otp.ts - Notifications API
artifacts/api-server/src/routes/notify.ts - Partner registration API
artifacts/api-server/src/routes/partner-register.ts
Other components
- Customer
- Local fulfilment
Connections 24
- Customer → Commerce app: uses
README.md - Commerce app → Local discovery: routes to
artifacts/zyphix/src/App.tsx - Commerce app → Product detail: routes to
artifacts/zyphix/src/App.tsx - Commerce app → Cart: routes to
artifacts/zyphix/src/App.tsx - Commerce app → Checkout: routes to
artifacts/zyphix/src/App.tsx - Commerce app → Order confirmation: routes to
artifacts/zyphix/src/App.tsx - Commerce app → Restaurant discovery: routes to
artifacts/zyphix/src/App.tsx - Commerce app → Kirana map: routes to
artifacts/zyphix/src/App.tsx - Commerce app → Partner onboarding: routes to
artifacts/zyphix/src/App.tsx - Commerce app → Merchant setup: routes to
artifacts/zyphix/src/App.tsx - Commerce app → Partner dashboard: routes to
artifacts/zyphix/src/App.tsx - Commerce app → Authentication: provides state
artifacts/zyphix/src/App.tsx - Commerce app → Commerce state: provides state
artifacts/zyphix/src/App.tsx - Commerce app → Auth modal: renders
artifacts/zyphix/src/App.tsx - Customer → Local discovery: sets location
README.md - Local discovery → Product detail: selects item
README.md - Product detail → Cart: adds to order
README.md - Cart → Checkout: places order
README.md - Checkout → Order confirmation: confirms order
README.md - Order confirmation → Local fulfilment: tracks delivery
README.md - API router → Email OTP: dispatches
artifacts/api-server/src/routes/index.ts - API router → Notifications API: dispatches
artifacts/api-server/src/routes/index.ts - API router → Partner registration API: dispatches
artifacts/api-server/src/routes/index.ts - Partner onboarding → Merchant setup: continues setup