Software Architecture
The engineering principles behind every Creative Figure app
Small shops, wholesale arats, and delivery vans cannot pause when internet drops. Our architecture guarantees speed, zero data loss, and strict accounting accuracy.
01 / LOCAL-FIRST & OFFLINE-FIRST
On-Device SQLite as Source of Truth
Every invoice, payment, and inventory movement writes directly to an embedded Drift/SQLite WAL-mode database first. The UI never blocks on network spinners, keeping counter billing instant even in zero-signal warehouses.
Flutter
Drift SQLite (WAL)
<10ms Writes
02 / DETERMINISTIC SYNC
Idempotent Outbox & Delta Synchronization
Offline mutations are queued in a durable local outbox with client-generated unique IDs. When connectivity returns, delta sync pushes and pulls changes safely across owner, manager, and driver phones without duplicate records.
Outbox Queue
Conflict-Safe Deltas
Laravel Sanctum
03 / MODULAR CORE + VERTICALS
Shared Accounting Core, Industry-Specific UX
We maintain a hardened shared foundation (khata-core & khata-ui) for double-entry cashbooks, Bluetooth ESC/POS printing, SMS/WhatsApp receipts, and RBAC—then compose tailored vertical apps for eggs, LPG gas, and retail.
khata-core
khata-ui
ESC/POS Bluetooth
04 / FINANCIAL INTEGRITY
Immutable Ledgers & Multi-Layer Backups
Financial totals use precision-safe arithmetic with auditable adjustment trails rather than silent overwrites. Role-based permissions protect purchase prices and profit margins while encrypted cloud backups safeguard business history.
Audit Trail
RBAC Permissions
HTTPS + Cloud Backup