Skip to content
Menu+

SELF-HOSTED · LAN FIRST · NO CLOUD REQUIRED

Your room's sound,under your thumb

Open a page on your phone to search, queue, set volume and fade out at bedtime. Playback runs in a controlled browser on Windows or Mac — no extra appliance in the house.

Product and interface are illustrative; your deployment may differ.

phone remote · home lan
playing

now playing

Night Flight · Ambient

study speaker · system output

04:1205:40
−15Pause+151.0×

queue

3 left
  • 2Rainy Study · Piano06:20
  • 3Late Radio · City12:48
  • 4White Noise · Aircon30:00

system volume

sleep fade

00:58:12

3isolated processes
0runtime dependencies
30 KBAndroid client
1JSON state file

WHY

Three things that rarely ship together

Simple enough to maintain for years, restrained enough to expose to the internet.

01 · One console, many outputs

The phone is a remote, not the player

The server only holds the queue, progress and volume. Audio goes out through the system output of Windows or macOS. Lock the phone, switch apps, lose Wi-Fi — the music keeps playing.

02 · The queue is yours

Search, autoplay, collections, fade — all local

Queue, position, speed and volume live in media-state.json and survive restarts. Sleep fade, loudness leveling, resume and favorites history are defaults, not a subscription.

03 · Cloud-free by default

Where cloud isn't needed, no cloud is written

A single-file Python stdlib server, a dependency-free front end, and speech recognition on the machine. Public access requires TLS and auth; without a password the service refuses to start.

PRODUCT

Three layers that age well

Browser control → server orchestration → bridge driving the browser. Restart any layer alone; local data in the other two is unaffected.

01 / 03

Server · state and entry

media-web is the only exposed surface: pages, API, auth and rate limiting. Queue and playback state persist locally.

  • One Python file, stdlib only
  • Basic / H5 token / Feishu OAuth
  • Double-submit CSRF + CSP nonce
  • Per-IP limits and lockout
02 / 03

Bridge · teach the browser

media-bridge runs on the Windows or macOS host and drives a dedicated browser over CDP. No screen capture, no injected drivers.

  • Windows: Edge + scheduled task
  • macOS: Chrome + LaunchAgent
  • Dual volume: system + page
  • Local wake-word and ducking
03 / 03

Client · a remote you already have

The Android shell embeds the same page and stores both LAN and public addresses. Browser users install nothing.

  • WebView shell, ~30 KB
  • LAN first, public fallback
  • OTA from a static manifest
  • iOS works in the browser

ARCHITECTURE

One path, four independently verifiable hops

Read the architecture →

CLIENT

phone / browser

remote and queue

HTTPS / LAN

SERVER

media-web

auth, queue, state, pages

:8097

BRIDGE

bridge

drives the browser

:8765 · CDP :9222

OUTPUT

system audio

speaker / BT / HDMI

OS

SERVER

Server

media-web on :8097 — state, auth and pages.

Python 3.9+ · systemd

WINDOWS

Windows bridge

Drives a controlled Edge tab, sets system volume, autostarts.

bridge :8765 · CDP :9222

MACOS

macOS bridge

Same protocol, controlled Chrome, LaunchAgent at login.

bridge :8765 · CDP :9222

ANDROID

Android client

WebView shell with built-in addresses and OTA.

v1.9.1 · Android 8.0+

SECURITY

Security isn't an add-on — it's the start condition

This thing is meant to be reachable from outside your LAN, so auth completes before the body is read, writes require CSRF, and a missing password means no service at all.

  • Fixed endpoint allowlist; no user input reaches a shell
  • 5 failed logins per IP locks for 15 minutes, plus token buckets
  • Only whitelisted actions; unknown ones are rejected
  • Per-request CSP nonce, no CORS, no static directory serving
  • Public traffic only over TLS proxy or tunnel; plaintext stays on LAN
  • Speech recognition stays local; audio never leaves the machine

DOWNLOAD

Downloads

Small clients, longer deployment. Pick a client, then wire the bridge and server with the docs.

ANDROID

v1.9.1

Android client

WebView shell with LAN and public addresses, OTA enabled.

Download APK

APK · 30 KB · Android 8.0+

WINDOWS / MACOS

Windows / macOS bridge

One Python file, deployed by hand — no installer, one less trust hop.

Read the setup

Python 3.9+ · stdlib

SERVER

Server

The single-file media-web service under systemd; public via Cloudflare Tunnel.

Self-hosting guide

Python 3.9+ · :8097

Versions follow this page and /releases.json. Pin a version before upgrading production.

DOCS

Documentation

Start with one always-on machine, then connect page, bridge and client. Every step can be verified alone.

SUPPORT

Support

Start with the troubleshooting page; if that fails, send logs and symptoms together.