LegacyKeeper is a majestic, self-hosted 3D family archive. It moves beyond standard file grids by treating your memories as a curated museum exhibition. Built with a powerful AI pipeline, it automatically restores old photos, generates biographical chronicles, clusters faces, and allows semantic "vibe" searching.
- 3D Museum Hall & Vault: Immersive WebGL galleries powered by React Three Fiber.
- AI Restoration & Curation: Automatically colorize, denoise, and caption old artifacts using local AI.
- Story Weaver: Generates rich biographies based on tagged photos and EXIF data.
- Living Lineage: Interactive federated family trees.
- Hybrid Vibe Search: Semantic search plus lexical reranking, OCR/object-tag matching, and deep background jobs.
- Vault Inbox & Picker: Users can accept or reject vault invitations, then choose which vault to open when they have access to more than one.
- Infinite Vault Grid: The 2D vault view loads memories in backend-paginated batches as you scroll.
- Time Capsules: Cryptographically sealed memories that unlock on a future date.
You can run LegacyKeeper in two ways. Method 1 (Docker) is highly recommended for a smooth, isolated setup. Method 2 (WSL Ubuntu) is provided for developers who want to run the stack natively from scratch.
- Git installed on your machine.
- Ollama installed locally to run the AI LLM (Llama 3.1:8b).
- Run:
ollama run llama3.1:8bin your terminal to download and start the model.
- Run:
- For local image OCR in deep search, install the
tesseract-ocrsystem package in WSL.
This method spins up the Backend, Frontend, PostgreSQL, Redis, and MinIO automatically.
Pre-requisites:
- Docker Desktop installed and running.
Steps:
-
Clone the repository:
git clone https://github.com/hmyunis/legacy-keeper.git cd legacy-keeper -
Configure Environment Variables:
# Copy local env templates for app-specific secrets. cp backend/.env.docker backend/.env cp frontend/.env.example frontend/.env(Optional) Add your
HF_TOKEN(Hugging Face) tobackend/.envto speed up the download of the CLIP and Face Recognition AI models.For browser push notifications, generate a real VAPID pair and put the same public key in the frontend env:
npx web-push generate-vapid-keys
Set
VAPID_PUBLIC_KEYandVAPID_PRIVATE_KEYinbackend/.env, and setVITE_VAPID_PUBLIC_KEYinfrontend/.env. The Docker backend uses.env.dockerfor container hostnames, but it will fall back to the real VAPID keys inbackend/.envwhen.env.dockerstill contains placeholders. Restart Docker after changing these values. -
Build and Run:
docker-compose up --build -d
-
Access the Application:
- Frontend UI: http://localhost:5173 (or
http://localhostvia Nginx depending on port mappings). - MinIO Storage Console: http://localhost:9001 (User:
minioadmin, Pass:minioadmin)
- Frontend UI: http://localhost:5173 (or
If you are on a brand new Windows PC and want to run everything natively inside WSL 2 without Docker containers, follow these steps meticulously.
Pre-requisites:
- Install WSL 2: Open PowerShell as Administrator and run
wsl --install. - Restart your PC and open the Ubuntu terminal.
The backend requires dlib (for face recognition) and pgvector, which need C++ compilers.
sudo apt update && sudo apt upgrade -y # Install Build Tools & Media Libraries sudo apt install build-essential cmake pkg-config libx11-dev libopenblas-dev liblapack-dev libgtk-3-dev libboost-python-dev ffmpeg libmagic1 -y # Install Python & Node.js pre-requisites sudo apt install python3.12 python3.12-venv python3-pip curl software-properties-common -y
# Install Postgres and Redis sudo apt install postgresql postgresql-contrib redis-server postgresql-server-dev-all -y # Start Redis sudo service redis-server start # Install pgvector (Build from source) cd /tmp git clone --branch v0.6.0 https://github.com/pgvector/pgvector.git cd pgvector make sudo make install cd ~ # Configure PostgreSQL Database sudo service postgresql start sudo -u postgres psql -c "CREATE USER legacy_user WITH PASSWORD 'legacy_pass';" sudo -u postgres psql -c "CREATE DATABASE legacy_db OWNER legacy_user;" sudo -u postgres psql -d legacy_db -c "CREATE EXTENSION vector;"
cd /path/to/legacy-keeper/backend # Setup Python Environment pip install pipenv pipenv install pipenv shell # Environment Variables cp .env.example .env # Edit .env to ensure DATABASE_URL=postgres://legacy_user:legacy_pass@localhost:5432/legacy_db # Run Migrations python manage.py migrate # Start Celery Worker (In a separate terminal tab) pipenv shell celery -A legacy_keeper worker -l INFO -Q high_priority,default,low_priority # Start Celery Beat for Scheduled Tasks (In a separate terminal tab) pipenv shell celery -A legacy_keeper beat -l INFO # Start Django Server (In a separate terminal tab) pipenv shell python manage.py runserver
# Install Node.js (Latest LTS via NodeSource) curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash - sudo apt install -y nodejs cd /path/to/legacy-keeper/frontend # Install dependencies npm install # Setup Environment cp .env.example .env # Start Dev Server npm run dev
Access the application by navigating to http://localhost:5173 in your Windows browser.
- Face Recognition: Uses
dlibto extract 128D facial embeddings. Clusters are formed across the family tree. - Search Ranking: Uses a hybrid retrieval pipeline with CLIP embeddings, lexical candidate generation, OCR/object-tag boosts, and cross-encoder reranking for stronger result ordering.
- Story Weaver & Captioning: Leverages a locally running
Ollama(Llama 3) instance to write captions based on parsed EXIF data, detected faces, and semantic tags. - Deep Search: Background search jobs can inspect OCR text, AI captions, object tags, and document text so results keep updating without blocking the UI.
LegacyKeeper implements a strict Role-Based Access Control (RBAC) per vault (Admin, Contributor, Viewer). Data remains entirely on your machine/server. Time capsules are mathematically locked until their expiry dates are validated via Celery Beat periodic checks.
Vault invitation flow:
- Vault admins can invite members and see whether invitations are pending, accepted, or rejected.
- New users can choose whether they are joining a vault or creating their own during onboarding.
- Users with access to one vault are taken straight into it; users with access to multiple vaults see a picker at login.