A comprehensive web platform that digitizes and processes rare Hermetic and esoteric texts using AI and modern web technologies. Focuses on robust multi-tenancy, secure access, and automated document pipelines.
Try it Out!
Link: https://demo-sourcelibrary.vercel.app/tenant-1
User ID: admin
Password: admin
Key Contributions
Full-Stack Ownership & Collaboration · System Evolution · Delivery
- Transitioned from Backend to Full-Stack, taking full ownership of the frontend after frontend developer's contract end.
- Maintained continuous delivery by working directly with the CEO to ensure stable timelines.
- Ensured system stability during role transition while actively expanding platform capabilities.
Multi-Tenant System Architecture · Scalability · Isolation
- Architected a multi-tenant platform to securely support multiple organizations and clients from a single codebase.
- Applied the Bulkhead design pattern to rigidly isolate tenants across different AWS regions and MongoDB connections.
- Implemented custom backend middleware to dynamically resolve tenant contexts via request headers (
tenant slug).
- Added an LRU cache layer to optimize tenant resolution lookups and minimize database overhead.
Authentication & Authorization · Security · RBAC
- Secured user authentication using Argon2 hashing with integrated salt and pepper mechanisms.
- Engineered a JWT-based system utilizing split token strategies (long-lived HTTP-only refresh token vs short-lived memory access tokens).
- Built a dedicated revocation store to track and invalidate refresh tokens immediately upon logout.
- Implemented comprehensive Role-Based Access Control (RBAC) spanning from UI routes down to backend endpoint execution.
- Enforced strict backend authorization, ensuring security resilience even if frontend checks are bypassed.
Frontend Infrastructure · Client Enforcement · Consistency
- Configured global Axios interceptors to automatically inject tenant slugs and valid access tokens into every request.
- Restricted UI rendering and route access dynamically based on the current user's role and permission tier.
- Synchronized frontend and backend authorization rules to guarantee consistent user experiences.
AI-Assisted Document Processing Pipeline · OCR · Language Models
- Integrated multiple AI API pipelines including Gemini, OpenAI, and Mistral to handle distinct document processing tasks.
- Built an end-to-end PDF processing flow that completely automates complex scanned uploads.
- Leveraged AI models for image segmentation, splitting double-page scans, performing high-fidelity OCR, and translating archaic texts.
- Developed administrative fallback tooling that allows users to manually re-split and reorder pages when the AI requires human correction.