forked from Furumi/furumi-web
ff87d9110df9881dd2d39df6cc1048fdb1606a86
Add the Spotify adapter to the library import. The data export path parses Playlist*.json and YourLibrary.json sent by the browser, tolerates missing and unexpected keys, keeps the source order and repeats, and stores episodes, audiobooks, local files and unreadable entries as unsupported instead of dropping them. The bundled export fixture is synthetic and must be joined by an anonymized real export before acceptance. POST /api/imports/preview lists the playlists of an upload and marks those already imported or similar to an earlier import; POST /api/imports stores the selected playlists with every entry in one transaction and starts the worker. Requests are JSON-only and limited to 32 MiB (413). Re-import is detected per source playlist: a repeat is refused with 409, and a changed playlist with the same title needs confirm_similar. The Spotify Web API is optional and enabled by an administrator's client ID (and redirect URI behind a proxy) in the settings. Sign-in uses PKCE with the state, verifier and waiting import kept in the session; access tokens stay only in an in-memory vault for at most 30 minutes. The worker fetches the selected playlists one by one, honors Retry-After and backs off on server errors. A missing or expired token parks the import as needs_reauth; signing in again with the same account continues the same import and skips the playlists already fetched. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Furumusic
Your library. Your users. Your network.
Furumusic is a self-hosted music server with a full web player. Bring your music, share a library with friends, and keep your own playlists, likes, and listening history. Listen from a desktop or phone, or connect independent servers through the Furumi federated network.
What you can do
- Listen anywhere. Browse artists and releases, search your collection, build queues, and manage playlists in a responsive web player.
- Bring your collection. Upload files and folders, or import music from YouTube, torrents, and magnet links directly into your library or a playlist.
- Organize your music. Optional AI assistance recognizes metadata, finds artwork, and helps repair messy releases. Review proposed changes before applying them.
- Share a song. Send a track or queue link that anyone can play and download without creating an account.
- Welcome your people. Use password login or SSO. Instance admins can approve new users without needing access to the identity provider.
- Discover more. Find similar tracks and connect Last.fm for scrobbling.
- Read along. View synchronized or plain lyrics, choose a text version, and enrich your collection with LRCLIB or edit texts manually. See lyrics.
- Connect your players. Pair trusted Furumi devices to synchronize playlists, likes, playback state, and playback controls.
- Join a network. Discover and stream music from other participating peers while keeping your own library independent.
- Manage from any screen. Review imports, manage users and background tasks, and explore listening statistics in a desktop and mobile admin console.
AI assistance, federation, similarity search, Last.fm, and SSO are optional. You choose which features to enable.
Quick start
With Rust and PostgreSQL installed, create an empty database and start the server:
export FURU_DATABASE_URL='postgresql://furumusic:password@127.0.0.1/furumusic'
cargo run --release --locked
Open http://127.0.0.1:8000/admin/setup to create your administrator account, then configure the inbox and music library directories in Admin → Settings.
Documentation
- Installation and configuration
- Using and administering Furumusic
- Development, architecture, and tests
- Admin UI conventions
Bug reports, ideas, and contributions are welcome.
Languages
Rust
65.8%
HTML
31.8%
JavaScript
2.3%