HomeAll 07 Systems
Real Project · 2025

/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).

ROLE
  • Fullstack Development
  • RBAC
  • Metadata Indexing
TIMELINE & STUDIO
2025
Independent
DELIVERABLES
  • Structured archive with metadata search
  • RBAC down to the document level
  • Encrypted upload pipeline
  • Audit trail
STACK
Next.jsExpress.jsPostgreSQLPrisma ORMTailwind CSS
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.
/04 BUILD TIMELINE
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.