How ananiasileshi/tibebstore works
TibebStore is a multi-tenant marketplace for Ethiopian handicrafts. Buyers browse artisan storefronts, authenticate, place tenant-scoped orders, pay through Chapa, and track fulfillment; sellers manage products and orders, while administrators moderate listings and govern marketplace finances. The graph combines README-documented capabilities with the sampled order, authentication, review, and model code. Many routes and integrations were not sampled, so their documented relationships are shown with README evidence rather than implying unseen calls.
Main entry points: orders/route.ts Order placement · Order.ts Orders and fulfillment · reviews/route.ts Verified reviews · initialize/route.ts Chapa payments
Components 22
Marketplace experience
- Tenant storefronts
src/app/tenant/[slug]/page.tsx - Product discovery
src/components/products/ProductListingContainer.tsx - Product details
src/components/products/ProductDetailContainer.tsx - Account experience
src/hooks/useAuth.tsx - Verified reviews
src/app/api/reviews/route.ts
Commerce operations
- Artisan tenants
src/models/Tenant.ts - Product catalog
src/models/Product.ts - Seller operations
src/app/api/seller/products/route.ts - Order placement
src/app/api/orders/route.ts - Orders and fulfillment
src/models/Order.ts - Chapa payments
src/app/api/payments/chapa/initialize/route.ts - Escrow and payouts
src/lib/escrow.ts - Review records
src/models/Review.ts
Marketplace governance
- Product moderation
src/app/api/admin/products/route.ts - Admin governance
src/app/api/admin/analytics/route.ts - Reports and analytics
src/app/api/reports/route.ts
Platform services
- Authentication API
src/app/api/auth/sign-in/route.ts - Session and access
src/lib/requireAuth.ts - MongoDB connection
src/lib/mongodb.ts - Notifications
src/lib/notifications.ts
Other components
- Buyers and sellers
- Chapa
Connections 31
- Buyers and sellers → Tenant storefronts: visit
- Tenant storefronts → Product discovery: browse listings
- Product discovery → Product details: open product
- Buyers and sellers → Account experience: manage account
- Account experience → Authentication API: sign in or up
src/hooks/useAuth.tsx - Authentication API → Session and access: establish session
- Tenant storefronts → Artisan tenants: tenant routing
- Product discovery → Product catalog: browse catalog
- Seller operations → Product catalog: manage listings
- Seller operations → Artisan tenants: manage storefront
- Buyers and sellers → Order placement: place order
- Order placement → Session and access: authorize request
src/app/api/orders/route.ts - Order placement → Artisan tenants: resolve tenant
src/app/api/orders/route.ts - Order placement → Product catalog: validate products
src/app/api/orders/route.ts - Order placement → Orders and fulfillment: create order
src/app/api/orders/route.ts - Order placement → Notifications: notify seller
src/app/api/orders/route.ts - Orders and fulfillment → Chapa payments: payment lifecycle
- Chapa payments → Chapa: initialize payment
- Chapa → Chapa payments: send webhook
- Chapa payments → Escrow and payouts: hold funds
- Escrow and payouts → Orders and fulfillment: update release state
- Escrow and payouts → Artisan tenants: calculate payout
- Buyers and sellers → Verified reviews: review purchase
- Verified reviews → Orders and fulfillment: verify delivery
src/app/api/reviews/route.ts - Verified reviews → Review records: read and write
src/app/api/reviews/route.ts - Admin governance → Product moderation: review products
- Admin governance → Reports and analytics: inspect performance
- Product moderation → Product catalog: approve listings
- Reports and analytics → Orders and fulfillment: analyze commerce
- Order placement → MongoDB connection: connect
src/app/api/orders/route.ts - Verified reviews → MongoDB connection: connect
src/app/api/reviews/route.ts