How bhargavramanamarchi/supply-market works
Supply Market is a B2B procurement platform: buyers submit sourcing needs in natural language or voice, receive AI-assisted supplier matches and explanations, then follow or connect with suppliers; sellers maintain profiles and product inventory. The frontend also supports authentication, seller and buyer dashboards, multilingual conversations, and voice output. The README documents Supabase as the managed auth and database backend. Some service wiring is supported only by the source index or README, so those edges cite that evidence rather than implying unsampled implementation details.
Main entry points: BuyerPage.tsx Buyer Workspace · App.tsx App Routing · SellerPage.tsx Seller Workspace · supabase.ts Supabase Client
Components 20
Application
- App Routing
frontend/src/App.tsx
Buyer Procurement
- Buyer Workspace
frontend/src/pages/BuyerPage.tsx - AI Matching
frontend/src/services/geminiService.ts - Supplier Catalog
frontend/src/services/supplierData.ts - Procurement Assistant
frontend/src/components/ConversationalAssistant.tsx - AI Call Experience
frontend/src/components/AICallExperience.tsx - Speech Services
frontend/src/services/speechService.ts - Murf Voice
frontend/src/services/murfService.ts
Supplier Operations
- Seller Workspace
frontend/src/pages/SellerPage.tsx - User Dashboard
frontend/src/pages/UserDashboard.tsx
Shared Services
- Authentication
frontend/src/context/AuthContext.tsx - Route Protection
frontend/src/components/ProtectedRoute.tsx - Auth Hook
frontend/src/hooks/useAuth.ts - Supabase Client
frontend/src/services/supabase.ts - Postgres Data
supabase/schema.sql - Language Context
frontend/src/context/LanguageContext.tsx - Translations
frontend/src/services/localization.ts - Notifications
frontend/src/services/notificationService.ts
Other components
- Buyer
Connections 28
- Buyer → App Routing: opens platform
README.md - App Routing → Buyer Workspace: routes buyers
frontend/src/App.tsx - App Routing → Seller Workspace: routes sellers
frontend/src/App.tsx - App Routing → User Dashboard: routes users
frontend/src/App.tsx - App Routing → Route Protection: guards routes
frontend/src/App.tsx - Buyer Workspace → AI Matching: analyzes needs
frontend/src/pages/BuyerPage.tsx - Buyer Workspace → Supplier Catalog: loads directory
frontend/src/pages/BuyerPage.tsx - AI Matching → Supplier Catalog: loads suppliers
frontend/src/services/geminiService.ts - AI Matching → Supabase Client: queries suppliers
frontend/src/services/geminiService.ts - Buyer Workspace → Procurement Assistant: opens assistant
frontend/src/pages/BuyerPage.tsx - Buyer Workspace → AI Call Experience: opens call flow
frontend/src/pages/BuyerPage.tsx - Procurement Assistant → AI Matching: requests AI help
frontend/src/components/ConversationalAssistant.tsx - Procurement Assistant → Supplier Catalog: uses supplier data
frontend/src/components/ConversationalAssistant.tsx - Buyer Workspace → Speech Services: captures voice
frontend/src/pages/BuyerPage.tsx - Seller Workspace → Speech Services: uses voice input
frontend/src/pages/SellerPage.tsx - Speech Services → Murf Voice: requests voice output
frontend/src/services/speechService.ts - Seller Workspace → Supabase Client: manages inventory
frontend/src/pages/SellerPage.tsx - Seller Workspace → Supplier Catalog: loads fallback data
frontend/src/pages/SellerPage.tsx - User Dashboard → Supabase Client: reads account data
frontend/src/pages/UserDashboard.tsx - Authentication → Supabase Client: authenticates users
frontend/src/context/AuthContext.tsx - Authentication → Postgres Data: stores profiles and follows
README.md - Supabase Client → Postgres Data: accesses records
README.md - Route Protection → Auth Hook: checks session
frontend/src/components/ProtectedRoute.tsx - Auth Hook → Authentication: reads auth state
frontend/src/hooks/useAuth.ts - Language Context → Translations: loads translations
frontend/src/context/LanguageContext.tsx - Buyer Workspace → Notifications: uses notifications
frontend/src/pages/BuyerPage.tsx - Seller Workspace → Notifications: uses notifications
- Buyer Workspace → WhatsApp: offers contact
README.md