How yacbhl71/mazigho works
MAZIGHO is a tenant-scoped, multi-store commerce platform with three distinct surfaces: public storefronts, isolated store-owner workspaces, and platform-operator Studio. The main journey runs from resolving and preparing a store, through publishing its storefront and handling customer orders, to owner operations and platform oversight. The README documents capabilities beyond the sampled excerpts; those are represented at subsystem level. Edges are limited to relationships shown in excerpts, the source index, or README statements.
Main entry points: App.tsx Web application · adminRouter.ts Studio operations · routers.ts tRPC API · ownerRouter.ts Store operations
Components 22
Product surfaces
- Web application
client/src/App.tsx - Public storefront
client/src/pages/Shop.tsx - Owner workspace
client/src/pages/OwnerStorePanel.tsx - MAZIGHO Studio
client/src/pages/admin/AdminStudio.tsx - Store acquisition
client/src/pages/StoreAcquisitionWizard.tsx
Platform services
- Authentication
server/authRouter.ts - tRPC API
server/routers.ts - HTTP server
server/_core/index.ts - Tenant access control
server/services/storeScope.ts - Commerce database
drizzle/schema.ts
Commerce operations
- Studio operations
server/adminRouter.ts - Store operations
server/ownerRouter.ts - Checkout and payments
server/stripeCheckout.ts - Supplier fulfillment
server/services/cjFulfillment.ts
External integrations
- CJ Dropshipping
server/cjDropshipping.ts - AI services
server/_core/llm.ts - Media storage
server/storage.ts - Transactional email
server/transactionalEmail.ts - Stripe
Other components
- Shopper
- Platform operator
- Store owner
Connections 26
- Shopper → Web application: browses
README.md - Store owner → Web application: uses
README.md - Platform operator → Web application: uses
README.md - Web application → Public storefront: routes to
client/src/App.tsx - Web application → Store acquisition: routes to
client/src/App.tsx - Web application → Owner workspace: routes to
client/src/App.tsx - Web application → MAZIGHO Studio: routes to
client/src/App.tsx - Web application → tRPC API: uses procedures
README.md - HTTP server → tRPC API: mounts
server/_core/index.ts - HTTP server → Commerce database: builds context
- tRPC API → Authentication: registers
server/routers.ts - tRPC API → Studio operations: registers
server/routers.ts - tRPC API → Store operations: registers
server/routers.ts - tRPC API → Checkout and payments: routes checkout
server/routers.ts - Store operations → Tenant access control: enforces tenant scope
- Studio operations → Tenant access control: enforces platform scope
server/adminRouter.ts - Store operations → Commerce database: reads and writes
server/ownerRouter.ts - Studio operations → Commerce database: reads and writes
server/adminRouter.ts - Checkout and payments → Stripe: charges via
- Supplier fulfillment → CJ Dropshipping: prepares supplier order
server/services/cjFulfillment.ts - Studio operations → CJ Dropshipping: imports products
server/adminRouter.ts - Studio operations → AI services: invokes
server/adminRouter.ts - Store operations → AI services: invokes
server/ownerRouter.ts - Studio operations → Media storage: uploads media
server/adminRouter.ts - Authentication → Transactional email: sends reset email
server/authRouter.ts - Store operations → Transactional email: sends order email
server/ownerRouter.ts