How aniket-2111/pocketkirana works
PocketKirana is a local grocery delivery platform spanning customer web and Android experiences, admin operations, and picker and delivery portals. The customer journey runs from product discovery and serviceability checks through authoritative pricing, payment, order tracking, picking, and delivery. Admin capabilities also cover catalog, inventory, dispatch, settlements, analytics, and festival campaigns. The graph uses documented capabilities and sampled route behavior; where route-to-service wiring was not sampled, it avoids asserting internal calls.
Main entry points: orders Order lifecycle · admin Admin console · app Customer web · customer-app Customer Android
Components 22
Customer commerce
- Customer web
app - Customer Android
customer-app - Catalog browsing
app/products/page.tsx - Location and serviceability
app/api/location - Checkout
app/api/checkout - Order tracking
app/orders/[id]/track/page.tsx
Store operations
- Picker workflow
components/picker - Delivery workflow
components/partner - Inventory operations
app/api/inventory - Admin console
app/admin - Festival campaigns
app/api/admin/festival-campaigns
Platform services
- Pricing engine
lib/pricingEngine.ts - Payment routes
app/api/payments - Order lifecycle
app/api/orders - Notifications
app/api/notifications/route.ts - Cloud Functions
functions/src - Invoice generation
lib/invoiceEngine.ts
Data and integrations
- Firebase services
lib/firebaseServices.ts - PostgreSQL
lib/postgres.ts
Other components
- Customer
- Operations staff
- PhonePe
Connections 27
- Customer → Customer web: uses
- Customer → Customer Android: uses
- Customer web → Catalog browsing: browses
- Customer Android → Catalog browsing: browses
- Customer web → Location and serviceability: checks serviceability
- Customer Android → Location and serviceability: checks serviceability
- Customer web → Checkout: submits cart
- Customer Android → Checkout: submits cart
- Checkout → Pricing engine: calculates price
- Checkout → Payment routes: starts payment
- Payment routes → PhonePe: requests payment
- Payment routes → Order lifecycle: verifies payment
- Customer → Order tracking: tracks order
- Operations staff → Admin console: manages operations
- Admin console → Inventory operations: manages stock
- Admin console → Festival campaigns: manages campaigns
- Order lifecycle → Picker workflow: supports picking
- Order lifecycle → Delivery workflow: supports delivery
- Picker workflow → Inventory operations: updates stock
- Delivery workflow → Order lifecycle: updates delivery status
- Admin console → Invoice generation: manages invoices
- Order lifecycle → Invoice generation: provides order data
- Admin console → Notifications: composes notifications
- Notifications → Firebase services: reads fallback
- Catalog browsing → PostgreSQL: reads catalog
- Catalog browsing → Firebase services: falls back to
- Order lifecycle → Cloud Functions: lifecycle operations