The short version#
DroppedNeedle can answer two protocols that music apps already speak: the Subsonic API at /subsonic and a Jellyfin API at /jellyfin. Both are off until an admin turns them on, and both read the same library, playlists and favourites as the web player. Apps never see your account password: each one signs in with an app-password you make for it, or gets one through a browser sign-in. Apps get the music that has a file in your DroppedNeedle library, and nothing that streams from elsewhere.
Two APIs, one library#
| Subsonic | Jellyfin | |
|---|---|---|
| Address | Your DroppedNeedle address followed by /subsonic | Your DroppedNeedle address followed by /jellyfin |
| Admin switch | OpenSubsonic API | Jellyfin-compatible API |
| Tested apps | Symfonium, Feishin, Arpeggi | Finamp, Jellify, Manet |
| What it looks like to the app | A Subsonic server (protocol 1.16.1) with the OpenSubsonic extensions | A Jellyfin 10.10.6 server named DroppedNeedle, with one library called Music |
With BASE_PATH set, it goes before the API’s path, as in https://example.com/music/subsonic (Base path). Neither API is a separate server: they are two more ways into the same DroppedNeedle, so a heart in the web player is a favourite in every app, and a playlist you edit in one place changes everywhere.
App-passwords, not your password#
An app-password is a secret made for one app or device. It works only on the two music APIs, never in the web UI or on /api/v3, and your account password never works in an app.
- You make it under Profile › Connect Apps, from a normal browser sign-in. It is shown once.
- You can have up to 25 at a time. One per app or device means you can revoke one without signing the others out.
- It doesn’t expire. It keeps working after Sign out everywhere, which ends browser sessions only (Sessions), and after you sign out inside the app. Revoking it is what cuts an app off.
- Each one records when it was last used and the name of the app that used it, so you can tell which is which. Admins see every user’s app-passwords under Settings › Connect Apps and can revoke any of them, but nobody can read a secret again.
Subsonic apps send the app-password as the password next to your username, or as an OpenSubsonic API key on its own. Jellyfin apps sign in with your username and the app-password as the password.
Signing in through the browser#
Typing a long secret on a phone is tedious, so an app can instead sign you in through the browser, if an admin lists it under Sign-in from apps:
- The app opens a DroppedNeedle page in your browser.
- You sign in if you aren’t already, and the page names the app and the device.
- You press Allow. DroppedNeedle asks every time, even when you are signed in, because another app on the same phone could try to start a sign-in of its own.
- The browser hands the app an ordinary app-password named after the app and the device, listed under Profile › Connect Apps like any other.
Signing in again from the same device replaces that device’s app-password. The full flow, for admins and app authors, is in Signing in apps from the browser.
What apps get#
| Part | What the app sees |
|---|---|
| Library | Every artist, album and track with a file in your DroppedNeedle library, with MusicBrainz ids where DroppedNeedle has them |
| Favourites | The same list as the web player’s hearts: a star in Subsonic apps, a favourite in Jellyfin apps |
| Ratings | Shared with Subsonic apps, both ways. Jellyfin apps don’t show ratings |
| Plays | A play in an app counts like one in the web player, in your history and play counts, and is scrobbled when you scrobble (Connect Last.fm and ListenBrainz) |
| Playlists | Your own and the ones shared with you; other people’s public ones only with Show other people’s public playlists on. You can change the songs of a shared one when its owner lets you edit it |
| Now Playing | What you play in an app shows on Home’s Now Playing, following your Now Playing visibility |
| Lyrics | Lyrics from the track’s files, and from LRCLIB when an admin leaves it on (Lyrics) |
| Pictures | Album and artist pictures, the same ones the web player shows |
The details, including play reporting, picture links and ids, are in Music apps.
What apps don’t get#
- Music from anywhere else. Tracks on a connected Jellyfin, Navidrome or Plex server and YouTube links play only in the web player. A playlist shows in apps with only its songs that have a library file, so a Spotify or media-server import can look short or empty there until its albums are in your library.
- The rest of DroppedNeedle. Requests, downloads, Discover and settings stay in the web UI.
- Jellyfin extras. Only music apps are supported. QuickConnect, remote control, video and live TV aren’t there, and Jellyfin clients other than Finamp, Jellify and Manet (Swiftfin, Infuse, the Jellyfin web client, Kodi, Roku, DLNA) aren’t supported.
Transcoding#
A track streams as its original file unless the app asks for another format or a lower bitrate. Then, with On-the-fly transcoding on and ffmpeg installed, the server converts it as it streams:
- If the app names no bitrate, Opus streams at 128 kbps and MP3 at 192 kbps.
- Nothing goes above the Max bitrate (kbps) an admin set, and nothing below 64 kbps.
- Each person can run two transcodes at once, so gapless players can load the next track early. A transcode the app stops reading for 30 minutes is ended.
With transcoding off, or no ffmpeg, apps get the original file. Finamp’s transcoded playback uses HLS, so it needs transcoding on.
Sign-in limits#
Only sign-in attempts are rate limited, per address. A run of wrong passwords from one address locks it out for a short while. An app still using a revoked app-password doesn’t count toward that, so it can’t lock out other apps on the same network.
What you can change#
- Turn the APIs and transcoding on or off: Turn on streaming to music apps (admins).
- Connect an app: Connect a Subsonic app or Connect a Jellyfin app.
- List apps that may sign in through the browser: For admins.
- Get the addresses apps are given right behind a reverse proxy: Addresses given to player apps.