The developer behind Bazaar Ledger shares insights into how building an offline-first shop bookkeeping app shaped its design and functionality. Source: dev.to.
What Offline-First Means in Practice
Every transaction—sales, payments, stock movements—is recorded directly on the device first.
There is no waiting for a network connection. A customer receives a receipt instantly, without any loading spinner.
This design ensures that the shop owner can continue operating even without internet access.
The Ledger Architecture
Each transaction is posted to a double-entry accounting ledger.
This means every sale, purchase, and expense is recorded with both a debit and a credit entry.
As a result, over 100 reports in the app all reflect the same underlying data—different views of one consistent ledger.
Security and Data Privacy
If the cloud feature is enabled, data is sealed on the device before upload.
The server never receives the full data set or keys to decrypt it.
As a result, the server cannot search, repair, or analyze the shop’s financial records.
Design Trade-offs and Limitations
Features that require reading data must be opt-in and run on the device.

Once a bill is posted, it cannot be edited in place.
Instead, corrections are handled by cancelling the original bill and creating a new one, both stored behind a PIN.
This approach increases the effort to build but makes audits simpler and more transparent.
AI Assistant Functionality
The AI assistant is optional and limited in scope.
Simple commands are processed directly on the phone.
When the phone is uncertain, the assistant uses Anthropic’s Claude—but only receives the specific data needed for that one request.
Users must review and save any response by default.
App Availability and User Feedback
The app is free for one shop at a time.
The developer is seeking feedback from other Flutter developers on two key issues:
- How to test sync conflicts when two counters sell the last unit offline.
- How to manage thousands of ledger rows on low-end phones.
The app is available on Google Play: Bazaar Ledger on Google Play.
Sources & further reading
Featured image: original publisher image. Via original publisher. Image source

