How 1nsharma/dukaanmitra.in works
DukaanMitra-OS is a multi-app operating system for Indian retailers, combining merchant dashboards, customer commerce, event-driven business operations, AI services, and WhatsApp/ONDC channels. A typical workflow starts with a merchant managing a shop or a customer placing an order; events and specialist services support inventory, bookkeeping, and commerce integrations. The README documents the product capabilities, while sampled source confirms selected route, event, inventory, and WhatsApp relationships; unsampled subsystem links are omitted or marked unverified.
Main entry points: app.py AI service API · app.routes.ts Store API · StoreDashboard.tsx Store dashboard · page.tsx Customer storefront
Components 25
Merchant Experience
- Merchant portal
apps/mitra-os-web/App.tsx - Store dashboard
apps/mitra-os-web/components/StoreDashboard.tsx - Discovery content
apps/mitra-os-web/components/ProgrammaticSeoPage.tsx
Commerce Operations
- Customer storefront
apps/dukaan-in-next/src/app/[locale]/page.tsx - Store API
apps/core-engine/src/api/routes/app.routes.ts - Event routing
apps/core-engine/src/core/events/event-router.ts - Event persistence
apps/core-engine/src/core/events/event-store.ts - Inventory engine
apps/core-engine/src/core/services/inventory.service.ts - Business templates
apps/core-engine/src/core/templates/business-templates.ts - Merchant ledger
apps/dukaan-in-next/src/lib/modules/ledger/services/ledger-service.ts - Action safety
apps/dukaan-in-next/src/lib/services/action-engine.ts
AI Intelligence
- AI service API
apps/ai-services/app.py - Core brain
apps/ai-services/core_brain.py - Retail platform
apps/ai-services/dukaanmitra_platform.py - Superintelligence
apps/ai-services/superintelligence.py - Mowglai delivery
apps/ai-services/mowglai_delivery_agent.py
Commerce Channels
- ONDC network
apps/ai-services/ondc_network.py - WhatsApp routes
apps/core-engine/src/api/routes/whatsapp.routes.ts - OpenWA bridge
apps/core-engine/src/channels/whatsapp/openwa.bridge.ts - WhatsApp gateway
apps/whatsapp-gateway/src/gateway.ts - ONDC service
apps/core-engine/src/core/integration/ondc.service.ts
Agent Systems
- Enterprise agent mesh
packages/agent-mesh/orchestrator.py - Specialist agents
packages/enterprise-agents/index.ts
Other components
- Merchant
- Customer
Connections 24
- Merchant → Merchant portal: uses
README.md - Merchant portal → Store dashboard: renders
apps/mitra-os-web/App.tsx - Merchant → Store API: starts onboarding
apps/core-engine/src/api/routes/app.routes.ts - Store API → Business templates: lists templates
apps/core-engine/src/api/routes/app.routes.ts - Store API → Event routing: routes events
apps/core-engine/src/api/routes/app.routes.ts - Event routing → Event persistence: updates status
apps/core-engine/src/core/events/event-router.ts - Inventory engine → Business templates: seeds from
apps/core-engine/src/core/services/inventory.service.ts - Customer → Customer storefront: shops
README.md - Customer storefront → Store API: connects to
- Action safety → Merchant ledger: records entries
apps/dukaan-in-next/src/lib/services/action-engine.ts - Merchant → AI service API: uses AI services
README.md - AI service API → Core brain: exposes
apps/ai-services/app.py - AI service API → Retail platform: exposes
apps/ai-services/app.py - AI service API → Superintelligence: exposes
apps/ai-services/app.py - AI service API → Mowglai delivery: exposes
apps/ai-services/app.py - AI service API → ONDC network: exposes
apps/ai-services/app.py - WhatsApp gateway → WhatsApp routes: sends webhooks
README.md - WhatsApp routes → OpenWA bridge: handles webhook
apps/core-engine/src/api/routes/whatsapp.routes.ts - ONDC service → Event routing: routes sales
apps/core-engine/src/core/integration/ondc.service.ts - Merchant → Enterprise agent mesh: delegates tasks
- Enterprise agent mesh → Specialist agents: coordinates agents
- Customer storefront → ONDC service: supports ONDC commerce
README.md - Store dashboard → WhatsApp routes: pairs WhatsApp
README.md - Store dashboard → Inventory engine: manages stock
README.md