Legacy Vault
A secure digital inheritance platform for preserving important documents, final wishes, future messages and successor access instructions.
- Category
- Secure digital inheritance
The problem
Important life records are scattered: on paper, in cloud drives, in email, on phones and in bank portals. When something happens, a family may not know what exists, where it is, who may open it, which wishes apply, or how to check that a successor is who they say they are without exposing private data too early.
The idea
Legacy Vault is a private vault for the sensitive things, plus one trusted successor. Access is never automatic: the successor has to make a claim, answer verification questions only the owner could have set, and wait for an admin to approve.
There are three experiences: the owner who prepares the vault, the successor who claims it, and the admin who reviews every claim.
What an owner can do
Documents: upload and organise them by category (identity, financial, property, insurance, business, digital assets) and mark each as verified, archived or action required. Open and download them at any time.
Successors: name the people who may claim access, with their name, email, phone, ID number and relationship. A successor is pending, active or has claimed.
Verification questions: set questions only the right person could answer. The answers are hashed, so they are never stored as readable text.
Final wishes: written under personal, family, asset, business or other.
Future messages: text, audio or video messages that are kept until they are released to the successor.
How a claim works
The owner prepares the vault: documents, a successor, questions, wishes and messages.
The successor opens the claim portal.
They enter their identity details (name, email, phone, relationship, ID number and an identity document) and answer the verification questions.
The server scores the answers and records the score, the number of questions and the number answered correctly.
The claim goes to an admin, and moves through pending, under review, and then approved or rejected.
If approved, the successor's vault access is switched on and the released documents, wishes and messages become available to them.
What the admin does
Reviews the queue of claims and approves or rejects each one with a review note, recording who decided and when.
Has an overview dashboard, and pages for documents, successors, audit logs, system health and settings.
Can see the audit log, which keeps a trace of important claim and vault events.
Safe by design
Firebase authentication on the frontend, and every protected request carries a token that the backend verifies.
Admin endpoints need the admin role; everything else needs a signed-in user.
Verification answers are stored only as bcrypt hashes.
Files go through the backend to Cloudinary, so the browser never gets storage credentials.
Secrets and the Firebase service account are kept out of the repository.
Cross-origin access is limited to the app's own address.
The API
Auth: sign in with Firebase, register, the current user, and the profile photo.
Successors, questions, documents (upload, list, open, download, change status, delete), final wishes and future messages: each with create, read, update and delete for the owner.
Claims: the questions a claimant must answer, their own claims and submitting a claim.
Admin: the dashboard, the claims, approving and rejecting, and the audit logs.
The data model
Eight collections in MongoDB: User, Document, Successor, Question (with the hashed answer), FinalWish, FutureMessage, Claim and AuditLog. A claim records the claimant's details, the identity document, the score, the review note and who reviewed it; the audit log records who did what to which record.
How it is built
Frontend: React 19 with Vite, React Router, TanStack Query, Tailwind CSS 4, Framer Motion, and React Hook Form with Zod. Public, signed-in, successor and admin areas each have their own layout.
Routes are guarded: private routes need a signed-in user, admin routes need the admin role, and the successor routes have their own guard.
A service layer talks to the API through one shared client that attaches the signed-in user's token to every request.
Backend: Express 5 on MongoDB with Mongoose, with one module for each area (users, documents, successors, questions, final wishes, future messages, claims, audit and admin), each with its route, controller, service, model and validation.
Uploads use Multer and Cloudinary. The API is deployed on Vercel.
What comes next
Email and notifications about the status of a claim.
Several successors, with priority levels.
Scheduled reminders to keep the vault up to date.
Two-factor authentication for high-risk actions.
More analytics for admins, stronger document review and automated tests.