GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - hmyunis/legacy-keeper: A multi-tenant intelligent family memory storage platform.

BranchesTags
Open more actions menu

Latest commit

 

History

61 Commits
61 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
backend
backend
 
 
frontend
frontend
 
 
nginx
nginx
 
 
README.md
README.md
 
 
docker-compose.yml
docker-compose.yml
 
 

Repository files navigation

LegacyKeeper — The Family Memory Museum 🏛️🕰️

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.

Tech Stack

🌟 Features

  • 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.

🚀 Installation Guide

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.

Prerequisites (For Both Methods)

  1. Git installed on your machine.
  2. Ollama installed locally to run the AI LLM (Llama 3.1:8b).
    • Run: ollama run llama3.1:8b in your terminal to download and start the model.
  3. For local image OCR in deep search, install the tesseract-ocr system package in WSL.

Method 1: The Docker Way (Recommended) 🐳

This method spins up the Backend, Frontend, PostgreSQL, Redis, and MinIO automatically.

Pre-requisites:

  • Docker Desktop installed and running.

Steps:

  1. Clone the repository:

    git clone https://github.com/hmyunis/legacy-keeper.git
    cd legacy-keeper
  2. 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) to backend/.env to 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_KEY and VAPID_PRIVATE_KEY in backend/.env, and set VITE_VAPID_PUBLIC_KEY in frontend/.env. The Docker backend uses .env.docker for container hostnames, but it will fall back to the real VAPID keys in backend/.env when .env.docker still contains placeholders. Restart Docker after changing these values.

  3. Build and Run:

    docker-compose up --build -d
  4. Access the Application:

    • Frontend UI: http://localhost:5173 (or http://localhost via Nginx depending on port mappings).
    • MinIO Storage Console: http://localhost:9001 (User: minioadmin, Pass: minioadmin)

Method 2: Manual Setup via WSL Ubuntu (From Scratch) 🐧

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.

1. System Dependencies & C++ Build Tools

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

2. Install Databases (PostgreSQL, pgvector, Redis)

# 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;"

3. Backend Setup (Django + Celery)

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

4. Frontend Setup (React + Vite)

# 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.


🧠 AI Pipeline Architecture

  1. Face Recognition: Uses dlib to extract 128D facial embeddings. Clusters are formed across the family tree.
  2. 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.
  3. Story Weaver & Captioning: Leverages a locally running Ollama (Llama 3) instance to write captions based on parsed EXIF data, detected faces, and semantic tags.
  4. Deep Search: Background search jobs can inspect OCR text, AI captions, object tags, and document text so results keep updating without blocking the UI.

🛡️ Governance & Privacy

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.

About

A multi-tenant intelligent family memory storage platform.

lk.ethioyarnstores.com

Topics

djangodockerminiomulti-tenantreact-typescriptshadcn-ui

Resources

Readme
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.