LibrePhotos/librephotos

A self-hosted open source photo management service.

What it solves

LibrePhotos tackles the problem of managing large personal photo libraries without relying on cloud services. It automatically analyzes your photos to detect faces, understand objects, and generate captions, making it easy to find, organize, and relive memories — all with full control over your privacy.

How it works

LibrePhotos is a monorepo containing a Django backend, a React frontend, and an Expo mobile app. The backend runs machine learning pipelines (using ONNX Runtime) for tasks like face detection via InsightFace, semantic search via CLIP embeddings, and image captioning via a vision-language model. It scans your existing folders, extracts metadata, and runs background jobs to generate a timeline, albums, face clusters, and a searchable index. Deployment is typically done via Docker, with options for single-container or Compose setups.

Who it's for

This project is for individuals and families who want a self-hosted, privacy-focused alternative to cloud photo services like Google Photos. It's also suited for tech enthusiasts, photographers, and developers who prefer open-source solutions and want advanced AI features without sending their photos to third parties.

Highlights

  • Automatic face recognition and clustering — name a person once and rest are suggested.
  • Semantic search: find photos by description, like "dog on a beach".
  • Supports common formats: RAW, HEIC, JPEG XL, videos, and live photos.
  • Timeline grouped by day and place, with events like "Saturday in Lisbon".
  • Multiple users, shared albums, and public links.
  • Optional GPU acceleration for machine learning.
  • Mobile app for Android and iOS, offline-first.
  • Single sign-on via OpenID Connect.

Related

  • Project
  • Project
  • Project
  • Project
  • Project