3-member team · On hold prior to rollout

SlogLab

Laboratory information and tracking system digitizing sample registration, dynamic JSONB worksheets, tiered approvals, and automated PDF test reports.

Backend Developer. Built the NestJS/PostgreSQL backend, dynamic worksheet engine, Playwright PDF pipeline, and Swagger API docs in collaboration with the PM/QA and Frontend Developer.

Private repo · On hold

System architecture

Modular NestJS backend enforcing 54-permission RBAC, immutable JSONB worksheet snapshots, atomic multi-tier approvals, MinIO pre-signed storage, and Playwright PDF exports.

CLIENT & CONTRACTNEXT.JS APP ROUTERRole-Scoped PortalDynamic form rendererDocument tracking UITEAM COLLABORATIONSwagger / OpenAPIShared REST contracts91 documented endpointsJWTNESTJS 11 · MODULAR MONOLITH (16 MODULES)SECURITY & ACCESS CONTROLJWT Auth · 10 Roles / 54 Permissions · Row-Level ScopingDYNAMIC FORM ENGINEJSONB templates (1,118 fields) → immutable snapshotATOMIC APPROVAL STATE MACHINEprisma.$transaction() · sequential review · 1-step rollbackREPORTING ENGINEPlaywright Chromium + CSS Paged Media PDF exportDATA & INFRASTRUCTURERELATIONAL + JSONBPostgreSQL 16 + Prisma32 tables · partial indexesOBJECT STORAGEMinIO (S3-Compatible)Private bucket · pre-signed URLsNOTIFICATIONSAudit Log & SMTPActionable alerts & history

Architecture & technical choices

  • Dynamic JSONB worksheets & immutable snapshots: Laboratory tests span 14 templates and 1,118 configurable parameters. Storing hierarchical definitions in PostgreSQL JSONB and freezing a schemaSnapshot per test ensures future template updates never alter historical records, while enabling automated draft report mapping and specification conformity checks.
  • Atomic sequential approvals & RBAC: 10 roles and 54 granular permissions enforce strict role and category isolation (backed by PostgreSQL partial unique indexes to guarantee one active lead analyst per test). Approval and one-step rollback transitions execute inside prisma.$transaction() with complete audit trails.
  • High-fidelity PDF engine (Playwright Chromium): Chosen over low-level PDF libraries so structured laboratory reports and blank/filled worksheets render directly from HTML/CSS Paged Media with exact typography, running headers, and multi-point measurement tables, backed by private MinIO storage with pre-signed URLs.
  • Team collaboration: Built in a 3-person team (PM/QA, Frontend, Backend). Maintained Swagger/OpenAPI documentation (/api/docs) to keep REST contracts aligned with the Next.js frontend.

Scale & status

32 PostgreSQL tables, 16 NestJS modules, and 91 REST endpoints. Source code is private; core development is complete and the project is currently on hold pending client rollout.

Product interface

Technology stack

  • NestJS 11
  • TypeScript
  • PostgreSQL 16
  • Prisma
  • MinIO
  • Playwright PDF
  • Swagger
  • Docker
XX · Judgement

Contact

Send a Prayer · Above the Gray Fog