Pharmacy and footwear retail, Pakistan
Naqdibook: A POS System That Works Seamlessly Online and Offline
A Laravel application packaged with Electron so the shop keeps billing during power and connectivity cuts.
- Laravel
- Intertia
- React
- Electron
- MySQL

Naqdibook — A POS System Built to Work, Online or Offline
The Problem
Most point-of-sale systems force a business to pick a side: fully cloud-based, dependent on a live internet connection, or fully offline, cut off from the convenience of remote access and cloud sync. Neither option matches how retail actually works. Internet connections drop, businesses grow to multiple locations, and staff need the system to just keep running no matter what. Our client needed a POS that didn't force that trade-off.
The Solution
Deixtra built Naqdibook, a desktop point-of-sale application wrapped in Electron, built on a Laravel backend, designed to function fully whether the internet is available or not. When online, Naqdibook can sync and share data across locations and devices. When offline, it switches seamlessly to local operation, so sales, returns, and stock updates never stop.
Naqdibook: Online Mode vs. Offline Mode
Capability | Online Mode | Offline Mode |
|---|---|---|
Sales & checkout | Fully functional | Fully functional |
Data storage | Synced centrally across devices | Stored locally on device (MariaDB) |
Multi-PC visibility | Real-time shared view across locations | Shared only across PCs on the same LAN |
Stock & discount management | Available | Available |
Returns processing | Available | Available |
Speed | Depends on connection quality | Instant, no network latency |
Downtime risk | None, but relies on connectivity | None, runs independent of internet |
Best suited for | Multi-location businesses needing remote visibility | Single-location or LAN-based setups prioritizing uptime |
How It Works
Online mode: Devices sync data centrally, giving the business a shared, up-to-date view across checkout points, useful for multi-location visibility and remote management.
Offline mode: The system runs entirely on local resources, using a device-level database, so checkout, discounts, returns, and stock management continue uninterrupted even without a connection.
Multi-PC LAN sync: For businesses running several checkout stations, we migrated the backend from SQLite to MariaDB, enabling multiple PCs on the same local network to share one live database, independent of internet availability.
No disruption at the point of sale: Whether the connection is up or down, staff use the exact same interface, with no workflow change and no downtime.
What We Built
Hybrid online/offline architecture: Core POS operations run locally by default and sync online when a connection is available.
Secure license activation: Ed25519-based licensing tied to device fingerprinting (derived from motherboard, BIOS, and CPU identifiers) to prevent unauthorized use, with a manual activation flow for edge cases.
Admin panel with TOTP 2FA: Business owners get a secure control panel to manage the system without exposing it to unnecessary risk.
Sales and inventory tools: Discount and return calculations, opening stock management, pre-order sales, Excel import/export, and detailed discount reporting.
Flexible authentication: Username-only login plus a security-question-based password recovery flow, built for staff who aren't always technical.
The Result
What started as a pharmacy POS system evolved, across five development phases, into a fully rebranded retail solution now serving a shoe store business. Today, Naqdibook gives the client the best of both worlds: the reliability of offline operation and the convenience of online syncing, with zero downtime at checkout regardless of connectivity
