# ![Logo](./public/favicon-32x32.png) Immich Power Tools A unofficial immich client to provide better tools to organize and manage your immich account. Building it to speed up your workflows in Immich to organize your people and albums. [Watch Demo Video here](https://www.loom.com/embed/13aa90d8ab2e4acab0993bdc8703a750?sid=71498690-b745-473f-b239-a7bdbe6efc21) [![Immich Power Tools](./screenshots/screenshot-1.png)](https://www.loom.com/embed/13aa90d8ab2e4acab0993bdc8703a750?sid=71498690-b745-473f-b239-a7bdbe6efc21) ### πŸŽ’Features - **Manage people data in bulk πŸ‘«**: Options to update people data in bulk, and with advance filters - **People Merge Suggestion 🎭**: Option to bulk merge people with suggested faces based on similarity. - **Update Missing Locations πŸ“**: Find assets in your library those are without location and update them with the location of the asset. - **Potential Albums πŸ–ΌοΈ**: Find albums that are potential to be created based on the assets and people in your library. - **Analytics πŸ“ˆ**: Get analytics on your library like assets over time, exif data, etc. - **Smart Search πŸ”Ž**: Search your library with natural language, supports queries like "show me all my photos from 2024 of " - **Bulk Date Offset πŸ“…**: Offset the date of selected assets by a given amount of time. Majorly used to fix the date of assets that are out of sync with the actual date. ### Support me πŸ™ If you find this tool useful, please consider supporting me by buying me a coffee. [![Buy me a coffee](https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png)](https://www.buymeacoffee.com/varunraj) ## πŸ’­ Back story Recently I've migrated my entire Google photos library to Immich, I was able to successfully migrate all my assets along with its albums to immich. But there were few things like people match that was lacking. I loved Immich UI on the whole but for organizing content I felt its quite restricted and I had to do a lot of things in bulk instead of opening each asset and doing it. Hence I built this tool (continuing to itereate) to make my life and any other Immich user's life easier. ## πŸš€ Getting Started ### 🐬 Using Docker #### Power-tools is designed to be used alongside Immich, and there are two ways you can run it. #### Method 1 - Docker Compose ( Recommended ) Add the following into your docker compose as a new service along side other immich services. Make sure you've `power-tools` in same network as immich. See the sample [docker-compose-all-immich.yml](./docker-compose-all-immich.yml) file for reference. ```yaml services: # Other services... power-tools: container_name: immich_power_tools image: ghcr.io/immich-power-tools/immich-power-tools:latest ports: - "8001:3000" env_file: - .env ``` Add the Immich API Key and immich url's to the env file (which you already have for the immich). You also need to add `DB_PORT` (Default 5432) and `DB_HOST`, which has to be set to the name of the immich database container (Default `immich_postgres`). ```bash IMMICH_API_KEY= # your_immich_api_key IMMICH_URL = "http://local-ip-of-immich:port" # Your immich instace ip address and port EXTERNAL_IMMICH_URL = "https://external-address" # External address of immich DB_PORT = "5432" DB_HOST = "immich_postgres" # Optional - AI Configuration for Smart Search (Find) AI_API_KEY=your_api_key_here # API key for your OpenAI-compatible provider AI_BASE_URL="https://api.openai.com/v1" # e.g. https://api.openai.com/v1 (OpenAI), https://api.groq.com/openai/v1 (Groq), http://host.docker.internal:11434/v1 (Ollama) AI_MODEL="gpt-4o-mini" # e.g. gpt-4o-mini, llama-3.1-8b-instant, llama3.1 ``` Refer here for obtaining Immich API Key: https://immich.app/docs/features/command-line-interface#obtain-the-api-key > [!NOTE] When creating the API key, make sure you select all the permissions for the API key. #### Method 2 - Portainer If you're using portainer, run the docker using `docker run` and add the power tools to the same network as immich. ```bash # Run the power tools from docker docker run -d --name immich_power_tools -p 8001:3000 --env-file .env ghcr.io/varun-raj/immich-power-tools:latest # Add Power tools to the same network as immich docker network connect immich_default immich_power_tools ``` ### πŸš€ For local development > [!NOTE] > Please use `bun` to run the project. If you don't have `bun` installed, checkout [bun.sh](https://bun.sh/) for installation. Copy paste the `.env.example` to `.env` and fill in the values. ```bash IMMICH_URL="" # Immich URL IMMICH_API_KEY="" # Immich API Key DB_USERNAME="" # Postgress Database Username DB_PASSWORD = "" # Postgres Database Password DB_HOST = "" # Postgres Host (IP address or hostname of the database) DB_PORT = "" # Postgres Port number (Default: 5432) DB_DATABASE_NAME="" # Name of the database # Optional - AI Configuration for Smart Search (Find) AI_API_KEY="" # API key for your OpenAI-compatible provider AI_BASE_URL="https://api.openai.com/v1" # Base URL for OpenAI-compatible API AI_MODEL="gpt-4o-mini" # Model used for parsing search queries in "Find" ``` > [!NOTE] > Make sure you have postgres port exposed on you machine. Refer here for obtaining Immich API Key: https://immich.app/docs/features/command-line-interface#obtain-the-api-key Run the development server: ```bash bun run dev ``` ## Features **Immich Related** - [x] Manage People - [x] Smart Merge - [x] Manage Albums - [x] Bulk Delete - [x] Bulk Share - [ ] Bulk Edit - [ ] Filters - [x] Potential Albums - [x] People in Album - [x] Missing Location - [x] Statistics - [x] EXIF Data - [x] Assets Overtime Chart **Tech Related** - [x] Dark Mode - [x] Dockerize - [x] Authentication - [x] Push to github packages ## Tech Stack - [Next.js](https://nextjs.org/) for infrastructure - [Tailwind CSS](https://tailwindcss.com/) for styling - [Shadcn](https://shadcn.com/) for UI Components - [Axios](https://axios-http.com/) for API calls ## External Services These services are completely optional and you can use the tool without them. Just that they are used for some of the features. But we dont send any personal data to these services. - [Google Maps](https://maps.google.com/) for heatmap Google Maps Javascript API Key is used to render the maps layer for heatmap. When rendering the heatmap, we only send the location data to Google Maps and not any other data. > Code where heatmap data is plotted: [src/pages/assets/geo-heatmap.tsx:32](./src/pages/assets/geo-heatmap.tsx#L32-L35) - OpenAI-compatible AI provider for smart query parsing in Find Any OpenAI-compatible API can be used for parsing your search query in the "Find" page. You can use standard providers like **OpenAI** and **Groq**, or run local models using **Ollama** or **LM Studio**. We do not send any personal library data to the AI provider; only your search text is sent for parsing. The actual asset querying uses [Immich's Smart Search API](https://immich.app/docs/api/search-smart). > Code where AI parsing is used: [src/helpers/ai.helper.ts](./src/helpers/ai.helper.ts) **Examples:** - **OpenAI:** `AI_BASE_URL=https://api.openai.com/v1`, `AI_MODEL=gpt-4o-mini` - **Groq:** `AI_BASE_URL=https://api.groq.com/openai/v1`, `AI_MODEL=llama-3.1-8b-instant` - **Ollama (local):** `AI_BASE_URL=http://localhost:11434/v1` (or `http://host.docker.internal:11434/v1` if running Power Tools in Docker), `AI_MODEL=llama3.1` ## Contributing Feel free to contribute to this project, I'm open to any suggestions and improvements. Please read the [CONTRIBUTING.md](./CONTRIBUTING.md) for more details.