Laundrify: a franchise POS and CRM
Billing, garment tracking and customer updates for every store of a laundry franchise.

01The problem
A multi-store laundry franchise needed one system for billing, garment tracking and customer updates across every store.
02What it had to do
- Billing totals that never drift by a paisa.
- Invoice numbers with no gaps, per store, for GST.
- No double charge when the network flickers and a request is retried.
- Every garment traceable from drop-off to pickup, and customers told when it is ready.
03What I built
Per-garment barcode tagging linked to billing, GST-correct invoices with per-store GSTINs, WhatsApp "order ready" alerts, role-based access and an analytics dashboard.
04Architecture
- POS / CRMReact + TypeScriptCounter screens, barcode scanning and Web Audio scan feedback.
- APINode.jsBilling core with idempotency-key middleware and TTL cache.
- DataMongoDBInteger-paise amounts, price snapshots and atomic invoice counters.
- JobsBullMQWhatsApp notifications sent from a queue, behind a swappable provider.
05Engineering decisions
01Integer-paise ledger
- Challenge
- Floating-point money drifts (0.1 + 0.2 is not 0.3), and price changes must not rewrite old bills.
- Decision
- All money stored as integer paise with atomic updates; prices snapshotted at order time.
- Why
- Totals are exact and an invoice from last month still says what the customer paid.
02Gapless invoice numbers
- Challenge
- Counting documents to get the next number breaks when two counters bill at once.
- Decision
- Atomic counters per store instead of countDocuments.
- Why
- No duplicates and no gaps, which GST invoices need.
03Idempotent payments
- Challenge
- A flaky network makes the app retry, and a retry must not charge twice.
- Decision
- Custom idempotency-key middleware with a TTL cache returns the first result for a repeated key.
- Why
- A double tap or a retry is safe by design.
04Queue-based notifications
- Challenge
- A slow messaging provider should never block the billing counter.
- Decision
- WhatsApp alerts go through a BullMQ queue behind a NotificationProvider interface.
- Why
- Checkout stays fast, and the provider can be swapped without touching billing.
05Hardware at the counter
- Challenge
- Staff tag and scan garments all day.
- Decision
- USB and Bluetooth barcode scanners with thermal tags, plus Web Audio feedback on every scan.
- Why
- Staff hear a successful scan without looking at the screen.
06Security
- Role-based access
- Per-store data scoping
- Idempotency keys on payment routes
07Outcome
- Exact integer billing with per-store GSTINs
- Gapless invoice numbering
- Retry-safe payments
- Live demo on Render