How kotaprasanna12345/smartwarehouse works
SmartStock AI is a Flask-backed warehouse operations and order-fulfillment platform. Warehouse staff use its browser interface to inspect operational health, inventory and congestion, then allocate orders, pick items, and track fulfillment. The main workflow runs from order allocation through picking-task execution and status updates; replenishment and picker rebalancing are separate corrective actions. The README documents further analytics, an AI copilot, a global optimizer, and demo simulation. Sampled excerpts support the Flask, intelligence-engine, and SQLite layers; some feature wiring is documented but not shown in source excerpts.
Main entry points: app.py Flask Routes · templates Browser UI · database.py Database Access · engine.py Intelligence Engine
Components 25
Operations Interface
- Browser UI
templates - Command Dashboard
static/js/dashboard.js - Inventory Controls
static/js/inventory.js - Orders Interface
static/js/orders.js - RF Picking Center
static/js/fulfillment.js - Spatial Warehouse Map
static/js/warehouse.js - 3D Warehouse Twin
static/js/warehouse-3d.js - Alerts Center
static/js/alerts.js - Analytics Views
static/js/analytics.js - AI Copilot
static/js/ai-insights.js - Optimizer Controls
static/js/optimizer.js - Demo Simulator
static/js/demo-mode.js
Warehouse Workflow
- Order Allocation
app.py - Picking Execution
app.py - Stock Replenishment
app.py
Intelligence Features
- Intelligence Engine
engine.py - Health and Bottlenecks
engine.py - Smart Allocation
engine.py - Copilot Responses
engine.py - Global Optimization
engine.py - Operational Analytics
app.py
Application Backend
- Flask Routes
app.py - Database Access
database.py - Warehouse Records
database.db
Other components
- Warehouse Staff
Connections 38
- Warehouse Staff → Browser UI: uses
- Browser UI → Command Dashboard: renders
- Browser UI → Inventory Controls: uses
- Browser UI → Orders Interface: uses
- Browser UI → RF Picking Center: uses
- Browser UI → Spatial Warehouse Map: uses
- Spatial Warehouse Map → 3D Warehouse Twin: controls
- Browser UI → Alerts Center: uses
- Browser UI → Analytics Views: uses
- Browser UI → AI Copilot: uses
- Browser UI → Optimizer Controls: uses
- Browser UI → Demo Simulator: uses
- Command Dashboard → Flask Routes: requests data
- Inventory Controls → Flask Routes: requests and updates
- Orders Interface → Flask Routes: requests allocation
- RF Picking Center → Flask Routes: submits pick actions
- Spatial Warehouse Map → Flask Routes: requests rebalance
- Alerts Center → Flask Routes: requests alerts
- Analytics Views → Flask Routes: requests metrics
- AI Copilot → Flask Routes: sends queries
- Optimizer Controls → Flask Routes: requests optimization
- Demo Simulator → Flask Routes: sends simulation events
- Flask Routes → Order Allocation: dispatches
- Flask Routes → Picking Execution: dispatches
- Flask Routes → Stock Replenishment: dispatches
- Flask Routes → Operational Analytics: computes
- Flask Routes → Intelligence Engine: calls
- Intelligence Engine → Health and Bottlenecks: calculates
- Intelligence Engine → Smart Allocation: recommends
- Intelligence Engine → Copilot Responses: answers
- Intelligence Engine → Global Optimization: executes
- Flask Routes → Database Access: accesses records
- Order Allocation → Database Access: reads and writes
- Picking Execution → Database Access: reads and writes
- Stock Replenishment → Database Access: updates stock
- Intelligence Engine → Database Access: queries and updates
- Operational Analytics → Database Access: reads records
- Database Access → Warehouse Records: reads and writes