How stratonflorentin-dot/kariakoo-in-ur-pockect works
KARIAKOO is a multi-vendor marketplace: customers browse a live-or-demo catalog, build a cart, and submit a server-priced order; the platform coordinates shop fulfilment, one-rider delivery, and post-delivery seller settlement. Seller and admin workspaces manage products, orders, commissions, and marketplace operations, while the rider app handles offers and delivery steps including PIN verification. The README says orders, riders, and dashboards remain demo-backed and real payments are not live. Arrows use the README and shown source-index relationships; unsampled implementation details are not inferred.
Main entry points: actions.ts Checkout action · catalog-source.ts Catalog source · rider/page.tsx Rider jobs · seller/page.tsx Seller workspace
Components 21
Customer storefront
- Store browsing
src/app/customer/page.tsx - Catalog source
src/lib/catalog-source.ts - Catalog search
src/lib/catalog.ts - Supabase catalog
src/lib/supabase/server.ts
Order lifecycle
- Cart
src/app/customer/cart/page.tsx - Checkout action
src/app/customer/checkout/actions.ts - Customer orders
src/app/customer/orders/[id]/page.tsx - Payment providers
src/lib/payments/providers.ts
Marketplace operations
- Delivery dispatch
src/lib/data/dispatch.ts - Seller workspace
src/app/seller/page.tsx - Product management
src/components/dashboard/SellerProductsManager.tsx - Admin controls
src/app/admin/page.tsx - Rider jobs
src/app/rider/page.tsx - Delivery steps
src/components/rider/DeliveryFlow.tsx - Marketplace maps
src/components/map/MarketMap.tsx
Identity and access
- Role-scoped access
src/lib/data/access.ts - Server session
src/lib/auth/session.ts
Shared domain services
- Server pricing
src/lib/pricing.ts - Order status rules
src/lib/status.ts - Money and commission
src/lib/money.ts
Other components
- Customer
Connections 25
- Customer → Store browsing: browses
- Store browsing → Catalog source: loads catalog
src/app/customer/page.tsx - Catalog source → Catalog search: builds view
src/lib/catalog-source.ts - Catalog source → Supabase catalog: reads live data
- Catalog source → Catalog search: falls back
src/lib/catalog-source.ts - Customer → Cart: adds products
- Customer → Checkout action: submits order
- Checkout action → Server pricing: re-prices
- Checkout action → Customer orders: creates order
- Customer orders → Order status rules: shows status
- Checkout action → Money and commission: calculates totals
- Checkout action → Payment providers: selects payment
- Seller workspace → Role-scoped access: loads scoped data
src/app/seller/page.tsx - Product management → Seller workspace: manages products
- Admin controls → Role-scoped access: loads admin data
src/app/admin/page.tsx - Rider jobs → Role-scoped access: loads rider jobs
src/app/rider/page.tsx - Rider jobs → Delivery steps: opens job steps
- Delivery steps → Order status rules: advances delivery
src/components/rider/DeliveryFlow.tsx - Delivery dispatch → Rider jobs: offers jobs
- Server session → Role-scoped access: authorizes records
src/lib/data/access.ts - Seller workspace → Marketplace maps: shows shop location
- Rider jobs → Marketplace maps: shows delivery route
- Customer orders → Marketplace maps: shows delivery route
- Money and commission → Seller workspace: supports settlements
src/app/seller/page.tsx - Order status rules → Delivery dispatch: coordinates fulfilment