Self-hosted media toolkit: audio today (convert / audit / retag rips, Textual TUI, Subsonic-compatible HTTP server), video next (folder-first metadata, HLS streaming).
Project description
Maneki
Python 3.13 CLI for a self-hosted media library — audio (convert rips + serve via Subsonic) and video (HLS streaming with on-demand segments, sidecar + embedded subtitles, contact-sheet posters, click-in folder browser). Point maneki serve at one directory; it scans recursively, auto-detects what's audio and what's video, and serves both kinds plus the web SPA on one port. The Subsonic mount appears only when audio is present, the video mount only when video is present.
The name
Maneki (招き, mah-neh-kee) is the Japanese word for beckoning. It's the verb-form of maneki-neko (招き猫) — the small ceramic cat with a raised paw you've seen on shop counters and restaurant windows across Japan. The cat sits there quietly all day; when you walk in, its paw is already up, inviting you in. Whoever placed it didn't have to do anything; the cat does the welcoming.
A self-hosted media server has the same job. It lives on a box in the corner. You don't see it, you don't manage it, you don't poke at it. When you open the app on your phone or laptop and want to watch a film or play music, your library should already be there, ready, waving you in. No URL to type, no port to remember, no "is the server up?" — just open and play.
That's what maneki serve <library> aims to be: the cat on the shelf.
Install
The lowest-friction way is uvx — it downloads, caches, and runs the latest published maneki in one step. No install step required:
uvx maneki --help
For daily / persistent use (PATH-installed, no per-run network check):
uv tool install maneki
maneki --help
You'll also need ffmpeg and ffprobe on $PATH for the convert pipeline:
brew install ffmpeg # macOS
sudo apt install ffmpeg # Debian / Ubuntu
Desktop apps
Beyond the CLI and the browser SPA, Maneki has native desktop clients — a Tauri (~15 MB, native WebKit) and an Electron (~120 MB, bundled Chromium) wrapper around the same Subsonic web UI. There are no prebuilt binaries yet (shipping unsigned .dmg / .exe past Gatekeeper / SmartScreen is a worse experience than building locally; code-signing is on the roadmap), so you build from source:
git clone https://github.com/winterop-com/maneki.git && cd maneki
make desktop-tauri-build # -> .app + .dmg
make desktop-electron-build # -> .dmg
See the desktop guide for the full walkthrough.
Quickstart
# One process, one URL, both protocols. Point at any directory - maneki
# scans recursively and only mounts the kinds with content.
uvx maneki serve ~/Downloads/library # audio on /audio/rest/*, video on /video/*
uvx maneki serve ~/Downloads/library --ui # also serve the web SPA at /
# Shared across audio + video:
uvx maneki library info ~/Downloads/library # kind counts (audio + video)
uvx maneki library list ~/Downloads/library # full file inventory (or `ls`)
uvx maneki library inspect ~/Downloads/library/some.mkv # tags + cover (audio) or ffprobe streams (video)
# Audio tooling:
uvx maneki audio convert ./input ./output # convert rips
uvx maneki audio library audit ./output # audit
uvx maneki audio playlist gen ./output --seed <track> --minutes 60 # auto-generate a mix
Screenshots
The browser SPA — bordered panels with floating titles, same palette across audio + video. Vertical AUDIO / VIDEO rail on the left switches modes; the rail self-hides when only one kind is mounted at the library root.
Audio — Artists → Albums → Tracks plus Now Playing top band with the FFT spectrum visualizer:
Video — folder browser, instant-paint row thumbnails, sticky breadcrumb. Click into any season for the episode list:
Video player — video.js v8 on the HLS source, contact-sheet poster (16:9, generated server-side from 9 sample frames + header strip with codec / resolution / duration / size), t for theater mode, f for browser fullscreen, captions menu auto-prefers English / English-SDH:
More in the serve guide and the video guide.
Documentation
Full docs are at docs/ — built with MkDocs Material. Run them locally:
make docs-serve # http://127.0.0.1:8000
Or jump straight to:
- Architecture — how all the pieces fit together (process model, data flow, audio subprocess, SQLite index, FFT visualizer)
- Quickstart — end-to-end walkthrough including iPhone + Tailscale + Amperfy
- maneki serve — single-library mode, auto-detect, web SPA
- maneki library — cross-cutting info / list / inspect against any root
- maneki audio convert — codec / bitrate / enrichment matrix
- maneki audio library — audit rules + auto-fix + SQLite index
- maneki video — HLS, subtitles, posters, folder browser
- maneki audio playlist — auto-generated
.m3u8mixes anchored to a seed track - Desktop apps — Tauri + Electron generic Subsonic clients
- Mobile (Subsonic) — play:Sub / Amperfy / Symfonium / DSub / Tempo
- Edge cases — every weirdness encountered on real rips
- Roadmap — what's next
- Development — directory layout + test patterns + commit style
Status
v0.9.0 · audio (Subsonic-compat) + video (HLS, sidecar + embedded subtitles, 16:9 contact-sheet posters, folder browser, watcher hot-reload) share one maneki serve and the web SPA at /. ruff + mypy + pyright clean, full pytest suite green (648 tests).
Audio: OpenSubsonic-compatible (multipleGenres, transcodeOffset, songLyrics extensions), backs heart / star buttons with a persistent <root>/.maneki/stars.toml, returns sub-ms FTS5-ranked /search3 results, promotes LRC lyrics to synced: true, tested against Symfonium / Amperfy / play:Sub / Feishin on iOS / Android / desktop. Persistent SQLite library index at <root>/.maneki/index.db keeps cold starts under a second; the filesystem watcher does per-album incremental rescans.
Video: on-demand HLS with bounded foreground concurrency (rapid seeks don't wedge the player), single-ffmpeg multi-stream subtitle extraction (a 45-track .mkv opens in ~2s instead of stalling on 45 parallel ffmpegs), instant-paint row thumbnails + 16:9 contact-sheet posters with hash-derived cache filenames (deeply-nested rel paths don't blow NAME_MAX), --no-cover-images to skip contact sheets entirely on slow disks, --prewarm-cache to fill thumbs / posters / subtitles at startup, watcher hot-reload of the SQLite-backed scan index so adds / deletes / renames appear without a restart. Same index.db file as the audio side, separate videos table.
License
See LICENSE in the repo root.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file maneki-0.11.1.tar.gz.
File metadata
- Download URL: maneki-0.11.1.tar.gz
- Upload date:
- Size: 992.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.19 {"installer":{"name":"uv","version":"0.11.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
46c800a3c60c266120e1ba81fec1bc00e7e134834ca9b97b0eb8366f08991f60
|
|
| MD5 |
9a38f813806c208e90b84e6accd8bb39
|
|
| BLAKE2b-256 |
692e370cec1f32ca8cee74fb618ca73d20af328aa391cb176e379b308abd7d96
|
File details
Details for the file maneki-0.11.1-py3-none-any.whl.
File metadata
- Download URL: maneki-0.11.1-py3-none-any.whl
- Upload date:
- Size: 1.1 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.19 {"installer":{"name":"uv","version":"0.11.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f57375da783c34b4c646f251c5c9275baffb90439715ac6d281d9ba1618e59f8
|
|
| MD5 |
6c990834161c93ef2d04de3ba3540df6
|
|
| BLAKE2b-256 |
b56de6f4e3c78d1d327afd18b63627e8c5d65d43381f55147b9ce271521525fc
|