BillFast v2 — Offline-First POS, Udhaar Ledger & GST Billing PWA by Anurag KumarBillFast v2 — Offline-First POS, Udhaar Ledger & GST Billing PWA by Anurag Kumar

BillFast v2 — Offline-First POS, Udhaar Ledger & GST Billing PWA

Portfolio project
Anurag Kumar
Built BillFast v2, a production-grade, offline-capable Point of Sale (POS) and digital credit (udhaar-khata) Progressive Web App engineered for high-volume retail shopkeepers. Powered by a FastAPI + SQLAlchemy 2 backend and a Vanilla JS Service-Worker frontend, it handles sub-second counter billing, Hinglish voice parsing, GST accounting, and multi-staff role-based access control.

Key Engineering & Product Features

Offline-First Sync & Idempotency: Queues bills locally in localStorage during network drops and auto-syncs sequentially using client_ref_id idempotency keys to guarantee zero duplicate invoices.
Hinglish & Voice Bill Parser: Converts natural Hinglish and voice input (Web Speech API) into structured itemized bills using a deterministic rule-based parser with optional LLM fallback.
Udhaar Khata, Jama Parchi & Public Passbook: Tracks customer credit balances and partial payments (Jama Parchi receipts) without double-counting sales, paired with unguessable public_token read-only customer passbook links.
Multi-Tenant RBAC: Enforces JWT role separation (owner vs. staff) with live active-staff verification on protected routes.
Barcode Inventory, GST & Profit Engine: Integrates camera barcode scanning (html5-qrcode), automated stock deduction, CGST/SGST slab splitting, historical unit_cost profit snapshots, dynamic UPI QR receipts, and A5 PDF / UTF-8 CSV exports.
Production Hardening & Test Suite: Secured with strict CORS origin validation, environment secret enforcement, and an isolated 32-test pytest suite covering auth, RBAC, GST math, inventory, and idempotency.

Tech Stack

Python • FastAPI • SQLAlchemy 2 • Pydantic 2 • PostgreSQL / SQLite • Vanilla JavaScript (ES6) • PWA Service Worker • PyJWT

Live Links

0 likes · 1 view · Nov 26, 2026

Offline-capable retail POS & GST billing PWA with FastAPI, SQLAlchemy, JWT owner/staff RBAC, idempotent offline sync queue, Hinglish voice bill parser, dynamic

Tags