How yohanimmanuel/lakupak-dashboard works
Lakupak is an AI-enabled B2B commerce and operations platform for FMCG distributors and their retail buyers. Its documented commercial flow unifies product and customer information, identifies opportunities, matches buyers, executes sales and commerce activity, and learns through analytics. The dashboard, marketplace, logistics, sales, offers, and automation capabilities are represented as distinct product areas. Several runtime links are evidenced by source-index references or excerpts; dashed links mark documented product flow whose implementation wiring was not shown in the supplied excerpts.
Main entry points: page.tsx Operations Dashboard · mobileOrdersService.ts Mobile Ordering · route.ts GraphQL API · db.ts Application Database
Components 21
Commerce & Catalog
- Product Catalog
src/components/productscatalogs/useProductCatalogController.ts - Catalog Helpers
src/components/productscatalogs/productCatalogHelpers.ts - B2B Marketplace
src/app/api/marketplace/data/route.ts - Mobile Ordering
src/services/mobileOrders/mobileOrdersService.ts - Offers & Pricing
src/components/offersincentivesdisc/OfferEditorForm.tsx - Order Management
src/services/orders/ordersRouteService.ts
Distributor Operations
- Operations Dashboard
src/app/(dashboard)/(menulist)/home/page.tsx - Client Management
src/components/clientmanagement/BuyerTable.tsx - Sales Workflows
src/components/sales/SalesJobsBoard.tsx - Fleet Logistics
src/components/logisticsmanagement/FleetDetails.tsx
Commercial Intelligence
- Buyer Matching
src/lib/clientMatching/service.ts - Assortment Insights
src/lib/assortmentOpportunities/engine.ts - Sales Analytics
src/components/analyticsperformance/CustomerSalesAnalytics.tsx - Workflow Automation
src/lib/automations/engine.ts
Platform Services
- GraphQL API
src/app/api/graphql/route.ts - Account Registration
src/app/api/auth/register/route.ts - Application Database
src/lib/db.ts - Realtime Broadcasts
src/utils/websocketBroadcast.ts - WebSocket Server
src/server/websocket.ts
Other components
- Distributors
- Retail Buyers
Connections 24
- Distributors → Account Registration: registers
src/app/api/auth/register/route.ts - Account Registration → Application Database: creates account
src/app/api/auth/register/route.ts - Distributors → Operations Dashboard: manages operations
- Retail Buyers → B2B Marketplace: shops privately
- Operations Dashboard → Product Catalog: manages products
- Operations Dashboard → Client Management: manages relationships
- Operations Dashboard → Sales Workflows: coordinates sales
- Operations Dashboard → Fleet Logistics: coordinates delivery
- Product Catalog → Catalog Helpers: uses helpers
src/components/productscatalogs/useProductCatalogController.ts - Product Catalog → GraphQL API: loads and saves
src/components/productscatalogs/useProductCatalogController.ts - B2B Marketplace → Application Database: reads data
src/app/api/marketplace/data/route.ts - Retail Buyers → Mobile Ordering: places orders
- Mobile Ordering → Buyer Matching: plans client match
src/services/mobileOrders/mobileOrdersService.ts - Mobile Ordering → Offers & Pricing: validates offers
src/services/mobileOrders/mobileOrdersService.ts - Mobile Ordering → Application Database: persists commerce data
src/services/mobileOrders/mobileOrdersService.ts - Offers & Pricing → Order Management: supports transactions
- Operations Dashboard → Assortment Insights: surfaces opportunities
- Operations Dashboard → Sales Analytics: reviews performance
- Sales Workflows → Workflow Automation: executes workflows
- Workflow Automation → Realtime Broadcasts: broadcasts updates
src/lib/automations/engine.ts - Realtime Broadcasts → WebSocket Server: dispatches broadcasts
src/utils/websocketBroadcast.ts - GraphQL API → Application Database: sets security context
src/app/api/graphql/route.ts - GraphQL API → Buyer Matching: registers module
src/app/api/graphql/route.ts - GraphQL API → Workflow Automation: registers module
src/app/api/graphql/route.ts