/CASE STUDY · 03 · FULLSTACK
InvDocs — Digital Archive & Document Workflow
Structured digital document archiving and management system for organizations with file encryption and role-based access control (RBAC).
corecraft.my.id/work/invdocs
Contract_2026.pdfRBAC
Invoice_0042.pdflocked
Report_Q3.pdfRBAC
Policy.docxshared
/01 THE PROBLEM
Problem & Friction
Administrative records lived in physical binders, so retrieving a single old document could take hours and nothing recorded who had touched it.
< 3sRetrieval, down from hours
RBACEnforced to the document level
EncryptedUploads, with a full audit trail
/02 SYSTEM DESIGN & ARCHITECTURE
Architectural Breakdown
- Next.js front end over an Express.js API
- PostgreSQL with Prisma ORM and metadata-driven indexing
- Role-based access control evaluated per document
- Encrypted file storage with a full audit trail
/03 IMPLEMENTED SOLUTIONS
Resilience & Outcomes
- Documents are described by structured metadata, so search runs against the database instead of a shelf.
- Permissions are checked before a file is streamed, not after.
- Every read and write is logged, so the archive can answer who accessed what.
Phase 01
Problem
Messy physical archiving made retrieving old administrative documents take hours.
Phase 02
Build
Introduced structured metadata indexing, file encryption and tiered permissions.
Phase 03
Result
File retrieval time dropped from hours to under 3 seconds.