ResiBilis — A4 delivery & counter receipt generator.
A custom Delivery and Counter receipt web app built for a garment workshop — with numbered 2-up A4 PDF generation, transactional PostgreSQL issuance, isolated Google Sign-In workspaces, and direct Siloed handoff.
63
PGlite tests
6
Postgres tables
5
screens
Problem & Constraints
A garment workshop needed strictly sequential Delivery (D) and Counter (C) receipts with zero duplicate numbering, exact centavo calculations, multi-format draft import, and printable 2-up A4 sheets that archive cleanly into Siloed.
Key Architectural Decisions
- Built transactional Delivery (
D) and Counter (C) receipt issuance on PostgreSQL withFOR UPDATErow locks, UUID idempotency keys, and SHA-256 PDF integrity checksums. - Engineered a server-side
pdf-libA4 renderer with embedded Noto Sans fonts, 2-up perforated Delivery sheets, adaptive multi-page Counter tables, andsiloed:v1PDF metadata. - Implemented multi-format draft import (CSV, TSV, XLSX, DOC, DOCX, PDF) and formula-safe CSV export with exact BigInt centavo math and half-up rounding.
- Secured isolated per-Google-account workspaces using HMAC-signed OAuth nonces and
__Host-HttpOnly sessions, verified by 63 Node Test Runner + PGlite tests.