E-Sama POS | Case Study

2024 – Present | Solo Developer & Product Owner

The Problem

Small merchants in Burundi manage inventory, sales, and finances entirely on paper or using expensive tools designed for Western markets. Internet connectivity is unreliable and costly. Existing POS solutions require constant server access, making them useless during outages, which happen daily. Merchants needed an affordable, offline-first solution that works without any internet dependency.

The Solution

I designed, built, and shipped a complete POS and business management app from scratch:

  • 100% offline-first architecture: Hive NoSQL local database with AES-256 encryption. Zero server dependency. The app works immediately out of the box, even without a SIM card.
  • Three store types in one app: Retail (barcode scanning, wholesale pricing, parked sales), Restaurant (menu management, ingredient tracking), and Rental (equipment rental with hourly/daily/weekly/monthly tracking, deposits, overdue detection).
  • Complete POS system: Touch-optimized cart, per-item and global discounts, multi-payment support (Cash + Mobile Money + Credit), automatic wholesale pricing by quantity thresholds.
  • Built-in CRM & loyalty: Client profiles, credit system with configurable limits, debt tracking with WhatsApp reminders, loyalty points per purchase.
  • Real-time analytics dashboard: Revenue, profit, expenses, average margin, break-even analysis, stock valuation, top/dormant products, all computed locally.
  • Bluetooth thermal printing: ESC/POS protocol for professional receipts. PDF invoice generation with WhatsApp sharing.
  • Multi-store management: Up to unlimited stores (Premium tier), with data isolation and quick switching.
  • Remote control infrastructure: GitHub Gist-based remote config for version updates, kill switch, admin messages, and pricing, with no backend server needed.

Measurable Results

16+

Paying Users

3

Store Types

$0

Server Cost

3

Languages

Key Technical Decisions

  • Hive over SQLite: Hive's pure Dart implementation provides faster read/write for the document-style data model (products, sales, clients) without native bridging overhead.
  • AES-256 encryption at rest: Sensitive financial data (sales, expenses, client debts) is encrypted locally using keys stored in platform keychain/keystore, protecting merchants even if the device is lost.
  • GitHub Gist as remote config: Instead of maintaining a backend server, all remote operations (version checking, kill switch, admin messages, pricing updates) are driven by a single JSON file on GitHub Gist. Zero hosting cost, instant updates.
  • SHA-256 license activation: Offline license validation using device-bound activation codes, with anti-cheat detection for clock manipulation.
  • Provider pattern over BLoC: Chose ChangeNotifier/Provider for faster iteration and lower complexity, given the app's state management needs.
  • ESC/POS Bluetooth printing: Direct thermal printer integration via Bluetooth, supporting the affordable receipt printers available in East African markets.

Why This Matters

E-Sama is not a prototype. It's a revenue-generating product with real paying users. It proves that production software can be built for emerging markets with zero infrastructure cost, using creative engineering to overcome connectivity and hardware constraints. The subscription model (Standard / Business / Premium) validates the business viability, and the multi-language support (English, French, Kiswahili) positions it for expansion across East Africa.

Tech Stack
Flutter Dart Hive AES-256 Provider ESC/POS Bluetooth PDF Generation GitHub Gist fl_chart