Project · 2026

EASYTINDAPH

Offline-capable POS & inventory for Philippine micro-retailers

Creator & Full-Stack DeveloperPre-pilot — v1.0.0-rc4 in staging

EasyTindaPH turns commodity Android hardware into a dependable sales and inventory counter for Philippine micro-retailers. I designed its multi-tenant data layer, offline sync architecture, and web-driven peripheral support for a controlled cloud pilot.

React 19TanStack StartTypeScriptZustandTailwind CSSSupabasePostgreSQLPWA
EasyTindaPH landing page showing a sales and inventory dashboard for Filipino micro-retailers
The product proposition: dependable sales and inventory on practical Android hardware.

The problem and the product bet

Millions of Philippine micro-retailers still record sales on paper or in consumer apps that assume constant connectivity. EasyTindaPH bets that a bring-your-own-hardware web app can serve as a real point-of-sale: a compatible Android tablet, an 80mm USB or Bluetooth printer, a HID barcode scanner, and a cash drawer.

The product direction keeps local and cloud operation in one codebase, treats printed output as a transaction summary rather than a BIR-registered invoice, and defers compliance work to a later stage. I want to be precise about status: this is a pre-pilot system — release candidate v1.0.0-rc4 is deployed to staging, the Stage 16 pilot gates are documented, and no live store has been onboarded yet.

Multi-tenant data governance

The backend is PostgreSQL on Supabase, and every table that holds business data is scoped to a store. The current schema enables row-level security on 31 tables with 49 store-scoped policies, plus 49 database functions. Writes that must be atomic — complete_sale, adjust_inventory, receive_stock, void_sale, process_return — run as SECURITY DEFINER RPCs that re-verify the caller's store before touching any row.

Two decisions shaped the design:

  • Inventory movements are the source of truth. Stock levels can be recomputed from the movement ledger, which makes returns, voids, and receiving auditable instead of destructive.
  • Security was hardened in rounds, not once. The migration history includes three dedicated security-remediation passes — fixing over-privileged definer functions, hardening subscription membership checks, and adding a zero-price guard — plus dependency maps and audit notes in the project docs.

Offline-first architecture

Connectivity in target stores is intermittent, so the app is built to keep selling without it:

  • A Zustand-backed offline queue journals mutations as typed commands per domain (products, categories, brands, suppliers, stock receiving, supplier costs, opening inventory).
  • The service worker precaches the app shell and versioned entity caches, and is explicitly written to never cache auth or API traffic.
  • Replay is idempotent. A dedicated migration adds sale idempotency keys so a retried sync cannot double-record a transaction; a DB-level replay test covers the path.
  • Acceptance testing included a five-sale offline recovery drill on a real device (Stage 16C, October 2026): queue offline sales, restore connectivity, verify every sale and stock movement replays exactly once.

POS peripherals from the web platform

A web app driving counter hardware is the part most people assume is impossible, so it gets its own write-up:

  • Receipt printing (80mm) through a print module with a RawBT Android-intent fallback for Bluetooth printers.
  • Cash-drawer kick over WebUSB, using the USB printer-class device filter to find the drawer.
  • Global HID barcode capture — a scanner types faster than any handler loop, so capture runs as a focused listener that routes scans to the active form.

Physical QA ran on an Itel P10003L (Android 14): PT-220 Bluetooth printing via RawBT and USB HID scanning both verified against the actual hardware worksheet used for the pilot gate.

Pilot readiness and honest scope

A POS that loses a day's sales is worse than paper, so pilot preparation is mostly operational:

  • A backup and recovery runbook enumerates 22 critical business tables, names the stock source of truth, and defines a weekly encrypted logical dump on top of provider backups — with a restore test as a pilot gate, not an aspiration.
  • Security headers (CSP, X-Frame-Options, Referrer-Policy, Permissions-Policy) ship with the app, and staging audits precede each stage closeout.
  • Pricing direction from the product docs: a one-time local tier and a low monthly cloud tier, sized for micro-retail margins.

The repository is private, so the evidence here is described rather than linked. What is public: the EasyTindaPH page and the staged rollout documented on it. If you're evaluating this work and want the runbooks, I'm glad to walk through them.

Evidence