AS
Aaron SuarezValencia City, PH · remote-first
Universal searchFind your way through the site

Sari2POS Developer Handoff

Sari2POS is currently a Lab prototype that still runs as a local-first browser app, but it is no longer a single-file blob. The refactor boundary is intentionally conservative: easier daily development now, cleaner APK extraction later.

Current File Map

Runtime Contract

The app exposes a small global contract at window.Sari2POS:

Keep this contract stable unless the app schema changes.

Development Rules

APK Extraction Path

When this graduates from Lab prototype to APK candidate:

  1. Copy lab/sari2pos.html and assets/sari2pos/* into the mobile app web root.
  2. Replace ../assets/sari2pos/... paths with bundled app paths.
  3. Vendor html2canvas locally instead of loading it from CDN.
  4. Add a PWA manifest and service worker so the browser build can be tested offline first.
  5. Wrap the web root with Capacitor or a similar Android shell.
  6. Replace direct localStorage access with a storage adapter only if device storage, backup, or sync requirements demand it.

Suggested Next Refactor Phases

QA Checklist

↑ top