How aryan6002261/vyora works
DukaanAI is a shop-management application for neighborhood retailers. Its main workflow is to navigate a store dashboard, create sales and update stock, then manage customer credit, suppliers, and business insights through shared application state. The interface also provides AI assistance, nearby-store discovery, login, and demo/WhatsApp flows. The excerpts show the app’s component routing and shared state model; several feature modules were indexed but not excerpted, so their internal behavior and external integrations are not expanded here.
Main entry points: App.tsx App router · DukaanContext.tsx Dukaan state · Navbar.tsx Navigation · Dashboard.tsx Store dashboard
Components 16
Application shell
- App router
src/App.tsx - Navigation
src/components/Navbar.tsx - Login dialog
src/components/LoginModal.tsx - Demo guide
src/components/DemoFlowModal.tsx
Store operations
- Store dashboard
src/components/Dashboard.tsx - Sales POS
src/components/SalesPOS.tsx - Inventory
src/components/Inventory.tsx - Customer ledger
src/components/Khata.tsx - Supplier management
src/components/SuppliersModule.tsx
Business tools
- Analytics
src/components/Analytics.tsx - AI assistant
src/components/AiAssistant.tsx - Nearby directory
src/components/NearbyMapDirectory.tsx - WhatsApp dialog
src/components/WhatsAppModal.tsx
Shared state
- Dukaan state
src/context/DukaanContext.tsx - Sample store data
src/data/initialData.ts
Other components
- Shopkeeper
Connections 22
- Shopkeeper → App router: uses
- App router → Dukaan state: provides state
src/App.tsx - App router → Navigation: renders
src/App.tsx - App router → Store dashboard: routes to
src/App.tsx - App router → Sales POS: routes to
src/App.tsx - App router → Inventory: routes to
src/App.tsx - App router → Customer ledger: routes to
src/App.tsx - App router → Supplier management: routes to
src/App.tsx - App router → Nearby directory: routes to
src/App.tsx - App router → AI assistant: routes to
src/App.tsx - App router → Analytics: routes to
src/App.tsx - App router → Demo guide: opens
src/App.tsx - App router → WhatsApp dialog: opens
src/App.tsx - App router → Login dialog: opens
src/App.tsx - Dukaan state → Sample store data: initializes from
src/context/DukaanContext.tsx - Navigation → Dukaan state: reads and updates
src/components/Navbar.tsx - Store dashboard → Dukaan state: reads store data
src/components/Dashboard.tsx - Sales POS → Dukaan state: uses store state
src/components/SalesPOS.tsx - Inventory → Dukaan state: uses store state
src/components/Inventory.tsx - Customer ledger → Dukaan state: uses store state
src/components/Khata.tsx - Nearby directory → Dukaan state: reads directory data
src/components/NearbyMapDirectory.tsx - AI assistant → Dukaan state: uses store state
src/components/AiAssistant.tsx