utsav@homelab: ~/projects/khatiwada-pos, bash
[home] [× back to board]
utsav@homelab:~$ cd ~/projects/khatiwada-pos

KHATIWADA POS SAAS

> U1 · CPU, FROM ONE FAMILY SHOP TO A RETAIL PLATFORM

utsav@homelab:~/projects/khatiwada-pos$ cat PROBLEM.md

My family runs a small grocery store in Kathmandu. Sales used to live on pen and paper: no product list, no sales history, no way to see which items sold. In July 2026 I built a browser based point of sale for the shop, and it has been the shop's till every day since. It first ran on a Raspberry Pi in Sydney and now runs on my Proxmox homelab, reached privately over Tailscale. I then turned the same code into a multi tenant product (the original KPOS SaaS), and in late 2026 started a ground up rebuild, KPOS Grocery, designed for shops that lose power and internet.

utsav@homelab:~/projects/khatiwada-pos$ whoami --role

Sole developer and operator: product decisions, architecture, code review, testing, deployment and support for the family shop. I use AI coding agents as pair programmers, and every change goes through review and the automated test suites before it is merged.

utsav@homelab:~/projects/khatiwada-pos$ cat ARCHITECTURE.md

FAMILY SHOPSingle shop Flask app, one container on the homelab services VM, Tailscale only ORIGINAL SAASOne Docker container per shop on a cloud VPS behind Caddy, a master dashboard, and a provisioning agent the dashboard reaches through one Unix socket KPOS GROCERYThree parts: Core (shared till engine), Accounts (owner sign-in, staff, tills) and Grocery (the shop product). The till works offline first and syncs sales when the connection returns

utsav@homelab:~/projects/khatiwada-pos$ docker inspect kpos --format stack

BACKENDPython · Flask · SQLite FRONTENDPlain HTML / CSS / JavaScript, no framework, installable on phone, tablet and desktop HOSTINGDocker, Caddy, Tailscale; homelab for the family shop, cloud VPS for the SaaS and dev stacks TESTINGpytest, browser suites, local test tills for screen checks

utsav@homelab:~/projects/khatiwada-pos$ ./features --list

▸ Cash sale that keeps working offline, with QR and credit (udhaaro) payments ▸ Weighed goods by the kilogram with a quick weight pad ▸ Camera barcode scanning and Quick Add for unknown items ▸ English / Nepali interface with Bikram Sambat dates ▸ Receipts, voids, refunds, price override and split payment ▸ Customer credit book (khata) ▸ Admin for products and categories behind a manager PIN ▸ Owner console: staff, registered tills, password reset by email, suspension lock

utsav@homelab:~/projects/khatiwada-pos$ cat CHALLENGES.md

▸ Load shedding and patchy internet: the till has to finish a sale without a server and sync it later without double counting ▸ Nepali shop habits: Bikram Sambat dates, loose rice and dal by weight, and credit customers who settle up later ▸ Tenant isolation in the original SaaS, plus a 2026 security review that found one secret shared across shops. The rebuild was designed so that pattern is not repeated ▸ Getting locked out of the VPS over SSH in July 2026, which led to break glass console access, tested backups and health monitoring

utsav@homelab:~/projects/khatiwada-pos$ ls screenshots/

KPOS Grocery till on a tablet: product tiles on the left, a current sale of rice, dal, milk, snacks and noodles on the right, total Rs 950
KPOS Grocery till, tablet. Weighed items (kg) sit next to packet goods in one sale.
Cash payment screen with total due Rs 950, quick cash buttons, a number pad, and QR and credit options
Cash payment. Exact cash, note buttons, QR or credit (udhaaro).
KPOS Grocery admin product list on a desktop screen
Admin, products. Behind a manager PIN on the till.
Owner console showing one registered till named local browser, active, with rename, replace and revoke buttons
Owner console, registered tills. Store name is a local test store.
The original KPOS cashier screen from August 2026 with category tiles and a current sale of four items
Original KPOS cashier, Aug 2026 (previous design, kept for history).
The original KPOS sales reports page with daily, Bikram Sambat monthly, weekly and Gregorian monthly totals
Original KPOS sales reports, Aug 2026, in both calendars.
The same KPOS Grocery till on a phone screen
Same till on a phone.
Weight pad dialog on a phone with quick kilogram buttons for Basmati Rice
Weight pad for loose goods.

All products, prices and sales in these screenshots are illustrative demonstration data on local test tills, not the shop's sales. KPOS Grocery screens: captured 10 Nov 2026 from the current development build. Original KPOS screens: captured 21 Aug 2026 with a seeded demo catalogue.

utsav@homelab:~/projects/khatiwada-pos$ make test

KPOS Grocery is covered by automated suites in each repository: as of 10 Nov 2026, Core 1,155 tests, Grocery 1,268, Accounts 955, plus database and admin suites. Changes are also checked on a local test till in Chrome at phone, tablet and desktop sizes before review. The original family shop app shipped with a 54 check suite in July 2026.

utsav@homelab:~/projects/khatiwada-pos$ cat RESULTS.md

The family shop has used the original POS every day since July 2026. The original SaaS is live for a test store and one pilot shop. KPOS Grocery is running on a development server only: no shops use it yet.

utsav@homelab:~/projects/khatiwada-pos$ kpos status

In useFamily shop POS, daily since July 2026 LiveOriginal KPOS SaaS: a test store and one pilot shop On devKPOS Grocery: till, payments, khata, refunds, admin, owner console. Built, tested and merged; no shops use it yet Planned24 hour offline sign-in lease (design agreed, not built) PlannedOperator console, billing and self sign-up

utsav@homelab:~/projects/khatiwada-pos$ git log --reverse --milestones

2026-07-02Project start: Flask and SQLite, cashier screen with scan, search and running bill, admin panel, Quick Add for unknown barcodes 2026-07-03Hardened and deployed for the shop: a 54 check test suite, Docker with gunicorn, HTTPS behind Caddy over Tailscale 2026-07-04English / Nepali toggle, live Bikram Sambat date, Nepali product names 2026-07-22Original SaaS login flow live: store name and password, then a signed handoff into the shop's own container 2026-07-30SSH lockout on the VPS; break glass access, tested backups and a 15 minute health heartbeat followed 2026-08-20Self service shop creation from the master dashboard through a provisioning agent behind one Unix socket; per store payment QR upload 2026-10Family shop app moved from the Pi to the Proxmox homelab 2026-10 to 2026-11KPOS Grocery rebuild: offline first till, khata, refunds, split payment, owner login and console, suspension lock, versioned releases NEXTOffline sign-in lease, then operator console and billing before any shop moves across
utsav@homelab:~/projects/khatiwada-pos$