Stockroom - Café & Dining Inventory
← All projectsInventory for cafés and small dining places. Every sale deducts the exact grams, millilitres and cups from stock, so the owner knows what to order before the rush starts.
What it does
- Recipes link every menu item to its ingredients, so stock deducts automatically
- Full-screen tablet point of sale that works offline
- Receive deliveries, log waste, count stock, low and out-of-stock alerts
- Dashboard with sales, orders, best sellers, staff results and ingredient cost
- Three roles (owner, manager, staff) and safe employee onboarding
- Audit trail of every stock change, void and sign-in
- Runs in the browser, on an encrypted local database, or as an Android app
Stack
- React, Vite
- Node and Express API
- Encrypted SQLite (SQLCipher) and SQLite in WebAssembly
- Capacitor for the Android app
- Netlify
Overview
Stockroom is an inventory and point-of-sale system for cafés and small dining places. Every sale deducts the exact grams, millilitres and cups from stock, so the owner knows what to order before the rush starts.
The problem
Small cafés track stock in notebooks or not at all. Nobody knows how much milk or coffee a day of sales really used until something runs out mid-shift. The tool also has to work on a tablet at the counter, even when the internet drops.
What I built
- Recipes that link every menu item to its ingredients, so stock deducts on each sale
- Full-screen tablet point of sale that keeps working offline
- Deliveries, waste, stock counts, and low and out-of-stock alerts
- Dashboard: sales, orders, best sellers, staff results and ingredient cost
- Three roles (owner, manager, staff) and safe employee onboarding
- Audit trail of every stock change, void and sign-in
- Runs in the browser, on an encrypted local database, or as an Android app
Architecture
One React front end runs three ways: in the browser against a Node and Express API, on an encrypted local SQLite database, or packaged as an Android app with Capacitor. Every sale runs the recipe and writes a stock movement and an audit entry.
A high-level view. Endpoints, hosts and security details are left out on purpose.
Key decisions
- 01
Stock moves through recipes, not manual counts
Why: Linking each menu item to its ingredients means every sale deducts real quantities, so stock levels are right without anyone typing them in.
Trade-off: Recipes have to be set up and kept current when the menu changes.
- 02
Offline-first point of sale
Why: A café cannot stop selling when the Wi-Fi drops, so the counter keeps working and catches up afterwards.
Trade-off: Syncing back needs care so the same sale is never counted twice.
- 03
One codebase, three ways to run
Why: The same React app runs in the browser, on an encrypted local database or as an Android app, so a small shop picks what fits its budget.
Trade-off: Every feature has to be tested in each mode.
- 04
Everything leaves a trace
Why: Every stock change, void and sign-in is logged, so missing stock can be explained instead of argued about.
Trade-off: The log grows with every action and needs to be kept tidy.
Links
The source code is private. I'm happy to walk you through the code and design in a call.