A Lavalink v4 and NodeLink client for Discord music bots, written in TypeScript. One manager, node and player API for both backends.
npm install magmastreamMix them in one node pool. SonaLink is the SonaraHQ fork of Lavalink and connects as a Lavalink node.
Wrappers ship with the package. Any other library works through the base Manager.
Save and restore player state across restarts with JSON or Redis.
Connect several nodes, set a priority on each and keep backup nodes in reserve with isBackup.
Store queues in memory, in JSON files or in Redis, and restore players after a restart.
Search prefixes for YouTube, SoundCloud, Spotify, Deezer and more. Availability depends on your node plugins, such as LavaSrc or SonaraSrc.
When the queue runs out, pick related tracks from a ranked list of platforms.
Set equalizer, timescale, reverb, echo and other effects per player, or clear them in one call.
Fetch lyrics through LavaLyrics on Lavalink or SonaLink, with lyrics sources from LavaSrc or SonaraSrc. Results come back in one normalized shape.
Extend the Manager by subclassing the Plugin class.
Optionally delete inactive players automatically instead of cleaning them up yourself.
Pulled from npm and the repository APIs, refreshed every 30 minutes.
Recent pushes and publishes, weekly downloads and the most active contributors.
The maintainers answer on Discord. Bug reports, feature requests and pull requests are welcome.