A self-hosted, open-source photo management service with automatic face recognition, object detection, and semantic search — powered by modern machine learning.
Try the demo: a view-only LibrePhotos with sample photos. The login page signs you in with one click.
This is a monorepo that consolidates what was previously five separate repositories.
| Path | What it is | Previous repo |
|---|---|---|
apps/backend/ |
Django 6.1 API on Python 3.14, machine-learning pipelines, background jobs, the Windows and Mac programs | librephotos |
apps/frontend/ |
React 19 + Vite web client, i18next localization | librephotos-frontend |
apps/mobile/ |
Expo mobile app (Android and iOS), offline-first | librephotos-mobile |
apps/desktop/ |
LibrePhotos Viewer, a Tauri desktop app for Windows and Mac | (new) |
apps/docs/ |
Docusaurus site published to https://docs.librephotos.com | librephotos.docs |
deploy/ |
Dockerfiles, Compose configs, proxy, Kubernetes manifests | librephotos-docker |
packages/ |
Code shared by the apps: the API client and the on-device database | (new) |
Commit history from all five repositories is preserved — git log --follow apps/<app>/<file> works across the move.
Not sure what to install? Which program do I need? asks two or three short questions and gives you the right download. Step-by-step guides are in the documentation.
- Windows: an installer, no Docker or Python
- Mac with Apple silicon: the app LibrePhotos Server, no Docker or Python
- Single container: one image serves the API and the web app, the simplest way with Docker
- Docker Compose: separate backend, frontend and proxy containers
- Kubernetes: Kustomize manifests in
deploy/k8s - Unraid
| Resource | Minimum | Recommended |
|---|---|---|
| RAM | 4 GB | 8 GB+ |
| Storage | 10 GB (plus your photo library) | SSD recommended |
| CPU | 2 cores | 4+ cores |
| OS | Any Docker-compatible OS, Windows, or macOS on Apple silicon | Linux |
Note: Machine learning features (face recognition, scene classification, image captioning) are memory-intensive. 8 GB+ RAM is strongly recommended for smooth operation.
- Photos in all common formats, including RAW, HEIC and JPEG XL
- Videos and live photos
- Timeline grouped by day and place, plus favorites, recent additions and memories
- Scans your existing folders and accepts uploads from the web and mobile apps
- Multiple users, shared albums and public links
- Albums generated from events, like "Saturday in Lisbon"
- Face detection and clustering: name a person once and the rest is suggested
- Places and a map from reverse geocoding
- Tags and generated captions for every photo
- Semantic search ("dog on a beach") and search by metadata
- RAW+JPEG pairs kept as one photo, burst and bracket stacks, and duplicate detection
- Single sign-on through OpenID Connect
- Expo mobile app for Android and iOS (not released yet)
- Framework: Django 6.1 with Django REST Framework, on Python 3.14
- Database: PostgreSQL, or SQLite in the Windows and Mac programs and the single container
- Task Queue: LibrePhotos' own, in the database (
apps/backend/api/jobs) - Image Conversion: libvips via pyvips
- RAW Conversion: LibRaw via rawpy
- Video Conversion: FFmpeg
- Exif Support: ExifTool
- UI: React 19 with TypeScript
- Build Tool: Vite
- Component Library: Mantine
- Routing: TanStack Router
- Data Fetching: TanStack Query
- Maps: MapLibre GL
- Internationalization: i18next
- Face detection: InsightFace
- Face classification/clustering: hdbscan clustering and a scikit-learn multilayer perceptron, both ported to numpy
- Image captioning: LFM2.5-VL, prompted with the recognised people and the place
- Tagging, semantic search and similar photos: OpenCLIP ViT-B/32 (DataComp-XL, MIT licence), one model for all three, with an exact inner-product index in numpy
- Search: words and meaning together: matches in names, places, tags, captions and text, merged with the OpenCLIP matches by rank
- Text in photos: PP-OCRv6
- ML runtime: ONNX Runtime for every model, no PyTorch; in Docker also on an Intel, AMD or NVIDIA GPU through its WebGPU plugin
- Reverse geocoding: ExifTool's Geolocation database offline by default, or online providers through geopy
- Windows and Mac programs: the backend compiled with Nuitka, with its own tray or menu bar icon
- Desktop Viewer: Tauri 2 with React
- Mobile: Expo SDK 57 (React Native), with an on-device SQLite database
- Deployment: Docker (one container, or Docker Compose) and Kubernetes
- Reverse Proxy: Nginx in the Docker Compose setup
After starting LibrePhotos, interactive API docs are available at:
- Swagger UI:
http://localhost:3000/api/swagger - ReDoc:
http://localhost:3000/api/redoc
See CONTRIBUTING.md and the per-app READMEs:
The Docker Compose-based dev environment lives in deploy/compose/ and is described in the development install guide.
- ⭐ Star this repository if you like this project!
- 🚀 Developing: Get started in less than 30 minutes by following this guide. Also see our CONTRIBUTING.md for detailed development setup, code quality standards, and PR guidelines.
- 🗒️ Documentation: Improving the documentation is as simple as submitting a pull request here
- 🧪 Testing: If you want to help find bugs, use the
devtag and update it regularly. If you find a bug, open an issue. - 🧑🤝🧑 Outreach: Talk about this project with other people and help them to get started too!
- 🌐 Translations: Make LibrePhotos accessible to more people with weblate.
- 💸 Sponsor Niaz, who maintains LibrePhotos. No investors, no ads: LibrePhotos is funded by the people who use it
This project is licensed under the MIT License.