Skip to main content

Case study

Aly Baba Cashier Desktop POS

Point of Sale. Fully Offline.

An offline-first Windows desktop POS built with Electron, React, and TypeScript on a local SQLite database — sales, inventory, purchasing, and ledgers in one place.

Discipline
Backend Systems
Type
Desktop app · Point of sale · Dashboard · Inventory · Retail
Domain
Retail
Role
Desktop Application Engineer
Status
Live
Timeline
Production System
Aly Baba Cashier Desktop POS

01Project overview

What this system is

Aly Baba Cashier Desktop POS is a Windows point-of-sale application designed to run entirely on the device. It combines a fast cashier sales flow, invoicing, inventory and purchasing, customer and supplier accounts, shift and cash-drawer management, expenses, debt collection, and reporting into one offline-first Electron application backed by a local SQLite database and device-based activation.

02The challenge

The problem it had to solve

Retail shops often rely on cloud POS tools that stop working the moment the internet drops, and juggling sales, inventory, purchases, returns, shifts, and customer/supplier debts across disconnected tools makes daily reconciliation slow and error-prone.

03Solution & features

What was built

A single offline-first desktop application that keeps all point-of-sale, inventory, purchasing, and accounting data in a local SQLite database on the device. Cashiers get a fast POS workflow with thermal receipt printing and shift-based cash handling, while owners get inventory control, ledgers, expense tracking, debt collection, and reporting without depending on a network connection.

Core features

  1. Offline-First POS

    Every sale, invoice, and stock movement is stored locally in SQLite, so the cashier keeps working even with no internet connection.

  2. Sales & Returns Workflow

    Handles POS sales, invoices, sales returns, and purchase returns with corresponding stock adjustments.

  3. Inventory & Purchasing

    Tracks stock movements across purchases, sales, and returns and links purchases to supplier accounts.

  4. Shifts & Cash Drawer

    Cashier shifts manage the cash drawer, expenses, and end-of-shift reconciliation.

  5. Ledgers & Debt Collection

    Customer and supplier ledgers track balances, while debt collection records payments against outstanding amounts.

  6. Thermal Receipt Printing

    Receipt preview and thermal printing support, plus dedicated DTF printing services for retail workflows.

04Architecture & integrations

How the system fits together

The application is a self-contained Electron desktop client. A React and TypeScript renderer drives the interface while the Electron main process manages the local SQLite database, printing, and device activation. Because all data lives on the device, the system keeps working with no network connection and never blocks a sale on connectivity.

Layers

  1. 01

    Electron Desktop Shell

    Packages the application as a native Windows desktop client and coordinates windows, printing, and the local data layer.

  2. 02

    React + TypeScript UI

    Renderer layer providing the POS screens, dashboards, inventory, purchasing, and ledger interfaces with a typed, component-based codebase.

  3. 03

    Local SQLite Database

    On-device storage for sales, invoices, products, stock movements, customers, suppliers, shifts, expenses, and ledger entries.

  4. 04

    Printing & Activation Services

    Receipt preview with thermal printing, dedicated DTF printing services, and device-based activation for licensing.

Dashboard modules

Dashboard
Overview of daily sales, cash position, and key retail metrics for the current device and shift.
POS Sales
Fast sales screen for adding items, applying admin-controlled discounts, and completing orders with receipt printing.
Invoices
Browse, review, and reprint issued invoices along with sales and purchase returns.
Inventory
Manage products and track stock movements from purchases, sales, and returns.
Purchases
Record supplier purchases and purchase returns and reflect them in stock and supplier ledgers.
Customers & Suppliers
Maintain customer and supplier accounts with ledgers, balances, and debt collection.
Shifts & Cash Drawer
Open and close cashier shifts with managed cash-drawer balances and expense logging.
Reports
Sales, returns, expenses, and ledger reporting generated from local data.

05Technologies & role

The stack, and the role in it

Role on the projectDesktop Application Engineer

Frontend
  • React
  • TypeScript
Infrastructure
  • Electron
  • SQLite
  • Node.js

06Challenges & decisions

The hard parts, and the decisions behind them

  1. Challenge 01

    The point of sale must remain fully usable even when the shop has no internet connection.

    How it was handled

    Built the entire system offline-first on a local SQLite database so sales, inventory, and accounting never depend on connectivity.

  2. Challenge 02

    Sales, purchases, returns, and payments all need to stay consistent with stock and account balances.

    How it was handled

    Modeled stock as movement records and kept customer and supplier ledgers updated from each transaction to keep balances accurate.

  3. Challenge 03

    Cashiers need reliable receipt output on retail thermal printers.

    How it was handled

    Added receipt preview with thermal printing support and dedicated DTF printing services from the desktop application.

Technical decisions

Electron for the desktop client.
Electron lets the POS ship as a native Windows desktop application while building the UI with modern React and TypeScript.
Local SQLite as the data store.
An embedded database keeps all transactions on the device, enabling true offline-first operation with fast local reads and writes.
TypeScript across the renderer.
Static typing keeps the sales, inventory, and ledger logic reliable and easier to maintain as the system grows.
Device-based activation.
Binding activation to the device provides a simple licensing model that works without a constant network connection.

Performance

  • Local SQLite reads and writes keep the POS responsive during sales.
  • Stock is derived from movement records for auditable inventory.
  • The desktop client is optimized for fast daily order processing at the counter.
  • Reports are scoped by shift and date for quick lookups.

Interface & experience

  • Focused desktop POS layout designed for speed at the counter.
  • Clear screens for sales, invoices, inventory, and ledgers.
  • Receipt preview before printing to reduce paper waste.
  • Consistent, high-contrast retail visual identity.

Production readiness

  • Offline-first data layer backed by local SQLite.
  • Device-based activation for licensing control.
  • Thermal receipt printing and DTF printing services.
  • Windows desktop release workflow via Electron.

08Outcome

Where it stands

System Type
Desktop POS
Platform
Windows / Electron
Data
Local SQLite
Mode
Offline-First

Building something similar?

Describe what you need — the users, the scope, the systems it has to connect to — and I’ll reply with questions or a next step.