BLOG POST
How We Built an Offline-First POS System
Published July 22, 2026
Most POS systems assume you have a reliable internet connection. Walk into any retail store in many parts of the world, and that assumption falls apart. When connectivity drops, cloud-only POS systems stop working — and that means lost sales, frustrated customers, and employees scrambling for paper receipts.
We built Vendrex to solve this problem. The result is a production POS platform that handles sales, inventory, purchasing, employee management, and financial reporting — all designed to work fully offline. Here is what we learned.
Why Offline-First Matters
The core insight behind Vendrex is simple: businesses cannot control their internet provider. A POS system that stops working because the Wi-Fi is down is not a POS system — it is a liability. We designed Vendrex with a local-first architecture where every piece of operational data lives on the device. The cloud is a sync target, not a requirement.
The Sync Protocol
The most significant engineering challenge was designing a sync protocol that could handle extended offline periods — days or weeks without connectivity. The system tracks changes at the record level, maintains a sync queue that survives app restarts, and handles conflicts through timestamp-based reconciliation.
When the device reconnects, changes are transmitted in order. If the same record was modified on two devices, the most recent change wins. This strategy is simple, predictable, and has proven reliable in production.
Multi-Currency Done Right
Many POS systems treat multi-currency as a display feature — convert the price and move on. Reality is more complex. A customer may pay in one currency while the product cost of goods sold is tracked in another. Vendrex stores every transaction with its original currency, the settlement currency, and the accounting base currency, alongside the exchange rate at the time of the transaction.
Barcode Scanning in the Wild
Barcode scanning sounds simple until you try to scan a faded, damaged label under fluorescent lighting with a phone camera. We spent significant time tuning focus parameters, lighting detection, and decode algorithms to achieve acceptable scan rates in real-world retail environments.
The Result
Vendrex is live and in production. It handles thousands of transactions across multiple businesses. It works online, offline, and everywhere in between. The full case study with architecture details is available on our site.
