Retail & Wholesale
AgiloStock: Inventory, Vendor Credit and Point of Sale in One Browser Tab
A multi-tenant SaaS we designed, built and run for shops and wholesale businesses: stock across every store, goods out with vendors on credit, and an optional point of sale. Live at agilostock.com.

- Built for
- Agilotek (in-house product)
- Sector
- Retail & Wholesale
- Type
- In-house SaaS product
- Timeline
- Oct 2026 – present
- Status
- Live at agilostock.com
- Stack
- Next.js, TypeScript, Prisma, MySQL, Playwright
What needed solving
Shops and wholesalers that hold stock in several places, and hand goods to vendors on credit, often track it all in registers and spreadsheets. Nobody can say with confidence what is on the shelf, what is out with which vendor, or who owes what, and every correction erases the history that would explain the numbers.
- 01Stock is spread across shops, warehouses and vendors, and has to be counted separately for each.
- 02Goods handed to vendors on credit need a running balance that survives price changes.
- 03Corrections must never erase history, or the numbers can no longer be explained.
- 04It has to work at a busy counter with a cheap barcode scanner or just a phone camera.
The decisions that shaped it
One barcode per variant
Every product variant (name, size and colour) gets one permanent Code 128 barcode. Stock is a quantity per store and per vendor.
One path for every change
Receiving, selling, transferring, assigning to a vendor and adjusting all run through a single transactional function, so balances and the log can never disagree.
Append-only by design
The movement log, vendor payments and expenses are never edited or deleted. Mistakes are fixed with reversal entries.
Roles from day one
Owner, store manager, cashier, vendor manager and vendor cashier each see only what their job needs. Cost prices stay with the owner.




What we built
We built AgiloStock as a browser-based SaaS. Every product variant gets one permanent barcode, and every stock change, whether a sale, transfer, vendor assignment or adjustment, runs through a single transactional function that updates balances and writes an append-only movement log in the same step. Stock can never go negative, mistakes are fixed with reversal entries rather than edits, and each login is scoped to its own store or vendor shop.
Scan & Stock
Receive, sell, transfer, assign to or return from a vendor, or adjust, by USB or Bluetooth scanner, phone camera or typing.
Point of sale
Line and bill discounts, split payments, held sales, printed receipts, and returns against the original receipt.
Vendor credit and ledgers
Vendor accounts debited at the day's price, payments and returns credited, plus stock and sales ledgers with CSV export.
Analytics and expenses
Best and worst sellers, revenue, profit, money collected, who owes the most, and net profit after expenses.
Architecture
01Browser
- Owner, staff and vendor logins
- Scanner or phone camera
02Application
- Next.js app
- One transactional stock function
- Role checks on every route
03Data
- MySQL via Prisma
- Append-only movement log
- Versioned migrations
Milestones, as they shipped
- 01
15 Oct 2026
Foundations
Initial schema and the stock ledger, derived from the movement log.
- 02
16 Oct 2026
SaaS and point of sale
Multi-tenant subscriptions, email invitations and POS sales.
- 03
17 Oct 2026
Returns and plans
Customer returns against receipts, store label tags and plan features.
- 04
20–21 Oct 2026
Vendor shops
Vendors as businesses with their own shop, sales and logins.
- 05
3–4 Nov 2026
Expenses and stock requests
Location expenses with net profit, and vendor stock requests the owner fulfils or declines.
Where it stands
Owner, store manager, cashier, vendor manager and vendor cashier, each limited to their own store or shop.
Receive, sell, transfer, assign to vendor, return from vendor and adjust. Stock can never go below zero.
Every movement is recorded with who did it and when, so the numbers can always be explained.
What's next. AgiloStock is live and sold by subscription. Accounts are set up by Agilotek, and new features ship as versioned migrations.
Other projects
Want something built like this?
Tell us what you're trying to automate, build, or fix. We'll reply with next steps within one business day.


