Suno-style web UI for a self-hosted MiniMax-Music3 inference server
TypeScript ai-musicdiffusersdockerexpressminimaxminimax-musicmusic-generationreactself-hostedsgl-omnisunotailwindcsstext-to-musictypescriptvite
docs: quick start runs the bundled inference server first; MUSIC_API is optional; changelog for v0.1.0
Adam Benhassen1ef679772dc8
diff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlindex 04a34bb..bd28a2b 100644--- a/.github/workflows/release.yml+++ b/.github/workflows/release.yml@@ -54,7 +54,7 @@ jobs:echo "## Docker image"echoecho '```bash'- echo "docker run -d -p 8787:8787 -v \$PWD/data:/data -e MUSIC_API=http://<inference-host>:8000 ${IMAGE}:${GITHUB_REF_NAME#v}"+ echo "docker run -d -p 8787:8787 -v \$PWD/data:/data ${IMAGE}:${GITHUB_REF_NAME#v} # then set the inference server URL in Settings"echo '```'echoecho "## Changes"diff --git a/CHANGELOG.md b/CHANGELOG.mdnew file mode 100644index 0000000..86b66fc--- /dev/null+++ b/CHANGELOG.md@@ -0,0 +1,24 @@+# Changelog++## v0.1.0 — 2026-08-19++First release. Live demo: https://demo-minimax-music.adambh.dev++### Create & library+- Suno-style create panel: title (random name if empty), style description, lyrics editor with section tag chips, instrumental toggle, duration 5–360 s, 1–4 takes per submit (`seed + i`), advanced seed and format (WAV; FLAC/MP3 shown disabled).+- Templates: built-in default plus saved templates, stored server-side.+- Track feed with cover, take number, duration, seed, render time ("took 5m5s") and time since finish; search over title / style / lyrics in Library.+- Track detail side panel (click a card): large cover with play, status/progress, actions, full style and lyrics, details grid.+- Sticky player with client-side waveform, seek, prev/next, keyboard play/pause.++### Rendering+- Own render queue: one track at a time against the standard blocking `POST /v1/audio/speech`; queued / rendering / done, cancel, retry, estimated progress and ETA. Queued tracks survive a UI-server restart.+- Optional live progress + play-while-rendering when the server advertises `capabilities: ["stream"]` on `/health` (SSE progress and PCM windows; growing WAV served with a live-patched header and Range support). Stock `sgl-omni` keeps the estimated bar.+- "Loading model…" state when `/health` answers 503.++### Server & ops+- Express 5 + TypeScript UI server; JSON stores for library, templates and settings; API key never returned to the browser.+- Settings page: inference server URL + optional API key with "Test connection"; `MUSIC_API` / `MUSIC_API_KEY` env override and lock the fields; compatibility mode switch (treat any server as stock `sgl-omni`).+- Bundled single-GPU inference server (`inference/server.py`) exposing the same API as `sgl-omni serve`, plus the streaming extension.+- Read-only demo mode (`DEMO=1`, `Dockerfile.demo`): showcase library, simulated per-visitor renders, writes refused.+- Docker image (`ghcr.io/adambenhassen/minimax-music-ui`, amd64 + arm64), docker-compose, CI (tests, typecheck, build) and release workflow.diff --git a/README.md b/README.mdindex ffff7c1..0b3b6bd 100644--- a/README.md+++ b/README.md@@ -57,32 +57,43 @@ browser ──/api/*──▶ server/ (Express 5) ──POST /v1/audio/speech## Requirements-- Node.js 20 or newer-- A running MiniMax-Music3 server exposing `POST /v1/audio/speech` — either:- - MiniMax's own `sgl-omni serve --model-path MiniMaxAI/MiniMax-Music3 --port 8000` (two GPUs), or- - the bundled single-GPU server in [`inference/`](inference/) (`python inference/server.py --port 7862`, ~24 GB VRAM) — same API, one card.-- See [Upstream API](#upstream-api).+- Node.js 20 or newer for the UI.+- A MiniMax-Music3 inference server exposing `POST /v1/audio/speech` — the bundled single-GPU one below (Python 3.10+, CUDA GPU with ~24 GB VRAM), or MiniMax's own `sgl-omni serve` (two GPUs). See [Upstream API](#upstream-api).## Quick start+**1. Start an inference server** (skip if you already have one).+```bashgit clone https://github.com/adambenhassen/minimax-music-ui.gitcd minimax-music-ui++# bundled single-GPU server — same API as sgl-omni, plus live progress+python -m venv .venv && source .venv/bin/activate # Windows: .venv\Scripts\activate+pip install -r inference/requirements.txt+python inference/server.py --port 7862 # first start downloads the weights (tens of GB); /health answers 503 until loaded+```++Or MiniMax's reference server: `sgl-omni serve --model-path MiniMaxAI/MiniMax-Music3 --port 8000` (see the [model card](https://huggingface.co/MiniMaxAI/MiniMax-Music3)). Details and options for the bundled one: [`inference/README.md`](inference/README.md).++**2. Start the UI** (a second terminal).++```bashnpm installnpm run build-MUSIC_API=http://<inference-host>:8000 npm start+npm start# → http://localhost:8787```-Then open **Settings** in the sidebar and enter the inference server URL — or set `MUSIC_API` in the environment (see below).+The UI talks to `http://127.0.0.1:7862` by default — exactly where the bundled server listens — so it works right away. For any other address open **Settings** in the sidebar and enter the URL (and API key, if the server needs one). Prefer configuring from the environment? `MUSIC_API` / `MUSIC_API_KEY` override Settings and lock the fields — see [Configuration](#configuration).### DockerPrebuilt multi-arch images (amd64 + arm64) are published to GitHub Container Registry on every release:```bash-docker run -d -p 8787:8787 -v "$PWD/data:/data" -e MUSIC_API=http://<inference-host>:8000 ghcr.io/adambenhassen/minimax-music-ui:latest+docker run -d -p 8787:8787 -v "$PWD/data:/data" ghcr.io/adambenhassen/minimax-music-ui:latest+# → http://localhost:8787 — then set the inference server URL in Settings```Or build locally:@@ -94,7 +105,7 @@ docker build -t minimax-music-ui .docker run -d -p 8787:8787 -v "$PWD/data:/data" minimax-music-ui```-Set `MUSIC_API` / `MUSIC_API_KEY` in the environment (or a `.env` next to `docker-compose.yml`) to pin the inference server; leave them unset to configure it from the Settings page. When the inference server runs on the Docker host, use `http://host.docker.internal:<port>/…`.+Optional: set `MUSIC_API` / `MUSIC_API_KEY` in the environment (`-e MUSIC_API=…`, or a `.env` next to `docker-compose.yml`) to pin the inference server; that locks the fields in Settings. From inside Docker, an inference server on the host is `http://host.docker.internal:7862`.### Configuration