A navidrome self-hosted web client
README.md

Merodi #

A polished Navidrome client built with Astro, Node SSR, and Tailwind CSS. It includes token-based login, a responsive library with song, artist, album, search, and per-user playlist views, account avatars, and a persistent player with shuffle, seeking, and volume controls.

Setup #

Set the Navidrome server address in .env.local:

NAVIDROME_URL=http://localhost:4533

Then install and run:

npm install
npm run dev

Open http://localhost:3000 and sign in with your Navidrome username and password.

Album and artist details use MusicBrainz metadata, with album artwork from Cover Art Archive and embedded Navidrome artwork. For a production deployment, set a descriptive MusicBrainz user agent with your contact URL:

MUSICBRAINZ_USER_AGENT="Merodi/0.1.0 (https://your-domain.example)"

Production #

npm run build
npm start

The Astro Node adapter serves server-rendered pages, static assets, audio, and API routes on port 3000. Set PORT to use a different port. Playlists are stored in the authenticated Navidrome account. Merodi-specific avatars are stored in data/accounts/; keep this directory on persistent storage in production.

Pages fetch their own Navidrome data during SSR. The sidebar, library content, settings, login, and empty player are emitted as HTML without a client application bootstrap. Small browser modules add only interactive behavior; Astro client navigation keeps the audio player alive between routes. Artwork has fixed dimensions and in-place loading states, and infinite-loading skeletons mirror their corresponding song or collection markup.

Authentication #

The server generates a random salt and the Subsonic token (MD5(password + salt)). After Navidrome validates the login, the username, token, and salt are stored in a 30-day HTTP-only, SameSite=Lax cookie. The password is never stored. Browser JavaScript cannot read the cookie, and all Navidrome API and audio requests are proxied through the Astro server.

The cookie is marked Secure in production, so production deployments must use HTTPS. The token and salt together act as reusable Navidrome credentials; protect the browser profile and sign out on shared devices.

Interface icons are from Untitled UI Icons, used under the MIT license.