← Back to work

Wasalak - وَصْلُكَ

Offline-first customer debt and payment management system that helps small businesses track customer credit, payments, balances, and invoices without relying on a constant internet connection.

SideProject · Debt Management System · 2026

Wasalak — debt and payment management app screenshot

The challenge

Design a simple and reliable way for small businesses to manage customer debts in environments with unreliable internet access, replacing paper-based tracking while preventing data loss and keeping customer balances synchronized.

Approach

Architected an offline-first PWA that stores data locally and synchronizes it with a remote server when connectivity is available. Designed a simple debt and payment workflow for quickly recording customer transactions, tracking outstanding balances, managing customer records, and generating PDF invoices that can be shared with customers.

Key features

  • Offline-First SyncPowerSync-powered local SQLite that works without internet and syncs with PostgreSQL when online
  • FIFO Payment EngineAutomatically allocates payments to oldest debts with server-side validation and audit-safe history
  • Multi-Tenant IsolationJWT-based row-level security via Supabase ensuring complete data separation per store
  • Barcode ScanningCamera, USB scanner, and manual input support with auto-increment and inline product creation
  • RTL Arabic InterfaceFully localized right-to-left layout with Mantine v9 and mobile-first responsive design

Tech stack

  • React 19
  • TypeScript
  • Vite
  • PowerSync
  • Zustand
  • Supabase
  • Mantine UI

Gallery

Wasalak - وَصْلُكَ gallery image 1