INITIALIZING...
tushar jain.
Offline-First POS & Restaurant System

Billing Pro POS

An enterprise-grade, offline-first Point of Sale (POS) and restaurant billing platform featuring sub-10 second billing, ESC/POS Bluetooth & USB thermal printing, dynamic UPI Bharat QR generation, and Dexie.js IndexedDB storage.

How I got this idea

I noticed that small restaurants, cafés, and food trucks struggle during rush hours with cloud-dependent POS systems. When internet drops, order punching halts, thermal printers disconnect, and billing freezes. I wanted to build a zero-cloud-dependency, high-speed POS that works 100% offline, communicates directly with hardware thermal receipt printers over Bluetooth/USB, and generates dynamic UPI payment QR codes instantly.

Problem

  • Cloud-based POS systems fail during peak-hour network drops, resulting in lost sales, queue delays, and frozen counters.
  • Counter cashiers require sub-10-second order punching speed, which heavy cloud roundtrips and complex interfaces cannot sustain.
  • Integrating hardware thermal printers (58mm/80mm) and dynamic UPI QR code payments on mobile and tablet terminals typically requires expensive proprietary POS hardware.

Solution

  • Engineering Approach: Built a 100% offline-first POS architecture leveraging client-side IndexedDB persistence and native Capacitor hardware bridges.
  • Architecture: Developed using React 19, TypeScript, and Vite with Dexie.js IndexedDB for sub-millisecond local queries; integrated Capacitor 8 for native Android Bluetooth SPP/USB OTG thermal printing; and embedded SheetJS/jsPDF for offline sales reports.
  • What I Personally Built: Designed the dual-device responsive cashier station (mobile phone & tablet split-view), implemented the native ESC/POS thermal printer driver with 1-bit bitmap dithering, programmed dynamic UPI QR generation, and configured offline database backup/restore with master PIN security.
  • Current Status & Result: Production-ready offline POS platform supporting web and native Android APK deployment with sub-10 second billing and hardware printing.

POS Architecture & Hardware Integration

100% Offline-First
<10sPunch Speed
58 / 80mmThermal Print
0 MDRDynamic UPI QR
0msCloud Lag
Storage Engine:Dexie.js (IndexedDB) Persistent DB
Thermal Driver:ESC/POS (Bluetooth SPP & USB OTG)
Payment Bridge:Dynamic Bharat UPI QR Generator
Reporting Engine:SheetJS (.xlsx) + jsPDF AutoTable
React 19TypeScriptViteCapacitor JSDexie.js (IndexedDB)SheetJSjsPDFQRCode.jsAndroid SDK

Hardest Technical Challenge

Implementing 100% offline-first POS operations with direct native ESC/POS thermal receipt printing over Bluetooth SPP & USB OTG. Solved by writing a client-side ESC/POS command compiler and HTML canvas rasterizer that translates receipt typography, restaurant logos, and UTF-8 characters into 1-bit dithered bitmap arrays, streaming raw command buffers directly to 58mm and 80mm thermal print heads without external print servers or cloud dependencies.

Project Demo / Interface

Live Application Walkthrough & Video DemoVideo MP4

Live walk-through demonstration: High-speed order punching, dish category navigation, live cart modifiers, ESC/POS thermal printing preview, and dashboard analytics.

1. High-Speed POS Cashier Station (Dual-Pane Touch Grid)
Billing Pro POS Billing Screen
2. Real-Time Financial & Sales Analytics Dashboard
Billing Pro POS Dashboard Screen

What I learned

  • Offline-first database architecture, schema migrations, and indexing using Dexie.js (IndexedDB).
  • ESC/POS byte-level protocol specifications, bitmap dithering algorithms, and thermal printer hardware control.
  • Capacitor JS native Android bridging, Bluetooth SPP socket streaming, and USB OTG communication.
  • High-speed POS UX design with 48px tactile touch targets, dual mobile/tablet viewports, and dynamic UPI QR payment settlement.