Full-Stack2026Empfohlen

Shutter

Persönliche Filmbibliothek

shutter-cinematic.vercel.app
Shutter – Persönliche Filmbibliothek screenshot 1 of 1
01

Die Herausforderung

Filmsammler verteilen Filme und Serien auf mehrere externe Festplatten, sodass die Sammlung nur mit angeschlossenen Laufwerken durchsuchbar ist.

02

Der Ansatz

Entwicklung einer Local-First Tauri 2 (Rust) Desktop-App mit React/TypeScript UI über spezialisierten Rust-Crates.

Was ausgeliefert wurde
  • Release-Name-Parser
  • Stabile Laufwerkserkennung
  • Inkrementeller SQLite-Scanner
  • Ffprobe/ffmpeg-Analyse und eingebetteter mpv-Player über JSON-IPC sowie Next.js/MongoDB-API für TMDB-Proxy und Sync
03

Das Ergebnis

Eine Bibliothek im Netflix-Stil über alle Festplatten hinweg, die auch offline durchsuchbar bleibt und 4K Dolby Vision sowie TrueHD verlustfrei abspielt. 98,5 % der Dateinamen werden korrekt geparst und 97,2 % automatisch mit TMDB abgeglichen.

Systemdesign

So ist Shutter aufgebaut

Die technische Architekturbeschreibung ist auf Englisch.

A local-first Tauri 2 app built as a Rust workspace of focused crates. The catalog is SQLite on the user’s machine and keeps working with every drive unplugged; a small Next.js API on Vercel adds Google sign-in, a cached TMDB proxy and cross-device sync.

filenames parsed correctly (459 real files)
98.5%
titles matched to TMDB automatically
97.2%
Rust crates in the workspace
5
confidence needed to auto-match
≥ 0.85

01 · Desktop UI

client

Library UI

React · TypeScript · Vite

02 · Rust core

gateway

Tauri core

commands, artwork:// protocol

service

Player

mpv · JSON IPC

embedded via --wid

03 · Engine crates

worker

Drive watcher

stable identity, USB + SMB

service

Scanner & matcher

incremental, one transaction

service

Release-name parser

worker

Media probe

ffprobe · ffmpeg

HDR, audio, thumbnails

04 · Local

database

SQLite catalog

rusqlite

object store

Artwork cache

app data, offline

third-party

Drives & shares

read-only while scanning

05 · Cloud

service

Shutter API

Next.js · Vercel

auth, meta proxy, sync

database

MongoDB

accounts, sync, TTL meta cache

third-party

TMDB

third-party

Google OAuth

PKCE, loopback

clientgatewayserviceworkerdatabaseobject storethird-party

14 connections

  • Library UI→Tauri coreinvoke
  • Tauri core→Scanner & matcher
  • Tauri core→Playerplay file
  • Drive watcher→Scanner & matcherplug events · async
  • Scanner & matcher→Release-name parserfilenames
  • Scanner & matcher→Media probemedia info · async
  • Scanner & matcher→SQLite catalogtransaction
  • Scanner & matcher→Drives & shareswalk
  • Player→Drives & sharesstream
  • Tauri core→Artwork cache
  • Tauri core→Shutter APImeta · sync · auth
  • Tauri core→Google OAuthPKCE sign-in
  • Shutter API→MongoDB
  • Shutter API→TMDBcached proxy

Request flow · Plugging in a drive

  1. 1The drive watcher recognises the disk by a stable identity rather than its letter or mount point and raises a plug event.
  2. 2The scanner walks the drive; files with an unchanged path, size and mtime are only marked seen. New or changed files are quick-hashed and parsed.
  3. 3A vanished file and a new one with the same quick hash are a move: the row keeps its id and its watch history. The whole scan is one transaction, so pulling the drive mid-scan leaves the catalog untouched.
  4. 4ffprobe adds resolution, HDR and audio tracks; titles are matched through the API’s cached TMDB proxy (auto at ≥ 0.85 confidence, review from 0.60) and posters land in the local artwork cache.

Design decisions

Scanning never writes to drives
Catalog, artwork and thumbnails live in app data, so drives work read-only and duplicate copies share one image. The optional organizer renames files only after a dry-run plan, with an operation log and one-click undo.
History follows the title, not the file
Progress and watch counts attach to the movie or episode, so a copy on another drive shares the same history.
A name alone is never proof
Matching scores TMDB candidates against parsed names and probed media details, with thresholds for auto-match, review and unmatched.
Conflict rules per field
Sync uses last-write-wins for playback position, max for last-watched and append-only for watch events.
Secrets stay server-side
The TMDB key never ships in the app; the API proxies and caches responses in MongoDB with a TTL. Sign-in uses PKCE, so an intercepted loopback code is useless alone.

Trade-offs & known limits

  • macOS code paths for drive detection and SMB are written but not yet run on a Mac.
  • mpv runs as a child process: robust playback for every format, at the cost of bundling the binary.

Haben Sie etwas Ähnliches vor?

Ich bin offen für Freelance- und Vertragsprojekte – lassen Sie uns über Ihr Vorhaben sprechen.