StockFlow POS is a complete retail system for small and mid-sized businesses: a fast point-of-sale till with cashier shifts and drawer reconciliation, returns & refunds, and permanent invoices — plus the full inventory core: products, multi-warehouse stock, purchase and sales orders, transfers, suppliers, customers and low-stock alerts. Every sale is stock-checked line by line before anything is deducted.
The till and the stockroom are not two systems kept in sync — they are one record. A sale deducts real stock, a return restocks it, and every change writes a movement to a ledger that auditors can replay.
The daily rhythm of a shop follows one path through StockFlow POS. Every step is guarded by the rules in the next section.
The cashier opens their own shift at their warehouse with a starting float. No open shift, no sale — the till refuses, for every cashier, including Admin.
Scan or search, build the cart, apply a discount, take cash or card. Every line's stock is validated first; the tax rate is snapshotted onto the invoice the sale creates.
Invoices are never edited — a return is the correction: items restock, and the refund carries its proportional share of the original discount and tax.
Closing snapshots the drawer expectation — float + cash sales − cash refunds — next to the counted cash. The difference is on the record, to the cent.
Each rule below is checked in the operations layer and re-checked on the server. The shipped test suites prove every one of them — including replaying the entire movement ledger from zero and matching it against current stock.
When a shift closes, StockFlow POS snapshots what the drawer should hold — the float the cashier started with, plus the shift's cash sales, minus its cash refunds — and places it beside the cash that was actually counted. A difference is not an embarrassment to hide; it is a number on a permanent record, which is exactly what a shop owner needs at the end of the day.
Fourteen screens cover the till and the stockroom. Screenshots below are the real product, captured from the live demo — sign in and you will see exactly these screens with exactly this data.
One screen answers the owner's questions: what the stock is worth, what is running out, and what the till did today.


The till shows per-warehouse stock badges on the product grid, so a cashier can see what can actually be sold before promising it.
Shifts tie sales to a person, a warehouse and a float. Closing a shift snapshots its expectation forever — shifts, like invoices, are never edited or deleted.

Products carry SKUs and barcodes, cost and sale prices, and stock per warehouse — the same record the till sells from.
Sales orders validate every line before deducting anything — a short line refuses the order rather than half-fulfilling it silently.


Purchase orders bring stock in from suppliers — received exactly once, so a double delivery can never double the stock.
A return references the original invoice: the items go back into stock, and the refund returns each item's proportional share of the original discount and tax — the invoice itself is never touched.

Reports draw from the same ledger and invoices — never from a separate tally that could drift.
Permissions are checked twice: instantly in the browser for feedback, and again on the server for every request, against a single route access table. A button the Staff account cannot see is also an operation the server will refuse — 403, with nothing changed.
The owner's account. Full control: every module, deletes (where the guards allow them at all), Settings and staff accounts. The demo sign-in is tap-to-fill.
The shop-floor account. Runs the trading day — till, shifts, products, orders and returns. No deletes and no Settings: the server returns 403, and the attempt changes nothing.
Passwords are scrypt-hashed on the server. The browser only ever carries public profiles — no hash material appears in any payload, proven in the API suite.
Every API route declares its access rule in one auditable table. No token → 401. Wrong role → 403. An operation outside the allowlist → refused outright.
Repeated sign-in attempts are rate-limited, valid credentials included, so password guessing is not a viable attack.
No demo passwords, no credential checks, no hash material anywhere in the client source — the test suite scans for exactly that.
The screens of the demo store, Riverside General Store, exactly as they appear in the live demo. Pick a screen — or open the demo and walk through them yourself.






All business logic lives in one operations layer of pure state functions. The React client talks only to the API, and the same API core powers every deployment — self-host it and it is yours: no per-seat fees, no subscription, no lock-in.
| Front end | React 18 + Vite + Tailwind CSS — pages, components and a client store that talks only to the API; if the API is unreachable the app shows a clear server-unavailable state instead of inventing local data |
| Backend | Node.js + Express API — a single route access table guards every endpoint; business operations replay on the server before they are recorded. The same core also ships as a serverless function |
| Data | A single JSON data store per installation, with a SQL schema mirror of the same model included for a database swap |
| Hosting | Any Node.js server, or serverless — this live demo runs on Cloudflare with the same API core |
| Testing | 157 automated checks ship with the product: 92 headless logic checks (the movement-ledger invariant, POS money maths, shift reconciliation, atomic sales, return refunds) and 65 HTTP API checks (auth, cross-role refusals, the full shift → sale → return → close flow, rate limiting) |
| Demo data | The fictional Riverside General Store — 20 products, 5 categories, 2 warehouses, a 76-entry movement history, 3 shifts and 8 POS invoices — built by running the real operations, never hand-written totals |
The complete React client and Node.js API — every page, the operations layer, the route access table and the seed builder.
The Riverside General Store dataset plus two demo accounts (Admin and Staff) that exist only in demo mode. Production installs create their first Admin from environment variables — no demo accounts exist there.
Both suites ship in the package and re-run with two commands. The verification record documents exactly what was run against this build and what it proved.
Setup guide, the security model with the full route table, the data model, and a guide written for AI coding tools so the codebase stays easy to extend.
The live demo is the real product with demo data — sign in with a tap, sell from the open shift, process a return and close the drawer. Then read the source and run the suites yourself.
npm installnpm run buildDEMO_MODE=true npm start