- Rust 67%
- Svelte 16%
- TypeScript 10%
- Kotlin 4%
- Swift 3%
- 5 more languages <1%
Cross-platform desktop audiobook player for Jellyfin servers.
Built with Tauri 2 (Rust backend) and Svelte 5 + TypeScript + Tailwind 4.
Development #
Requires pnpm and the Tauri prerequisites.
pnpm install
pnpm tauri dev # run desktop app with HMR
pnpm check # type-check Svelte + TS
pnpm tauri build # production bundle
Invite links #
Hlustum registers the custom URL scheme hlustum:// on all platforms. A
link of the form hlustum://host[:port][/path] opens Hlustum on the
recipient's device, races https and http probes against
<host>[:port][/path]/System/Info/Public, and lands the user on a
confirmation screen showing the server's self-reported name before any
credential entry. Examples:
hlustum://jellyfin.example.com # https:443 preferred, falls back to http:80
hlustum://jellyfin.example.com:8920/jellyfin # port + sub-path preserved
The link carries no credentials; the recipient signs in with username and
password (or Quick Connect) after confirming the server. When only http
reaches the server, the confirmation screen shows an "Insecure HTTP"
indicator and the Continue button reads "Continue insecurely" so a silent
downgrade is never invisible.
Desktop delivery to an already-running Hlustum process flows through
tauri-plugin-single-instance (with its deep-link feature enabled) so a
second launch forwards its argv to the primary process instead of opening
a new window. Mobile delivery uses the OS-native paths exposed by
tauri-plugin-deep-link (iOS openURL, Android onNewIntent).
Desktop media-controls feature #
The hlustum-audio plugin crate exposes a media-controls cargo feature,
default-on for macOS / Windows / Linux, that wires OS now-playing surfaces
(MPNowPlayingInfoCenter on macOS, SMTC on Windows, MPRIS on Linux) via
souvlaki. Opt out with
--no-default-features on the plugin to ship without souvlaki in the
dependency graph; RodioBackend falls back to a no-op controls impl and
playback continues to work. Mobile targets (iOS, Android) set
default-features = false in the top-level Cargo.toml — souvlaki is
target-gated to desktop.
Dev helper: pnpm jf #
hljf is a debug-only CLI that issues authenticated requests against the
Jellyfin server you signed into via the GUI. It reads the same
state.json the GUI writes and, by default, the plaintext token file
pnpm insecure persists — no re-authentication, no token copy-paste.
Prerequisites:
- Sign in via the GUI at least once:
pnpm insecure(recommended) → token goes to~/.hlustum-dev-secrets.json.pnpm tauri dev(plain) → token goes to the OS keyring. Usepnpm jf --keyring …to read from it.
- Close the GUI (optional — the CLI reads the last-persisted state).
Usage:
pnpm jf whoami # print active server/user
pnpm jf servers # list known servers
pnpm jf get System/Info # pretty-printed JSON
pnpm jf get "Users/<uid>/Items?Limit=3" # pass queries in quotes
pnpm jf get "Items/<iid>/Images/Primary" --raw > cover.jpg
pnpm jf post "Users/<uid>/FavoriteItems/<iid>" # empty body
pnpm jf delete "Users/<uid>/FavoriteItems/<iid>"
pnpm jf --keyring whoami # read token from OS keyring
# Hlustum per-user settings (server-side DisplayPreferences bucket)
pnpm jf prefs get # raw bucket (pretty JSON)
pnpm jf prefs decoded # typed UserSettings view
pnpm jf prefs set playbackSpeed 1.25 # write one CustomPrefs key
pnpm jf prefs set enabledLibraries "lib-a,lib-b" # empty string = hide all
pnpm jf prefs clear enabledLibraries # revert to "all libraries"
Flags:
--server <id>/--user <id>— override the active identity for multi-account debugging.--keyring— read the token from the OS keyring instead of the dev-secrets file. Use when the GUI session was started withpnpm tauri dev, notpnpm insecure.--raw— suppress JSON pretty-printing (needed when piping binary bodies like cover art to files or other tools).-v— print the resolvedstate.jsonpath, active identity, and secret-store choice to stderr for troubleshooting.
The tool refuses to run when built with --release — it is never
bundled by pnpm tauri build. The plaintext FileSecretStore itself is
gated on debug_assertions, so release builds cannot reach it either
way.
On mobile, HLUSTUM_DEV_SECRETS=1 is a no-op: iOS goes straight to the
Keychain and Android goes straight to an AndroidKeyStore-wrapped
AES-GCM envelope under <filesDir>/secret_store/. Neither platform has
a plaintext dev fallback.