How sohamsawalakhe/tailor-grid works
Darzi is a tailoring marketplace connecting customers who book garment services with partner studios that fulfill orders, alongside administrative operations. Customers browse services and locations, authenticate, place and track bookings; the backend provides service, identity, order, and studio APIs, with order dispatch coordinating nearby eligible studios. A separate studio portal supports partner onboarding and workbench tasks, while a customer-facing frontend provides booking and account experiences. The source excerpts establish backend routing and dispatch relationships; frontend-to-backend and several unsampled portal interactions are not directly evidenced, so those links are omitted.
Main entry points: prisma.js Prisma database access · server.js HTTP API server · orders.js Order lifecycle · app Studio portal
Components 24
Customer experience
- Customer app
frontend/app - Booking flow
frontend/app/(customer)/book/page.tsx - Customer authentication
frontend/components/login-modal.tsx - App state and types
frontend/components/data.ts - Customer API client
frontend/lib/api.ts
Marketplace backend
- HTTP API server
backend/server.js - Identity routes
backend/routes/auth.js - Services and studios
backend/routes/services.js - Order lifecycle
backend/routes/orders.js - Studio dispatch
backend/services/dispatch.service.js - Studio location
backend/services/locate.service.js - Request authentication
backend/lib/auth-middleware.js - Prisma database access
backend/lib/prisma.js - PostgreSQL
Partner portal
- Studio portal
studio/app - Partner onboarding
studio/components/partner-flow.tsx - Studio workbench
studio/app/(workbench) - Studio admin
studio/app/admin/page.tsx - Studio authentication
studio/components/auth-modal.tsx - Studio API client
studio/lib/api.ts
Platform operations
- Platform administration
backend/routes/admin.js
Other components
- Customer
- Studio partner
- Platform administrator
Connections 26
- Customer → Customer app: uses
- Customer app → Booking flow: opens booking
- Customer app → Customer authentication: authenticates with
- Booking flow → App state and types: uses types
- Customer authentication → Customer API client: calls
- HTTP API server → Identity routes: mounts routes
backend/server.js - HTTP API server → Services and studios: mounts routes
backend/server.js - HTTP API server → Order lifecycle: mounts routes
backend/server.js - HTTP API server → Platform administration: mounts routes
backend/server.js - HTTP API server → Prisma database access: checks connection
backend/server.js - Services and studios → Studio location: locates studios
backend/routes/services.js - Order lifecycle → Studio dispatch: dispatches orders
backend/routes/orders.js - Studio dispatch → Studio location: calculates distance
backend/services/dispatch.service.js - Studio dispatch → Prisma database access: reads and updates
backend/services/dispatch.service.js - Services and studios → Prisma database access: reads and writes
backend/routes/services.js - Identity routes → Prisma database access: reads and writes
backend/routes/auth.js - Order lifecycle → Prisma database access: reads and writes
backend/routes/orders.js - Prisma database access → PostgreSQL: queries
backend/lib/prisma.js - Order lifecycle → Request authentication: authenticates requests
backend/routes/orders.js - Studio partner → Studio portal: uses
- Studio portal → Partner onboarding: onboards through
- Studio portal → Studio workbench: manages work in
- Studio portal → Studio authentication: signs in through
- Studio authentication → Studio API client: calls
studio/components/auth-modal.tsx - Platform administrator → Platform administration: administers through
- Platform administration → Prisma database access: reads and writes
backend/routes/admin.js