npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, πŸ‘‹, I’m Ryan HefnerΒ  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you πŸ™

Β© 2026 – Pkg Stats / Ryan Hefner

@ramkrishna-js/framelink

v1.2.0

Published

πŸš€ A feature-rich, high-performance Lavalink client (v3 & v4) for Node.js with built-in filters, queue management, and plugin support.

Readme

A lightweight, robust, and plugin-ready Lavalink client (v3 & v4) for Node.js.

npm version npm downloads license stars


πŸ“„ Documentation | πŸ’¬ Discord Support | πŸ“¦ NPM

πŸ“š Documentation

Check out our comprehensive documentation for detailed guides, API reference, and examples.

πŸ€– Example Bot

Looking for a ready-to-use implementation? Check out our official music bot example. It's fully featured with slash commands and beautiful music cards.

🎨 Visuals (FrameCard)

Enhance your bot's user experience with @ramkrishna-js/framecard. It's perfectly integrated with Framelink to generate beautiful music cards for every track.

npm install @ramkrishna-js/framecard

Features

  • Universal Support: Seamlessly works with Lavalink v3 and v4.
  • Multi-Platform: Built-in support for YouTube, Spotify, Apple Music, Deezer, and more.
  • Performance: Optimized for speed with minimal memory footprint.
  • Advanced Queue: Smart queue system with shuffling, moving, and track manipulation.
  • Aggressive Autoplay: Intelligent recommendation system for continuous playback.
  • Extensible: Robust plugin system to customize your experience.
  • Type-Safe: Written entirely in TypeScript for a superior DX.

Installation

npm install @ramkrishna-js/framelink

Quick Start

Initializing the Manager

import { LavalinkManager } from '@ramkrishna-js/framelink';

const manager = new LavalinkManager({
    nodes: [
        {
            host: 'localhost',
            port: 2333,
            password: 'youshallnotpass',
            version: 'v4' // or 'v3'
        }
    ],
    send: (guildId, payload) => {
        // Your library's send logic (Discord.js, Eris, etc.)
    }
});

manager.init('YOUR_BOT_ID');

Creating a Player & Playing

const player = manager.createPlayer({
    guildId: 'GUILD_ID',
    voiceChannelId: 'VOICE_CHANNEL_ID',
    textChannelId: 'TEXT_CHANNEL_ID',
    autoplay: true
});

// Search for a track
const res = await manager.search('Never Gonna Give You Up', 'yt');

// Add to queue and play
player.queue.add(res.tracks[0]);
player.play();

Event Handling

manager.on('nodeConnect', (node) => {
    console.log(`Node ${node.options.host} connected!`);
});

manager.on('trackStart', (player, track) => {
    console.log(`Now playing: ${track.info.title}`);
});

manager.on('queueEnd', (player) => {
    console.log(`Queue ended for guild ${player.guildId}`);
});

Player & Queue Controls

FrameLink provides comprehensive control over your music session:

Player Methods

  • player.pause(state: boolean) - Pause or resume playback.
  • player.resume() - Alias for player.pause(false).
  • player.skip() - Skip the current track.
  • player.previous() - Play the previous track.
  • player.seek(position: number) - Seek to a specific position (ms).
  • player.setVolume(volume: number) - Set the player volume (0-1000).
  • player.setFilters(filters: any) - Apply Lavalink filters.
  • player.connect(options) - Join a voice channel.
  • player.disconnect() - Leave a voice channel.

Queue Methods

  • player.queue.add(track | track[]) - Add tracks to the queue.
  • player.queue.remove(index) - Remove a track by index.
  • player.queue.move(from, to) - Move a track within the queue.
  • player.queue.shuffle() - Randomize the queue order.
  • player.queue.clear() - Clear all tracks from the queue.
  • player.queue.skipTo(index) - Skip directly to a specific track index.
  • player.queue.removeDuplicates() - Remove duplicate tracks from the queue.

Aggressive Autoplay

Enable autoplay: true in your player options to automatically play related tracks when the queue ends. FrameLink uses an aggressive strategy to ensure the music never stops by fetching recommendations based on the previous track's source.

Supported Platforms

FrameLink supports any platform compatible with Lavalink and its plugins (like LavaSrc):

  • YouTube / YouTube Music
  • Spotify
  • Apple Music
  • Deezer
  • SoundCloud
  • Twitch
  • HTTP Links

Plugins

FrameLink is built with extensibility in mind. You can easily create and load plugins to extend the manager's functionality.

import { Plugin } from '@ramkrishna-js/framelink';

class MyCustomPlugin extends Plugin {
    name = 'MyPlugin';
    load(manager) {
        super.load(manager);
        console.log('Plugin loaded!');
    }
    unload() {}
}

const manager = new LavalinkManager({
    // ... other options
    plugins: [new MyCustomPlugin()]
});

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

Please see CONTRIBUTING.md for more details.

License

Distributed under the MIT License. See LICENSE for more information.

Built with ❀️ by Ramkrishna