- Rust 100%
| src | ||
| tests | ||
| .gitignore | ||
| Cargo.lock | ||
| Cargo.toml | ||
| README.md | ||
Immich Link
Browse your Immich photos and videos as local files. Open originals in desktop apps or copy them out. The mount is read-only.
~/Immich/
├── All/
├── Timeline/
│ └── YYYY/
│ ├── All/
│ └── MM/
│ ├── All/
│ └── DD/
├── Albums/<album>/
├── Favorites/
├── Stacks/<photo>/
├── Folders/
├── Archive/
├── People/<name>/
├── Tags/<tag>/
├── Places/<country>/<city>/
├── Cameras/<camera>/
├── Ratings/<rating>/
├── ByType/Images/ and Videos/
└── Unsorted/
Original names are preserved. Conflicting names get an ID suffix.
Reads and caching
Linux manages the file-data cache and read-ahead; there is no application RAM or disk cache. Cached pages survive seeks and reopening files until Linux reclaims them or the original changes. Clean file-cache pages are discarded under memory pressure, not preserved in swap.
Initial reads and isolated seeks fetch only the requested HTTP byte range. With HTTP/1.1 or HTTP/2, a second consecutive read opens one per-open HTTP stream through EOF, reused for subsequent sequential reads. An isolated metadata read elsewhere does not discard that stream; continued reads at a new position replace it. Uninterrupted sequential reads normally use two requests total (or one if the first request covers the entire file).
Only unread HTTP-frame bytes are buffered, capped at 8 MiB—not the whole video. Reading is demand-driven, with no application read-ahead task or reusable byte cache. Completed responses are fully consumed so HTTP connections can be reused. HTTP/2 is negotiated when supported, with HTTP/1.1 fallback. Servers and reverse proxies must support byte ranges.
HTTP/3 is an optional, experimental build feature (reqwest currently requires its unstable build flag):
RUSTFLAGS="--cfg reqwest_unstable" cargo build --release --features http3
These builds probe HTTP/3 once on the configured HTTPS host and port, with a 2-second startup limit. HTTP/3 original reads use demand-sized ranges, capped at 256 KiB, and drain each response before returning to FUSE. They do not retain paused through-EOF responses, which could stall concurrent reads. Larger kernel reads are split without fetching any unrequested bytes or adding a file cache.
An interrupted, truncated or timed-out original body is retried once from the original read offset; partial bytes are discarded. This includes initial probes and new responses, not just reused streams. Body retries retain HTTP/3. If the HTTP/3 startup probe or a later request fails before response headers arrive, the existing HTTP/2 or HTTP/1.1 fallback still applies. Credentials are never forwarded to an Alt-Svc host. The normal build needs no special flags and supports HTTP/2 and HTTP/1.1.
Usage
Create an Immich API key with these permissions:
asset.read
asset.download
album.read
folder.read
person.read
stack.read
tag.read
cargo install --git https://forgejo.meisterlala.dev/misti/immich-link.git --locked
immich-link login https://photos.example.com
immich-link mount
Login prompts for the key. Ctrl+C unmounts.
To mount automatically at login:
immich-link autostart enable