Multi-tenant SaaS
Dorji Hisab (দর্জি হিসাব) — Tailor Shop Manager
Multi-tenant SaaS for Bangladeshi tailor shops, in English and Bangla: custom measurement fields, order workflow, and dues — built for owners who may not read fluently.
- Users
- Low-literacy
- Client JS
- Near zero
- Tests
- 153
- Languages
- EN / বাংলা

Screens

The shop floor. Three numbers in the header answer the morning's question, each order's left block says when it is due — red only when it is late — and the balance owed is the largest type on the card.

A customer's saved measurements, read far more often than they are changed — so they are large read-only numbers in ruled boxes, with editing on its own screen.

An order: what is owed and when it is due in the header, the six stages as a row of blocks, and the measurements frozen at the moment it was taken. Changing the customer's book will not change these.

Taking an order. Garment selection and its quantity and price reveal is pure CSS :has() — the picker costs no JavaScript.

Reports separate work taken from money collected — an order placed today may be paid next week, and one revenue figure answers neither question.

Sign-in by phone number, not email. The shop has a phone; it does not have an inbox.
01Overview
Tailor shops in Bangladesh run on a paper register: a customer's measurements on one page, their order on another, the balance owed in the owner's head. The shop I built this for has an owner and three karigars, and the constraint that shaped every decision is that the owner may not read English — and may not read Bangla fluently either.
That single constraint drove the architecture. English and Bangla are both complete interfaces rather than one translated into the other: it opens in English with Bangla one tap away, and in Bangla the numerals are Bangla too, except money and phone numbers, which Bangladeshis write in Western digits and which is what the keypad produces. The screen leans on numbers, position and four colours instead of sentences — ink green, tape yellow, a pale neutral, and red, which means late and nothing else. An order's stage is read from where it sits in a row of six blocks: finished ones dark, the current one yellow. The screens are server-rendered with almost no client JavaScript, because these shops run on cheap Android handsets over slow mobile connections — the whole app is plain HTML forms and server actions, with a handful of small client components where the platform genuinely offers no server-side route.
Three data decisions carry the product. It is multi-tenant from the first migration: every table hangs off a Shop, uniqueness is composite rather than global, and a single getCurrentShopId() seam means auth landed later without touching another file. Measurement fields are data, not columns — each shop defines its own garments and their fields in JSONB, so a shop that cuts সালোয়ার adds it themselves without a migration. And every order snapshots the measurements it was cut to, so editing a customer's numbers never rewrites what a garment in progress was actually made from.
Money is whole taka integers with nothing derived ever stored: the balance is always computed from the order total minus discount minus the sum of payments, and the payments table is append-only — a wrong entry is corrected by a new row for the money that went back, never by an edit. Order numbers are per-shop and gap-free, allocated by incrementing a counter inside the same transaction as the order — verified with twelve concurrent creations producing twelve unique, contiguous numbers.
02Key features
- Multi-tenant from the first migration — composite uniqueness, one auth seam
- Shop-defined garments and measurement fields stored as JSONB, no migration per shop
- Measurements frozen onto each order, so history never rewrites itself
- Six-stage workflow (Received → Cutting → Sewing → Trial → Ready → Delivered) read by position: done dark, current yellow
- Gap-free per-shop order numbers, allocated inside the order transaction
- Whole-taka integers with an append-only payment ledger; balances always derived
- Printable job slip that travels with the cloth bundle to the workshop
- Reports separating work taken from money collected, compared period on period
- English/Bangla switch covering numerals, dates, workflow labels and shop-defined names
- Server-rendered throughout; ~140ms page loads on a cheap handset
