🛡️ DigiVault — AI-Powered Secure Document Vault

Store. Protect. Understand. Automate.


🚀 Inspiration

People usually store important documents in random folders, cloud drives, or devices and often forget them until something expires or becomes urgently needed.

We wanted to build a smarter solution — not just file storage, but an intelligent digital vault capable of understanding documents, monitoring expiry dates, and helping users interact with their files securely.

This led to DigiVault, an AI-powered secure document management platform built with MERN, automation, OCR, and RAG-based intelligence.


🧠 What DigiVault Does

DigiVault securely stores documents while adding AI-driven intelligence and automation.

Users can:

✅ Upload and securely manage documents
✅ Chat with PDFs using RAG + Gemini AI
✅ Automatically detect expiry dates using OCR
✅ Receive proactive expiry reminders
✅ Share files securely with expiration controls and passwords
✅ Enable enterprise-grade security features

The system transforms static documents into an intelligent and searchable knowledge system.


🔐 Security Features

DigiVault focuses heavily on privacy and security:

  • JWT Authentication with HTTP-only cookies
  • Google Authenticator based 2FA
  • Email OTP recovery workflow
  • Password hashing using bcryptjs
  • PIN-protected file sharing
  • Auto-expiring public links
  • Access logs with IP tracking
  • Forced revocation of shared links

🧠 Intelligence Layer

📄 Document Chat (RAG Pipeline)

Users can interact with uploaded documents naturally:

PDF → Text Extraction → Chunking → Gemini AI → Contextual Answers


Example:

“What is the premium amount in this policy?”

🔍 OCR Expiry Detection

Documents such as passports, insurance files, IDs, and certificates are scanned automatically.

Workflow:

Document Upload
        ↓
OCR Extraction
        ↓
Regex + Validation Logic
        ↓
Expiry Detection
        ↓
Reminder Scheduling

Built With

  • ai-powered-saas-architecture
  • and
  • axios
  • bcryptjs
  • cloudinary-ai-&-intelligence:-google-gemini-api
  • email-otp-recovery-automation:-node-cron
  • event-driven
  • express.js-(rest-apis)-database-&-storage:-mongodb-(mongoose)
  • framer-motion
  • frontend:-react.js-(vite)
  • http-only-cookies
  • nodemailer-architecture:-mern-stack
  • ocr-processing
  • pdf-parse
  • rag-pipeline-for-document-chat-security:-jwt-authentication
  • react-router-dom-backend:-node.js
  • reminders
  • secure-sharing-system
  • speakeasy-(google-authenticator-2fa)
  • tailwind-css
  • tesseract.js-(ocr)
Share this project:

Updates