How codewithjaswanth/inventra.ai-main works
Local-Inventory-AI is a hyperlocal inventory and shopping application: customers discover nearby shops and products, then manage a cart and checkout; shopkeepers maintain stock, including an AI-assisted image/audio update workflow. Admin routes provide operational oversight. The source index and excerpts support the AI pipeline and several UI-to-service links, but the short README documents no further capabilities. Some route families are unsampled, so their internal calls are not inferred.
Main entry points: pipeline.service.ts Update pipeline · app/page.tsx Home discovery · checkout/page.tsx Checkout · inventory.service.ts Inventory service
Components 24
Local discovery
- Home discovery
app/page.tsx - Product search
components/SearchModal.tsx - Product catalog data
data/searchProducts.ts - Shop details
app/shop/[id]/page.tsx
Shopping
- Cart state
context/CartContext.tsx - Checkout
app/checkout/page.tsx - Order history
app/orders/page.tsx
Seller operations
- AI inventory update
app/ai-update/page.tsx - Inventory review UI
components/ai-update/InventoryReviewTable.tsx - Inventory management
components/inventory/InventoryManager.tsx - Inventory service
services/inventory.service.ts
AI processing
- Update pipeline
services/ai/pipeline.service.ts - Media storage
services/storage.service.ts - Audio transcription
services/ai/whisper.service.ts - Image detection
services/ai/florence.service.ts - Inventory extraction
services/ai/groq.service.ts - Embeddings
services/ai/bge.service.ts - Workflow webhook
services/ai/n8n.service.ts
Identity and data
- Login and signup
app/login/page.tsx - Authentication service
services/auth.service.ts - Supabase client
lib/supabase.ts - Admin console
app/admin/page.tsx
Other components
- Customer
- Shopkeeper
Connections 23
- Customer → Home discovery: browses
app/page.tsx - Home discovery → Product search: opens search
app/page.tsx - Product search → Product catalog data: reads products
components/SearchModal.tsx - Home discovery → Shop details: opens shop
- Customer → Checkout: checks out
app/checkout/page.tsx - Checkout → Cart state: reads cart
app/checkout/page.tsx - Checkout → Login and signup: uses auth
app/checkout/page.tsx - Customer → Order history: views orders
app/orders/page.tsx - Shopkeeper → AI inventory update: submits update
- AI inventory update → Inventory review UI: renders review
app/ai-update/page.tsx - Shopkeeper → Inventory management: manages stock
- Inventory management → Inventory service: calls inventory
components/inventory/InventoryManager.tsx - Update pipeline → Media storage: uploads media
services/ai/pipeline.service.ts - Update pipeline → Audio transcription: transcribes audio
services/ai/pipeline.service.ts - Update pipeline → Image detection: detects products
services/ai/pipeline.service.ts - Update pipeline → Inventory extraction: extracts items
services/ai/pipeline.service.ts - Update pipeline → Embeddings: generates embeddings
services/ai/pipeline.service.ts - Update pipeline → Inventory service: saves inventory
services/ai/pipeline.service.ts - Update pipeline → Workflow webhook: triggers webhook
services/ai/pipeline.service.ts - Login and signup → Authentication service: calls auth
app/login/page.tsx - Authentication service → Supabase client: uses client
services/auth.service.ts - Inventory service → Supabase client: uses client
services/inventory.service.ts - Admin console → Supabase client: data access