Inspiration

Imagine promising 40 identical food boxes. The shelves hold 90 bags of rice, but only 31 cans of tomatoes. A total item count can make that pantry look ready. A volunteer needs to know what will run out halfway down the packing line.

What it does

The demo opens on that 40-box shift. It can fill 31 boxes. Reaching 40 takes eight more cans of beans and nine more cans of tomatoes. Change the target, adjust a recipe or enter your own items. Download a slip with the quantities to use, the stock left afterward and the units still needed.

How we built it

Each ingredient sets a ceiling on complete boxes. The browser divides its stock by the units per box and rounds down. The lowest ceiling determines capacity. A second calculation checks every ingredient against the full target, so the donation request includes the next shortage too.

Challenges

A request for nine more tomato cans alone would still leave four boxes without beans. Keeping packing capacity and target demand as separate calculations prevents that incomplete shopping list.

Accomplishments

The entire workflow runs from static files. A volunteer can change the plan and hand the resulting slip to another shift. Browser tests exercise the example, an increased target, a fully covered target and the actual downloaded file.

What we learned

One number answers the packing team's question. The donor coordinator needs an itemized answer for the same shift. Showing both together makes the arithmetic easier to check.

What's next

Try the planner with a pantry coordinator during a real packing shift and learn how they record substitutions and stock held in reserve.

Demo

https://pantry-run.pages.dev/

Source and build instructions

https://github.com/ryan930704/pantry-run — see app/README.md.

AI disclosure

OpenAI Codex, an AI coding agent, wrote the code and copy under human direction. All sample inventory is fictional.

Built With

Share this project:

Updates

Submission history