StockFlow
Connected Sales, Purchase, Stock ledger, and financial Reports in one real-time business panel.
01 · The Problem
Operational bottlenecks
Small and mid-sized distributors often track purchases in spreadsheets, invoices in separate billing tools, and warehouse counts manually—causing stockouts, duplicate reorders, and slow month-end reconciliation.
02 · My Solution
Focused architecture
I architected StockFlow with a shared normalized Zustand store synced to modular Next.js App Router views. Every sales order or purchase receipt updates available stock, valuation metrics, and low-stock alerts automatically in real time without page reloads.
Key Features
Connected Sales, Purchase, Stock Ledger, and Reports modules sharing one source of truth
Instant SKU search, batch/warehouse filtering, and automated low-stock reorder thresholds
Keyboard-friendly invoice & purchase order builder with GST/tax breakdown
Exportable daily, weekly, and category-wise profit & stock movement reports
Tech Used
Next.js App Router
Fast route transitions, server-rendered shell, and clean URL state
Zustand
Lightweight atomic state across Sales, Purchase, and Stock slices
Tailwind CSS
Dense, scannable data tables with dark-first contrast tokens
RESTful API Layer
Optimistic UI updates with rollback on validation errors
Interface Preview
The Result
Cut manual stock reconciliation time by eliminating double data entry between billing and warehouse sheets, while keeping table interactions snappy under 16ms.
What I Learned
Designing business panels around keyboard navigation and predictable state slices matters far more to daily operators than flashy charts.
Next Case Study
FleetPulse
Fleet Rental & Live GPS Dispatch Panel