Agilotek

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.

Real project, built by AgilotekVisit agilostock.com
AgiloStock dashboard showing units in stores, stock value, vendor balances and recent activity
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
5user roles, each with its own permissions
6stock actions, all through one transactional function
0edits or deletions allowed in the movement log
01The Problem

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.
02Our Approach

The decisions that shaped it

01

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.

02

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.

03

Append-only by design

The movement log, vendor payments and expenses are never edited or deleted. Mistakes are fixed with reversal entries.

04

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.

AgiloStock point of sale checkout
Point of sale: scan or type an item and the bill builds on the right.
AgiloStock Scan and Stock screen
Scan & Stock: pick an action, choose the store, scan. Every scan is saved instantly.
AgiloStock vendor page with items held and history
Vendor page: what the vendor holds now and the full history.
AgiloStock barcode labels ready to print on A4
Barcode labels printed on ordinary A4 paper.
03The Solution

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

  1. 01Browser

    • Owner, staff and vendor logins
    • Scanner or phone camera
  2. 02Application

    • Next.js app
    • One transactional stock function
    • Role checks on every route
  3. 03Data

    • MySQL via Prisma
    • Append-only movement log
    • Versioned migrations
04How We Built It

Milestones, as they shipped

  1. 01

    15 Oct 2026

    Foundations

    Initial schema and the stock ledger, derived from the movement log.

  2. 02

    16 Oct 2026

    SaaS and point of sale

    Multi-tenant subscriptions, email invitations and POS sales.

  3. 03

    17 Oct 2026

    Returns and plans

    Customer returns against receipts, store label tags and plan features.

  4. 04

    20–21 Oct 2026

    Vendor shops

    Vendors as businesses with their own shop, sales and logins.

  5. 05

    3–4 Nov 2026

    Expenses and stock requests

    Location expenses with net profit, and vendor stock requests the owner fulfils or declines.

05By the Numbers

Where it stands

5user roles, each with its own permissions

Owner, store manager, cashier, vendor manager and vendor cashier, each limited to their own store or shop.

6stock actions, all through one transactional function

Receive, sell, transfer, assign to vendor, return from vendor and adjust. Stock can never go below zero.

0edits or deletions allowed in the movement log

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.

06More Work

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.