Turn your Immich albums into a public photography portfolio — without ever exposing your Immich server to the internet.
A self-hosted portfolio powered by Immich. It acts as a secure reverse proxy between your visitors and your private Immich instance: your Immich server stays on your local network, completely invisible to the outside world, while your albums are published as a gallery you control.
Guides: Gallery Configuration · Theming · Journal & Photo Essays · Admin Panel · Deployment
- Configurable hero layouts — split, fullbleed, minimal, stacked (image + thumbnail strip), typographic (text-only), or mosaic (multi-image grid)
- Hero image carousel — single image or crossfade carousel of multiple Immich assets
- Masonry photo grid — responsive layout with natural aspect ratios and configurable columns, gap, and aspect ratio
- Uniform grid mode — switch to a fixed-aspect uniform grid per-subpage or globally
- Showcase / filmstrip / editorial-flow layouts — featured hero + grid, horizontal scroll strips, or alternating full-width and paired images
- Justified rows (experimental) — every row fills the width at one shared height, aspect ratios intact, nothing cropped
- Per-subpage grid overrides — each subpage can define its own columns, gap, aspect ratio, and layout mode, and individual albums can override that again (experimental)
- Cover focal points (experimental) — decide which part of a cover survives the crop
- Fullscreen lightbox — keyboard and swipe navigation, EXIF panel, adjacent image preloading
- EXIF metadata on hover — camera body, lens, focal length, aperture, shutter speed, ISO shown directly on the grid
- ThumbHash placeholders — instant blurred previews while full images load
Masonry and showcase, both in Studio Modern — the same album, a different grid layout.
The fullscreen lightbox with the EXIF panel — camera, lens and exposure for the frame on screen.
- Subpage grouping — organize albums into named collections (e.g.
/japan/tokyo-2023) - Auto-generated slugs — URL slugs derived from album names automatically
- YAML gallery config — all gallery structure defined in a single
content/gallery.yamlfile - Markdown about page —
content/about.mdwith frontmatter for portrait, name, location, and gear list, editable from the admin panel - Journal — photo essays and travel stories at
/journal, with drafts, per-entry passwords, cover images and reading times - Photo Essay mode — long-form storytelling pages alternating text with fullbleed and paired image layouts
- Unlisted subpages (experimental) — reachable by direct link, absent from the navigation
- Subpage on/off toggle — take a page offline without deleting it
- External navigation links (experimental) — point the header at a shop, a blog, or a social profile
- Client proofing — clients favorite photos and export the selection; picks are encoded in the URL, nothing is stored server-side
- Lightbox watermark — configurable overlay on fullscreen images
- Privacy-friendly analytics — cookieless view counts, no third parties, can be switched off
- Dynamic OG images — auto-generated social preview images per album
A subpage grouping several albums into one collection.
The Markdown about page and the GPS map, both generated from your Immich data.
- Visual page builder — drag & drop interface to manage hero images, standalone albums, subpages, and sections
- Album picker — browse all shared Immich albums with search, see photo counts, and add them with one click
- Settings editor — configure theme, grid layout, footer, legal/impressum, SEO, image protection and the about page from a visual UI
- Visual previews everywhere — grid layout, theme, photo frame, hero style and the Google search snippet are picked from preview cards instead of text fields
- Journal Studio — split-screen block editor with a live preview of the real page
- Essay block editor — assemble photo essays block by block without touching Markdown
- Photo order editor — drag & drop a hand-picked opening sequence for any album
- Favicon upload — give the site its own icon in the browser tab
- Backup manager — every save is backed up automatically; restore any of them with one click
- Live YAML sync — changes are written directly to
gallery.yamlandsettings.yamlwith automatic backups - Password protected — secured with its own admin password, separate from album passwords
Security & Infrastructure
| Concern | Protection |
|---|---|
| Server exposure | Immich URL never leaves your network — all requests proxy server-side |
| API key | Stored only in .env.local, never in client code |
| Asset IDs | Immich UUIDs encrypted (AES-256) into opaque tokens |
| Album scope | Only albums in gallery.yaml are accessible |
| Password protection | Per-subpage password support |
| Rate limiting | Per-IP sliding-window rate limiter (configurable RPM) |
| Vulnerability scanning | Docker image scanned with Trivy on every release, results in the GitHub Security tab |
- Health check endpoint at
GET /api/health - In-memory caching with configurable TTL
- Standalone Docker image — multi-stage, non-root, ~150 MB
- Dependencies kept current via Dependabot (npm + GitHub Actions, weekly)
- Immich 3.0 or newer. Immich 3.0 changed how album assets are retrieved; earlier versions are not supported as of v0.9.0. On an older server, albums render with the correct title but no photos, and the map stays empty — the app logs a warning naming this as the likely cause.
- Node.js 20+ (or just use the Docker image)
git clone https://github.com/ralksta/immich-folio.git
cd immich-folio
npm install
npm run devThen open http://localhost:3000/install and let the setup wizard connect you to
Immich — see First-Run Setup below. It needs a token from the
server log, which is printed on first access.
Prefer to configure by hand?
The wizard writes the same files you would write yourself, so the manual route remains fully supported:
cp .env.local.example .env.local
# Edit .env.local with your Immich server URL and API key
cp content/gallery.yaml.example content/gallery.yaml
# Edit gallery.yaml with your album UUIDs
npm run devSomething not coming up? npm run doctor checks the configuration from the
terminal — no running app and no admin password needed. See
Config Doctor.
A deployment with no gallery.yaml and no Immich credentials serves a setup
screen. The wizard at /install fills both in from the browser: it connects
to Immich, lets you pick albums (optional — you can add them later in /admin),
and names the site. Nothing is written until your credentials have been verified
against your Immich server, so a typo cannot leave you with an "installed" site
that loads no photos.
The wizard is gated by a one-time token printed to the server log on first access, because a fresh deployment is reachable before it has any configuration — and without the gate, whoever finds the URL first could configure it:
══════════════════════════════════════════════════════
Immich Folio — First-run setup token
══════════════════════════════════════════════════════
Token: PTmUKFIdce2DwuqBG71RAExH7tVxceXX
Read it from your container logs (docker logs immich-folio, or
docker compose logs lightbox — immich-folio is the container name, lightbox
the service) and append it to the URL:
http://your-site/install?token=PTmUKFIdce2DwuqBG71RAExH7tVxceXX
The token is stored in content/.setup-token (mode 0600) so it survives a
restart, and is deleted once setup completes. From then on /install redirects
to the gallery and its API routes refuse to run again.
The wizard writes gallery.yaml, settings.yaml and content/install.json —
the last of which holds your Immich API key. Environment variables override
everything in it, so credentials can be rotated without touching the file, and
setting them all up front means the wizard never appears at all.
→ What the wizard writes, and environment precedence
# Required
IMMICH_API_URL=http://your-immich-server:2283
IMMICH_API_KEY=your-api-key
# Optional
SITE_TITLE=My Photography # default: "Gallery"
SITE_SUBTITLE=A visual journal # default: empty
CACHE_TTL=300 # seconds, default: 300
STALE_MAX_AGE=86400 # seconds an expired cache entry survives during an outage, default: 86400 (24h), 0 disables
IMMICH_TIMEOUT_MS=15000 # Immich response wait, default: 15000
IMAGE_CACHE_VERSION=1 # bump to bust browser image caches, default: off
RATE_LIMIT_RPM=1500 # requests/min/IP for images, default: 1500
AUTH_SECRET=long-random-string # required in production
TRUSTED_PROXY_HOPS=1 # reverse proxies in front, default: 0
ADMIN_PASSWORD=your-secure-password # enables /admin panel
WEBHOOK_SECRET=long-random-string # enables POST /api/webhook cache invalidationLogin and setup endpoints have their own, much lower limits that
RATE_LIMIT_RPMdoes not raise — see Rate Limiting.
Behind a reverse proxy, set
TRUSTED_PROXY_HOPSto the number of proxies in front of the app (nginx/Traefik/Caddy = 1; Cloudflare in front of nginx = 2). Without it the client IP is read from a header the client itself can set, which defeats the brute-force limits on the password endpoints. See Trusted Proxies.
Create a dedicated API key in Immich under Account Settings → API Keys. Immich Folio only needs read access — it never modifies your library.
| Permission | Required | Used for |
|---|---|---|
album.read |
✅ Yes | List and fetch album metadata & photo lists |
asset.read |
✅ Yes | Fetch asset metadata, EXIF data, thumbnails, previews, and originals |
asset.view |
✅ Yes | Stream image/video files (thumbnail, preview, video playback) |
No write permissions needed.
album.create,asset.upload,asset.delete, etc. can all be left off.
Tip (Admin Panel): The Admin Panel also uses
POST /search/metadatato browse your full library for the hero image picker. This is covered byasset.read— no additional permission required.
All gallery structure — hero images, albums, subpages, grid layout, footer — is defined in content/gallery.yaml.
Long-form storytelling with fullbleed photos, side-by-side pairs, quotes and captions — as a standalone /journal section, or as a single essay on one subpage.
→ Journal & Photo Essays Guide
Seven built-in presets with distinct visual identities — or mix and match with fine-grained control over colors, fonts, corners, photo frames, hero layout, and grid style.
Studio Modern is the default: Leica precision rebuilt around the Archivo grotesque, with IBM Plex Mono for every piece of photographic metadata, hairline rules, zero radius, and red as signal only.
Studio Modern, dark and light — every preset ships both, and visitors switch with a toggle in the navigation bar.
theme: studio-modern # or: studio, minimal, editorial, classic, noir, monograph→ View all Themes & Configuration Guide
services:
lightbox:
build: .
container_name: immich-folio
restart: unless-stopped
ports:
- '7211:7211'
env_file:
- .env.local
volumes:
- ./content:/app/contentRun with:
docker compose up -dThe gallery will be available at http://localhost:7211.
The
content/volume must be read-write — the setup wizard, the admin panel, the journal and the backup rotation all write into it. A:romount leaves the wizard unable to complete and the admin panel unable to save.
For standalone docker run, the health check, TLS behind a reverse proxy, and
what the gallery does while Immich is unreachable:
A built-in visual editor at /admin lets you manage your gallery without editing YAML files manually.
Enable it by setting ADMIN_PASSWORD in your environment:
ADMIN_PASSWORD=your-secure-admin-passwordOr set the password in the setup wizard, which stores it as
an scrypt hash rather than in your environment. An ADMIN_PASSWORD variable
takes precedence over the stored one if both are present.
Then navigate to http://your-site/admin and log in. The panel is protected by its
own password, separate from any album passwords, and writes straight to
gallery.yaml / settings.yaml with automatic backups.
Login · page builder · album picker · settings editor
v0.11.0 — a first-run wizard, a journal, and a set of experimental portfolio features:
- First-run setup wizard at
/install— configure a fresh deployment from the browser instead of writing config files → First-Run Setup - Journal — photo essays and travel stories at
/journal, with a split-screen block editor, drafts, per-entry passwords and cover images → Journal guide - About page editor — portrait, name, location, gear and bio edited in the admin panel, plus a toggle to take the page offline
- Custom favicon upload — SVG, PNG, ICO or JPEG, stored in the content volume
- Experimental portfolio features — justified grid layout,
coverhero splash screen, unlisted subpages, per-album grid overrides, cover focal points, external navigation links - Admin panel — every area has its own URL, a floating save bar, and a drag & drop photo-order editor
No migration and no configuration change are required to upgrade.
Security fixes ship in normal releases, so running the latest release is the recommended baseline.
→ Full history in CHANGELOG.md and the GitHub releases
- Next.js 16 (App Router, standalone output)
- React 19
- TypeScript
- Vanilla CSS (no framework)
Immich Folio is maintained by @ralksta and made better by the people below. Thank you — every one of these made the project easier to live with.
- @lancetm714 — built the setup wizard that turns a fresh install into a few clicks in the browser instead of hand-written config files. Also added custom favicons, so your portfolio gets its own icon in the browser tab, and made a gallery with no albums yet a perfectly valid starting point rather than an error.
- Jules — an automated reviewer that has been quietly hardening the project in the background: better screen-reader support in the photo grid, and a series of fixes keeping the public endpoints from being overwhelmed by traffic.
- Dependabot — keeps every dependency current, which is most of the reason security fixes land here quickly.
Contributions are welcome — see CONTRIBUTING.md to get
started. Pull requests target the dev branch.
MIT License — free to use and modify for the Immich community.












