← Back to projects Featured Case Study · Personal Supply Chain · 2025

Personal Supply Chain

A household inventory optimizer that applies real supply-chain mathematics - EOQ, reorder points, safety stock, and consumption smoothing - to the items in your pantry.

Treat your home like a warehouse and stop guessing when to restock.

EOQEconomic Order Quantity per item
ROPReorder point with safety stock
95%Service-level target, configurable
0Server upload - runs in your browser

01 /

The Problem.

// household inventory chaos

Most households manage pantry stock by memory and guesswork - leading to emergency grocery runs for toilet paper while onions rot in the drawer. The mental overhead of tracking dozens of SKUs with different consumption rates, lead times, and shelf lives is beyond what a shopping list app can handle.

There was no lightweight tool that applied the same inventory-theory formulas warehouses use - EOQ, ROP, safety stock - to everyday household items, while remaining simple enough for a non-logistics user.

// live tool - try it below

02 /

Methodology.

// four formulas per item

Economic Order Quantity (EOQ)

Wilson formula: sqrt(2DS/H). Calibrates the ideal batch size that trades off ordering cost against holding cost for each household item.

Reorder Point + Safety Stock

ROP = avg_daily × lead_time + safety_stock. Safety stock uses a Z-score against lead-time variability (low / medium / high) to hit the target service level.

Exponential Smoothing

Usage rate is continuously smoothed with α = 0.3 as you log consumption, so forecasts adapt to real habits without over-reacting to one-off events.

Stock Projection

Projects days-until-stockout from the smoothed usage rate and current stock, flagging items before they run out rather than after.

03 /

What’s in the build.

// shipped features

One-tap logging

Finished a bag? Opened a new pack? One tap updates consumption and re-trains the forecast instantly.

Smart shopping list

Bundles all reorders by supplier with EOQ quantities. Fewer trips, less waste, no mental math.

Stock-health dashboard

Four-bucket classification: reorder now, reorder soon, healthy, overstocked - with days-until-stockout for each.

Sample household

Built-in demo data so you can see the math in action before adding your own items.

Supplier grouping

Items tagged by supplier; the shopping list groups and sorts by source for efficient trip planning.

Min-order-qty respect

EOQ is floored at the supplier's minimum batch size so recommendations are always actionable.

04 /

Stack & Outcome.

// what it took, what it shipped

Stack

HTML5 Vanilla JavaScript (ES6) CSS Grid & Flexbox Web Storage API No build step

Outcome

Load the sample household below and immediately see calibrated reorder points and EOQs for every item. The app turns pantry management from guesswork into a data-driven routine - fewer stockouts, less waste, and no mental math.

Live Tool

Try it below

LIVEpersonal-supply-chain · runs entirely in your browser, nothing leaves your device

Add a Household Item

Shopping List

Nothing needs reordering right now.