Lavalink plugins and SonaraHQ alternatives
Lavalink plays SoundCloud, Bandcamp, Vimeo, Twitch streams, HTTP URLs and local files itself. YouTube needs the youtube-source plugin, and other sources, recommendations and lyrics come from Lavalink plugins too. Each page of these docs names the plugin a feature needs, for example the LavaSrc plugin for Spotify search.
SonaraHQ is made by the MagmaStream maintainers, and we recommend it. SonaLink is a Lavalink fork that runs on SonaPlayer, our Lavaplayer fork, and SonaraSrc does the job of LavaSrc. They carry fixes that have not landed upstream:
- No delay builds up in Discord clients after pauses, skips and gaps between tracks.
- Marker handlers learn about every seek, and HTTP 308 redirects, partial responses and Ogg files with several streams play correctly.
- Spotify uses the official Web API, a failing lyrics source falls through to the next one, and logins stay out of the logs.
MagmaStream connects to SonaLink as it does to Lavalink, so trying it needs no code changes, and upstream Lavalink keeps working too. SonaraHQ is for Lavalink only: NodeLink does not load Lavalink plugins and has its own sources, lyrics and SponsorBlock support (NodeLink setup).
Mapping
| Upstream | SonaraHQ alternative | What it changes or adds | Install | Runs on |
|---|---|---|---|---|
| Lavalink server | SonaLink | Fork of Lavalink 4.2.2 with the same v4 REST and WebSocket API and the same plugin API. Pauses, skips and gaps between tracks no longer build up delay in Discord clients. Sends the speaking stop signal to Discord again. Runs on SonaPlayer since 1.1.0. | SonaLink.jar from the releases, or Docker image ghcr.io/sonarahq/sonalink:1 | Its own server (Java 25 or newer) |
| LavaSrc plugin | SonaraSrc | Fork of PulseLink, which is based on LavaSrc. Spotify uses the official Web API, and playlists (including Spotify-made ones), recommendations and lyrics use your own Sonara-API. Lyrics sources for Spotify, Deezer, LRCLIB, Genius, YouTube Music, Yandex Music and VK Music. Logins in configured URLs go out as headers and stay out of the logs. | com.github.SonaraHQ:SonaraSrc:1.1.2 from https://jitpack.io | Lavalink 4 and SonaLink |
| LavaLyrics lyrics sources (through LavaSrc) | Lyrics sources of SonaraSrc | SonaraSrc bundles a LavaLyrics build in which a failing source no longer fails the whole lookup: the next source is asked. Live lyrics keep working after a backwards seek. You still install the LavaLyrics plugin. | Same as SonaraSrc, next to the LavaLyrics plugin | Lavalink 4 and SonaLink |
| Lavaplayer | SonaPlayer | Fork of Lavaplayer 2.2.7 with fixes still waiting upstream: marker handlers learn about every seek, HTTP 308 redirects work, partial responses no longer cut tracks short, Ogg files with several streams play, untagged local files use their file name as the title. | Bundled in SonaLink 1.1.0 and newer. For JVM projects: com.github.SonaraHQ.SonaPlayer:lavaplayer:1.0.0 from https://jitpack.io | SonaLink, or any JVM project |
| A Spotify token or resolver server | Sonara-API | Self-hosted Spotify resolver for playlists (up to 10,000 tracks), albums, artist top tracks, search, recommendations and lyrics, with an anonymous token endpoint. Responses follow the Spotify Web API format. SonaraSrc needs it for Spotify playlists, recommendations and lyrics. | Docker image ghcr.io/sonarahq/sonara-api:latest, or from source with Node.js 24 or newer | Its own server, next to Lavalink |
What each plugin unlocks in MagmaStream
| MagmaStream feature | Upstream requirement | SonaraHQ alternative |
|---|---|---|
| Search platforms Apple Music, Deezer, Qobuz, Spotify, Tidal, VK Music and Yandex Music | LavaSrc plugin | SonaraSrc |
| Search platform JioSaavn | JioSaavn plugin | SonaraSrc (jssearch:) |
Autoplay from Spotify (sprec:mix:track:), Deezer (dzrec:), Tidal (tdrec:), VK Music (vkrec:), Qobuz (qbrec:), Yandex Music (ymrec:) | LavaSrc plugin | SonaraSrc |
Autoplay from JioSaavn (jsrec:) | A JioSaavn source with jsrec | SonaraSrc |
| Lyrics on Lavalink | LavaLyrics plugin, plus a plugin that gives it lyrics sources, such as LavaSrc | LavaLyrics plugin, with SonaraSrc as the lyrics source plugin |
| The Lavalink server | Lavalink v4 | SonaLink |
MagmaStream checks the plugin names of a Lavalink node in only a few places:
lyrics need lavalyrics-plugin, SponsorBlock needs sponsorblock-plugin, and
plugin filters look for lavadspx-plugin unless you name other plugins. A
search or autoplay source is not checked by name, so a node with SonaraSrc
serves the prefixes above as a node with LavaSrc does.
SonaraHQ has no alternative to these plugins. Keep the upstream plugin:
- youtube-source for YouTube and YouTube Music playback. SonaLink also removes Lavaplayer's old built-in YouTube source.
- LavaLyrics for the lyrics endpoint.
- SponsorBlock for SponsorBlock on Lavalink.
- LavaDSPX for plugin filters.
- The Audius plugin and the DuncteBot plugin, for the Audius and TTS search platforms.
Install SonaraSrc
Add SonaraSrc to the application.yml of your Lavalink or SonaLink server, and
configure it under plugins.sonara:
lavalink:
plugins:
- dependency: "com.github.SonaraHQ:SonaraSrc:1.1.2"
repository: "https://jitpack.io"
The SonaraSrc README lists every
source, its credentials and the full configuration in
application.example.yml.
For Spotify, host your own Sonara-API:
there is no public instance.
Use SonaLink
SonaLink keeps the Lavalink v4 API, so MagmaStream connects to it as to a
Lavalink node: no option changes. SonaLink removes the deprecated top-level
encodedTrack and identifier fields of the player update request.
MagmaStream sends track.encoded, so it is not affected.
docker run -d -p 2333:2333 -v ./application.yml:/opt/Lavalink/application.yml ghcr.io/sonarahq/sonalink:1
The Lavalink documentation covers the server configuration. Read the SonaLink README for its requirements and every change from Lavalink.