SupplyLens/01
See the shortage. Before it happens.
AI-assisted, and still learning.
I used AI coding tools extensively to build this project. I’m working through the implementation so I can explain the decisions, debug problems and make changes with more independence.
Synthetic starting data; the hosted workspace requires ChatGPT sign-in. External supply-chain integrations are future work.
Inspect the implementation ↗Signals become
decisions.

Connecting demand, inventory and purchasing decisions in one supply-chain workspace.
Inventory is a timing problem. Demand forecasts, supplier lead times and incoming orders need to tell the same story before a purchasing decision is made.
A planning workspace that makes those relationships visible, then connects the forecast to the purchase-order lifecycle.
When does stock run out?
Adjust the model. See the relationship. This original explanatory study simplifies a concept in the project; it is not the production application.
600 units on hand
Stock covers this delivery window.
Illustrative constant-demand model, not SupplyLens’s forecasting engine. No incoming orders or safety stock are included.From interface
to infrastructure.
- 01React + Rechartsplanning UI
- 02Vinext + Workersvalidated requests
- 03Zodinput contracts
- 04D1inventory and order records
Forecast demand with exponential smoothing (α = 0.3).
Explore supplier delays and demand shocks against inventory runway.
Move purchase orders from draft to ordered to received.
Protect database writes with revision checks and duplicate-receipt guards.
Where correctness matters.
Receiving an order changes inventory. Repeating that action must not count the same stock twice; revision checks and duplicate guards protect that boundary.
What the implementation teaches.
A useful forecast needs an operational next step. The most important design connection is between the planning model and a safely recorded purchase order.