← Back to projects
Case Study · 03 · 0°

Solo Project · React · TypeScript · PostgreSQL · pdf-lib · Vercel · Shipped Nov 2026

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
Delivery Receipt Editor
01 / 05 · Delivery Receipt Editor

Grouped stock-and-size cards with cut/DR references, sack tallies, and live 2-up A4 preview.

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 with FOR UPDATE row locks, UUID idempotency keys, and SHA-256 PDF integrity checksums.
  • Engineered a server-side pdf-lib A4 renderer with embedded Noto Sans fonts, 2-up perforated Delivery sheets, adaptive multi-page Counter tables, and siloed:v1 PDF 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.