Skip to main content

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

CI PyPI version Python 3.13+ License: AGPL v3 Documentation

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:

Browser UI — audio library, Daft Punk · Homework

Video — folder browser, instant-paint row thumbnails, sticky breadcrumb. Click into any season for the episode list:

Browser UI — video folder browse

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:

Browser UI — video player with contact-sheet poster

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:

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

maneki-0.11.0.tar.gz (992.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

maneki-0.11.0-py3-none-any.whl (1.1 MB view details)

Uploaded Python 3

File details

Details for the file maneki-0.11.0.tar.gz.

File metadata

  • Download URL: maneki-0.11.0.tar.gz
  • Upload date:
  • Size: 992.6 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

Hashes for maneki-0.11.0.tar.gz
Algorithm Hash digest
SHA256 5e8f0bb5a9d2d741d791c08d6d9555860a0dc533f5a3c75b2e260de2c9c6bd66
MD5 1c9ae31274a3cf0995598cde7b0d0877
BLAKE2b-256 368464431080531654c08d5ede3566f52218561bfecec07804cac4201f474a4c

See more details on using hashes here.

File details

Details for the file maneki-0.11.0-py3-none-any.whl.

File metadata

  • Download URL: maneki-0.11.0-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

Hashes for maneki-0.11.0-py3-none-any.whl
Algorithm Hash digest
SHA256 69a27f474447ab76a785d2c738d9b1c6576840965d26ff32882dd0f72c966053
MD5 ab9ee5710fe4817584c2bdd21075a2af
BLAKE2b-256 54cde9ce8d4e040e2d2d38cb04a853c218a46ac3bb6584abb4bb3ede70d19955

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page