M. Ayan Naseer
← Selected work

Live · Full-stack SaaS

Stowcell

Inventory and point-of-sale software for shops with several branches and a warehouse.

A multi-tenant SaaS that runs a small retail or wholesale business end to end: stock across warehouses and branches, transfers between them, a POS with customer credit and cash shifts, purchase orders, and reports. It stays fast with a million products in one shop.

Try the demoWatch the full tour

Built and run by CodingStack.

Overview · 3:03 · narrated, with captions

The problem

Small businesses in Pakistan with a warehouse and a few shops (wholesalers, mobile and electronics, hardware, auto parts, garments) usually run on registers, Excel and WhatsApp. They can't see what each branch holds, stock goes missing between the godown and the shops, and credit customers (udhaar) are tracked in notebooks.

Enterprise ERPs cost too much and take too long to set up. Stowcell gives them one system for stock, transfers, selling and credit, priced for a small shop and usable from the first day.

What it does

Everything here is built and running in production.

Selling (POS)

  • Fast till with barcode scanning (USB scanner), discounts with a cashier limit, and an 80mm printed receipt
  • Customers with credit (udhaar): credit limits, a running statement, and payments taken at the till
  • Returns and refunds, with damaged items kept out of stock
  • Cash shifts with a blind cash count at close
  • Sales history and reports with profit per day

Stock across locations

  • Warehouses and branches, with a stock-by-location view of every product
  • Two-step transfers: sending puts stock “in transit”, and receiving records any shortage or damage; printable delivery slip
  • Separate low-stock levels for each branch, alerts, and a “restock this branch” button that fills in a transfer
  • Quick stock update grid: count or add and remove many products at once, by scanning, pasting or CSV, with a history that can be reversed
  • Full movement history and an audit log of every change

Buying

  • Suppliers with linked products, and purchase orders that are created, sent, and received in full or in part

Reports

  • Stock valuation, value by location, movements, waste and adjustments, low stock, transfers, and sales, all exportable to CSV

Running the business

  • Five roles: owner, manager, staff, cashier and viewer. Staff and cashiers can be limited to their own branches.
  • Team invites by email, an onboarding wizard, and shop settings (currency, timezone, custom product fields)
  • Real-time updates across open tabs, typo-tolerant search, and bulk CSV product import with live progress
  • SaaS billing built in: free trial, Starter, Business and Pro plans with location and user limits, grace period, read-only and pause
  • Platform admin page for managing every shop, plus Terms and Privacy pages

How it's built

Made to stay fast and correct with a million products in one shop.

products in the shop it's tested against, with 2 million stock records
1M
stock search
7 s → 5 ms
value-by-location report, then cached
34 s → ~5 s
backend tests, run in CI
300+
React appWeb + POS
Express APITypeScript
BullMQ workers8 queues
MongoDBReplica set
Meilisearch handles search. The stack runs as Docker Compose on a VPS, deployed with Coolify behind Traefik.
Built for scale
Every list and report pages through an index first, prices are copied onto stock records so value reports avoid joins, and search runs on Meilisearch.
Correct stock under concurrency
Every multi-line stock change (sale, return, transfer, quick update) goes through one service in a MongoDB transaction. Requests carry client IDs, so a retried request never doubles a sale.
Multi-tenant, with two deployment modes
A DEPLOYMENT_MODE flag runs the same codebase as a hosted SaaS or a single-tenant self-hosted stack. Tenant isolation is enforced in the data layer and in request middleware.
Location-scoped access
Staff and cashiers see and act only on their assigned locations, enforced on the server for every stock, transfer, alert and POS endpoint.
Background work stays off the request path
8 BullMQ queues handle alert checks, search sync, dashboard stats, CSV imports and email.
Tested and checked
300+ backend tests (Vitest with an in-memory MongoDB). CI on GitHub Actions runs a dependency audit, typecheck, lint, tests and builds. A security audit was completed and its findings fixed in November 2026.

Tech stack

Frontend
  • React 19
  • Vite
  • TypeScript
  • Tailwind CSS 4
  • shadcn/ui
  • TanStack Query, Table and Virtual
  • React Router 7
  • Zustand
  • Socket.IO Client
  • Recharts
  • React Hook Form + Zod
Backend
  • Node.js 24
  • Express
  • TypeScript
  • Mongoose 8
  • BullMQ
  • Socket.IO
  • Meilisearch
  • JWT with refresh-token rotation
  • Zod
  • Resend (email)
  • Helmet, rate limiting, input sanitising
Data
  • MongoDB (replica set, multi-document transactions)
  • Redis (queues, cache)
  • Meilisearch (search)
Infra
  • Docker Compose on a VPS
  • Coolify with Traefik (automatic Let's Encrypt TLS)
  • Shared MongoDB replica set
  • GitHub Actions CI

Try the demo

A public demo shop on the live app. No sign-up needed.

Rehman Electronics

A made-up mobile and electronics business in Lahore, with a main godown (warehouse) and three shops: Hall Road, Gulberg and Johar Town. It holds about 100 products in 11 categories, 4 suppliers, customers on credit, and 60 days of trading history: sales, returns, cash shifts, transfers, purchase orders, stock counts and low-stock alerts. All of it was made through the app's own services, so stock, ledgers and reports agree.

Every login uses the password Demo1234

  • OwnerStart here

    owner@rehman.example

    Everything: dashboard, all reports, team, settings

  • Manager

    manager@rehman.example

    Day-to-day running: stock, transfers, purchase orders, reports

  • CashierHall Road Shop

    cashier@rehman.example

    The POS-only screen: selling, returns, customer payments, cash-up

  • StaffMain Godown

    godown@rehman.example

    Staff limited to one location: receiving, sending transfers

  • Viewer

    accounts@rehman.example

    Read-only access

Every visitor shares this shop, so anyone can add or change stock and sales, and it gets rebuilt from a seed script. Password, team and settings changes are switched off. Please don't enter real information.

Open the demo

Full product tour

Every page of the app, in six parts. Pick a part to jump to it.

Full tour · 12:37 · narrated, with captions