An offline-first point-of-sale PWA in Cameroon
Published
Caisse Boutique is an offline-first point-of-sale Progressive Web App for small retailers in Cameroon. The Caisse Boutique account described its architecture and technical choices in a French-language dev.to report on 2026-10-02. The author argues that copying Square or Shopify does not address the conditions facing small shops in sub-Saharan Africa. Checkout has to cope with interruptions on MTN and Orange networks, expensive mobile data, and cash handling (the report).
Connectivity and till design
Section titled “Connectivity and till design”The conditions the author names
Section titled “The conditions the author names”The author describes shopkeepers in Douala, including a snack bar in Akwa, a grocery in Deido, and a hardware shop at the Marche Central. Regular 4G and 3G interruptions during peak hours leave a cloud-dependent till waiting for a synchronous API. As the queue grows, the shopkeeper returns to pen and notebook.
Downloading an 80 MB app from the Google Play Store uses the shopkeeper’s own data bundle; many refuse or abandon the download. The report also attributes unnoticed financial losses to employees cancelling receipts without justification, approximate mental arithmetic, and unrecorded stock theft (the report).
A figure is attached to the loss of money. The author says on average a small business without a computerised till loses between 50,000 and 150,000 FCFA every month without noticing (the report).
The architecture table the post prints
Section titled “The architecture table the post prints”The author compares a native application distributed through the Play Store or as an APK with the offline-first PWA. The comparison gives the following values.
| Property | Native app | Caisse Boutique PWA |
|---|---|---|
| Download | 50 to 120 MB of mobile data | Under 2 MB |
| Installation | Mandatory Google Play account | One click on “add to home screen” |
| Network dependency | Often blocked without a connection | Fully autonomous offline operation using a service worker plus LocalStorage or IndexedDB |
| Updates | Heavy manual downloads | Silent, instant updates on each reconnection |
| Compatibility | Limited to recent Android versions | Any smartphone, tablet, or old PC |
| (the report). |
How the offline mode is described
Section titled “How the offline mode is described”The browser caches the HTML components, Tailwind CSS styles, and application scripts on the first opening, using cache-first asset handling. Sales, stock changes, and receipt prints go into what the author calls a secure local queue on the device. When Wi-Fi or mobile data returns, a synchronisation engine sends transactions to the central database in batches without blocking the cashier’s checkout interface (the report).
MDN documents IndexedDB, one of the two storage mechanisms the architecture table names. MDN describes IndexedDB as a low-level API for client-side storage of significant amounts of structured data, including files and blobs, states that it uses indexes to enable high-performance searches of that data, and says that while Web Storage is useful for storing smaller amounts of data it is less useful for larger amounts of structured data. MDN also says operations performed using IndexedDB are done asynchronously so as not to block applications, and that IndexedDB is available in web workers (MDN, IndexedDB API).
The features written for the local market
Section titled “The features written for the local market”Bluetooth printing of 58 mm thermal receipts comes first, with the post stating that the paper receipt remains the absolute symbol of trust for the Cameroonian customer, that the application connects directly to the 58 mm mini thermal printers sold on local markets or on Jumia, and that the receipts automatically carry the legal mentions required by the DGI, which it lists as the NIU, the RCCM, and a sequential invoice number. Second is a WhatsApp receipt sent in one tap when no printer is at hand or the roll is empty. Third is a master PIN belonging to the owner, which the post says locks every sensitive operation, naming cancellation of a sale, an exceptional discount, and a change to the inventory. Fourth is the payment model: the post states that no international bank card is required and that the monthly subscription of 5,000 FCFA per month is payable directly through MTN Mobile Money or Orange Money (the report).
The post quotes feedback from a merchant it names as Papa Jean, who it says runs a neighbourhood grocery in Deido, Douala. The quotation given there, in French, is: “Avant, c’etait le cahier. Quand je devais m’absenter pour aller voir les grossistes, les produits disparaissaient et le compte du soir ne tombait jamais juste. Depuis que la tablette est posee au comptoir, je sais exactement ce qui a ete vendu, franc par franc, meme sans connexion. Les 5 000 FCFA d’abonnement me paient la paix du coeur.” It describes keeping a paper notebook before, stock disappearing and the evening count never balancing when the owner had to leave to see wholesalers, and knowing what has been sold since a tablet was placed on the counter, including without a connection (the report).
Offline checkout and receipt printing impact
Section titled “Offline checkout and receipt printing impact”The post names a service worker as part of its fully autonomous offline
operation, and MDN documents that mechanism. MDN describes service workers as
proxy servers that sit between web applications, the browser, and the network
when it is available, and states
that they are intended, among other things, to enable the creation of effective
offline experiences, to intercept network requests, and to take appropriate action
based on whether the network is available. The same page states that service
workers are only available in secure contexts, meaning the document is served over
HTTPS, with browsers also treating http://localhost as a secure context to
facilitate local development
(MDN, Service Worker API).
MDN also documents constraints on that worker. MDN says service workers
run in a worker context, have no DOM access, and run on a different thread from
the main JavaScript that powers the app, and that as a consequence APIs such as synchronous XHR and Web
Storage cannot be used inside a service worker. MDN also says service
workers cannot import JavaScript modules dynamically, that import() throws an
error when called in a service worker global scope, and that static imports using
the import statement are allowed
(MDN, Service Worker API).
The post’s receipt printing connects to thermal printers over Bluetooth, and MDN
documents the Web Bluetooth API. MDN marks it as limited availability, stating
that the feature is not Baseline because it does not work in some of the most
widely-used browsers,
and labels it experimental, advising that the browser compatibility table be
checked carefully before production use. MDN describes the API as providing the
ability to connect and interact with Bluetooth Low Energy peripherals, states that
it can only be used in a secure context, and notes that it is not available in web
workers because it is not exposed via WorkerNavigator
(MDN, Web Bluetooth API).
Related entries on this site
Section titled “Related entries on this site”- Capabilities: The receipt printer uses Web Bluetooth, one of the device capabilities available to a PWA.
- Storage: Quotas, persistence, and eviction affect the survival of the LocalStorage or IndexedDB sales queue.
- Performance: The report compares PWA and native download sizes, a performance-budget trade-off.
Open and unverified
Section titled “Open and unverified”- Whether the figure of 50,000 to 150,000 FCFA lost per month by a small business without a computerised till rests on a study, a sample, or an estimate is not confirmed.
- Whether the local transaction queue is written and read from the service worker or only from the page is not confirmed.
- Whether the under-2 MB download figure covers the first load, the cached application, or both is not confirmed.
- Whether the 58 mm thermal printers the post names work through Web Bluetooth on the specific browser and OS versions its merchants use is not confirmed.
- Whether the merchant feedback quoted was gathered under any defined process, and whether more than one merchant was asked, is not confirmed.
- Whether the post’s compatibility row, which it gives as any smartphone, tablet, or old PC, is meant to cover the Bluetooth receipt printing as well as the rest of the application is not confirmed.
- Whether the application was tested on any of the widely-used browsers in which MDN states Web Bluetooth does not work is not confirmed.
Sources
Section titled “Sources”- Comment j’ai construit une PWA de caisse enregistreuse 100% hors-ligne pour les commercants du Cameroun (dev.to)
- Service Worker API (developer.mozilla.org)
- IndexedDB API (developer.mozilla.org)
- Web Bluetooth API (developer.mozilla.org)