Add Immich photo storage backend with demo page and connection settings#39
Open
peter-intellitect with Copilot wants to merge 1 commit into
Open
Add Immich photo storage backend with demo page and connection settings#39peter-intellitect with Copilot wants to merge 1 commit into
peter-intellitect with Copilot wants to merge 1 commit into
Conversation
Copilot created this pull request from a session on behalf of
peter-intellitect
June 4, 2026 23:26
View session
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds Immich as a photo storage backend with a configurable connection, an upload-through-middleware flow, and a gallery whose image bytes are fetched directly from Immich by the browser (never proxied through PRM).
Backend (
server/routes.ts)app_settings:immich_enabled,immich_url,immich_api_key(reusing the existing key/value table — no schema changes).GET/POST /api/immich/settings— read/write config; API key never returned, onlyhasApiKey.POST /api/immich/test— auth + connectivity check via Immich/api/users/me.POST /api/immich/upload(multipart) — forwards to Immich/api/assetswithx-api-key, then inserts into thephotostable withprmLocation = "immich_demo:<assetId>"andlocation = <url>/api/assets/<assetId>/original.GET /api/immich/assets— proxies/api/search/metadatato list recent IMAGE assets.GET /api/immich/client-config— returns{ enabled, url, apiKey }to authenticated clients so the browser can call Immich directly for image bytes.Frontend
pages/immich-settings.tsxat/settings/immich(under App Options): enable toggle, URL, API key, single Save and test button.pages/immich-demo.tsxat/immich-demo: drop-zone upload via/api/immich/upload; thumbnail grid where each tile fetches directly from Immich:Main sidebar entry for "Immich Demo" is conditional on
immich_enabled. Settings sidebar, router, and page-title wired up.