An Offline-First POS With Barcode Checkout and FBR Invoicing
POS System by THS is a Windows point-of-sale built for a computer-accessories shop: scan a barcode, complete the sale, keep stock accurate and issue FBR-compliant invoices — all without depending on an internet connection. It was built on Electron, React and SQLite so the counter keeps running whatever the connection is doing.
The challenge
What was manual, slow or missing
A computer-accessories counter moves fast and carries a long tail of small, similar items — cables, adapters, memory, peripherals — where picking the wrong variant or mistyping a price is easy. Shops in this category often run sales through a generic invoicing tool or a spreadsheet, count stock by walking the shelves, and reconcile at the end of the day from memory and paper.
The brief added two hard constraints. First, the till had to work offline: a sale cannot wait for a router to reconnect, and cloud POS products that stall without connectivity were not acceptable. Second, invoices had to meet the requirements of FBR, Pakistan's Federal Board of Revenue, which sets specific invoice formatting and reporting rules for registered retailers. On top of that, the owner wanted plain reports — daily sales, stock levels, best-selling items — without exporting anything to another program.
The solution
What TaimurTools built
We built the POS as an Electron application with a React front end and a local SQLite database, which gives the shop a proper desktop program on its existing Windows PC. Everything the counter needs — product lookup, cart, payment, receipt — runs against the local database, so checkout speed and availability do not depend on the network at all. React keeps the checkout screen responsive and easy to extend, and Electron packages the whole thing into an installer the owner can set up on a second machine.
Checkout is barcode-led: scanning an item adds it to the sale at its current price, and completing the sale decrements stock. The inventory module holds products, variants, cost and selling prices, and quantities, with low-stock visibility so reorders happen before an item runs out. The invoicing module produces FBR-formatted invoices at the point of sale, and the reports section summarizes sales by day, product and period so the owner can close the day from one screen.
SQLite was the right store for this job: a single local file, no database server to run, fast enough for a busy counter, and simple to back up. The architecture also leaves a clear path to sync — because the app owns its data locally, a later step could push sales and stock to a central store whenever a connection is available, without changing how the till works.
How it works
How the POS works
A barcode scan adds the item at its current price. Completing the sale decrements stock automatically.
Product lookup, cart, payment and receipt run against a local SQLite database, so checkout never waits for the connection.
Invoices are generated at the point of sale in the format required by Pakistan's Federal Board of Revenue.
Products, variants, cost and selling prices and quantities live in the inventory module, with reorder visibility.
Daily, per-product and per-period reports without exporting anything to another program.
Key features
What's inside
Barcode checkout
Scan to add items at current pricing; completing the sale updates stock automatically.
Inventory management
Products, variants, cost and selling prices, and quantities with low-stock visibility.
FBR-compliant invoicing
Generates invoices in the format required by Pakistan's Federal Board of Revenue at the point of sale.
Sales and stock reports
Daily, per-product and per-period summaries so the owner can close the day from one screen.
Works fully offline
Every function runs against a local SQLite database — no connection needed to make a sale.
Installable on Windows
Packaged with Electron as a standard installer for the shop's existing PCs.
Business outcome
What changed
Outcome: Sales, stock and compliant invoicing moved from a generic invoicing tool, spreadsheets and shelf counts into one program that keeps working when the internet does not.
- No dependency on connectivity at the counter
- Stock updated by the sale itself rather than by a walk-round
- Invoices meet FBR formatting at the moment of sale
- A clear path to sync with a central store later
Outcome figures for this engagement are not published. Verified client metrics are added only with a source and written approval.
Technology
Built with
Services used: Ecommerce Automation, Custom AI Development, Ecommerce Development
Need something similar?
Tell us what you are building. We will show you how a similar system would work for your business, then send a fixed-fee proposal.