The one rule: the bill never waits
Most cloud billing tools assume a steady connection. Plenty of Indian shops don't have one: the router restarts, the mobile data runs out, the power goes and the inverter takes the computer but not the modem. If the software needs the internet to print a bill, the queue at the counter grows.
So VanikOne is offline-first. Every counter, tablet and phone carries everything it needs to sell, print and report on its own. The internet is how devices share work, not how they do it. When the connection comes back, everything catches up by itself.
That single decision shapes every layer below.
The stack at a glance
↕ records sync over HTTPS · live updates pushed back ↕
website: static pages on DigitalOcean App Platform, separate from the app servers
The desktop app: native, light, and fast to start
Shop computers are rarely new. Our desktop app had to start quickly and run smoothly on an ordinary Windows PC with 4 GB of memory, so we built it with a native C++20 core and a user interface in plain HTML, CSS and JavaScript.
- The window is drawn by the browser engine the operating system already has: Microsoft WebView2 on Windows and WebKit on macOS. There is no bundled browser, so the installer stays small and the app opens fast.
- The data lives in a SQLite database on the computer. Search across thousands of items or a year of bills runs locally, at local speed, with no network round trip.
- The core libraries: networking runs on libcurl, cryptography on libsodium, and image processing for face attendance on OpenCV.
- No heavy frameworks: the interface uses no UI framework or build step. Screens are written by hand, and keyboard-first billing is designed in from the start: scan, type, F9 to pay.
The Android app: phones, tablets, and the shop floor
Waiters taking table orders, owners checking the day's sales from home, a tablet at the door for attendance: Android covers the work that happens away from the counter.
- Kotlin and Jetpack Compose with Material 3, laid out separately for phones and tablets rather than stretched from one to the other.
- Background sync through Android's WorkManager, so records keep flowing even when the app isn't on screen.
- Barcode scanning with CameraX and ZXing, entirely on the device.
- Bluetooth receipt printing straight to 58 mm and 80 mm thermal printers.
- Wide support: it runs on Android 8.0 and newer, which includes the budget phones many teams actually carry.
The server: PostgreSQL, rules in the database, hosted in India
The server's job is narrow but critical: accept records from every device, decide what they mean for the business, and send the result back out to everyone else.
- The API is written in C++ on the Drogon web framework. It is small, fast, and easy on memory.
- The data lives in PostgreSQL. The important business rules, such as how a payment settles bills, how stock is counted and how numbers are issued, are written as database functions. Each upload is applied in a single transaction: either all of it lands, or none of it does.
- Schema changes only ever move forward. Each database migration is checksummed, and the server refuses to start if an applied migration has been altered. An upgrade never quietly rewrites history.
- Hosting is on DigitalOcean in Bangalore, with nginx in front and backups kept in India. Your data does not leave the country to be processed.
How sync works: records, not edits
Syncing is where offline-first apps usually go wrong: two devices change the same thing, and one change silently wins. We avoided the problem by changing what gets synced.
- Every action becomes a record. A sale, a payment, a stock count or an attendance mark is written once, on the device, and never edited afterwards. A correction is a new record that refers to the old one.
- Records wait in an outbox. Offline, they simply queue on the device. Each carries its own identity, so sending one twice is harmless: the server recognises it and does not double-count.
- The server decides the money. When records arrive, the server applies them in order. Once settled, money decisions are final. A record that arrives late adjusts the books going forward; it never rewrites a bill a customer already holds.
- Changes are pushed back live. Each device holds an open stream to the server. When anything changes, every other device hears about it within seconds and pulls just the new records. If the stream is blocked, devices fall back to checking on a timer.
- Problems are visible. If the server ever refuses a record, for example because it breaks a business rule, it is never silently dropped. It appears in Not Saved Online for someone to fix.
The server keeps a rolling 30-day window of changes for devices that have been away. A brand-new device downloads the business's current state, then its history.
Getting the money right
Billing software that is off by a paisa is broken. A few rules hold everywhere in VanikOne:
- Exact amounts: money is stored as whole paise and quantities as exact integers, never as floating-point numbers, which drift.
- Fair GST splits: CGST, SGST, UTGST and IGST are split with a largest-remainder method, so the parts always add back up to the total.
- The same answer everywhere: the same calculation runs on the desktop, the phone and the server, and automated tests check that all three agree to the paisa.
Printing that matches everywhere
A bill printed on the counter, shared from a phone, or saved as a PDF should be the same bill. VanikOne has one document renderer that lays out invoices, receipts, credit notes, statements and order slips:
- Full-page sheets: A4 and A5, portrait or landscape. Long bills carry their totals forward from page to page.
- Thermal rolls: 80 mm and 58 mm, with type made bolder so thermal heads print it cleanly.
- Bluetooth printers: pages are rasterised to ESC/POS and sent straight to the printer.
- One output across platforms: the Android version is checked against the desktop's output byte for byte, so the two never drift apart.
Face attendance, kept on the device
Staff can mark attendance by face on a counter computer or a tablet at the door. It works without the internet, and faces are handled carefully:
- Recognition on the device: faces are detected with the YuNet model and recognised with SFace, both running locally through OpenCV.
- Liveness check: a simple gesture, chosen at random, means a printed photo or a phone screen cannot pass.
- No photos stored: a face becomes a numerical template, and no picture is kept.
- Encrypted before it leaves: templates are encrypted on the device so they can move between the business's attendance devices. The server stores only the encrypted form, and the key stays with the business's attendance devices.
Security in layers
- Encrypted connections: every connection uses HTTPS.
- Device keys: every device has its own cryptographic key and proves who it is when it connects, so a password alone is not enough to sign in from a new device.
- Hashed credentials: PINs and passwords are stored only as slow, salted hashes.
- Bounded offline access: sessions expire, and a device can work offline only for a limited time before it must check in again.
- Server-side roles: the server checks every request against the user's role and business, rather than trusting the app to hide what someone shouldn't see.
- Leaving is supported: a business can take a complete, integrity-checked export of its data.
The full commitments are in our Privacy Policy and Data Sharing terms.
Packages as data: how features switch on
Each VanikOne subscription is a package: a set of feature codes such as sales, stock, purchases, task boards, tables, bookings, team and memberships, plus a device limit and an end date. We wanted changing a package to feel instant and to never need a new build, so the package is just more data.
- Features sync like any other record. A package change travels down the same live stream as a bill or a price change, and every open menu re-reads it. Add Bookings for a salon and the screen appears on the counter and the phones within moments.
- Plan and role are two separate checks. The package decides what the business can use; the owner's roles decide what each person can use. The menu shows the difference: a gold star means "not in your package, open to know more", while a disabled entry means "not given to your role".
- The server enforces, the menu explains. Hiding a screen is a courtesy, not security. Every request is checked on the server against the subscription, the package's features and the person's role.
- A lapsed subscription is "held", never "refused". When the server turns work away because a term ended, the apps keep that work queued in order rather than discarding it, and send it after renewal. A late payment should never cost a shop its bills or put sold stock back on the shelf.
- Removing a feature never removes data. Records made with it stay, and return to view if the feature comes back.
The commercial side of this is set out in our Terms of Service.
Smart Insights, without the hype
Every morning VanikOne highlights what changed: what's selling, what's running low, who owes money, which staff are late. These come from rules and statistics over your own records, worked out on your device. We don't call it AI, because it isn't, and it never sends your numbers to a third party to be analysed.
How we test
- Desktop and server: hundreds of automated tests across the native code, the database functions and the interface. The interface is driven in a real browser engine with Playwright.
- Android: unit tests check business rules, layouts and printed output against the desktop's own results.
- Database migrations: every migration is run from scratch on a fresh database, with realistic fixtures, before it ships.
- Real printers: printed documents are rendered to PDF and checked for exact paper widths, page counts and scannable QR codes.
And this website?
Plain HTML, CSS and a little JavaScript, with no framework and no build step. It is served by DigitalOcean App Platform through its content delivery network, completely separate from the servers that run your business. It sets no cookies and runs no trackers.
Want to see it running? We're happy to give your business a walkthrough on your own counter, phone or tablet.