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 🙏

© 2025 – Pkg Stats / Ryan Hefner

kirito.aqualink

v1.0.0

Published

An Lavalink client, focused in pure performance and features

Readme

NPM Downloads NPM Version GitHub Stars Discord

💎 Why Choose Aqualink?

📦 Installation

Latest Stable Release: v2.11.7Choose your preferred package manager below

# 🎯 Stable release (recommended for production)
npm install aqualink

# 🚧 Latest development build
npm install ToddyTheNoobDud/aqualink
# 🎯 Stable release (recommended for production)
yarn add aqualink

# 🚧 Latest development build
yarn add ToddyTheNoobDud/aqualink
# 🎯 Stable release (recommended for production)
bun add aqualink

# 🚧 Latest development build
bun add ToddyTheNoobDud/aqualink
# 🎯 Stable release (recommended for production)
pnpm add aqualink

# 🚧 Latest development build
pnpm add ToddyTheNoobDud/aqualink

🔥 Feature Highlights

📦 Resources

💻 Quick Start

npm install aqualink discord.js
const { Aqua } = require("aqualink");
const { Client, GatewayIntentBits, Events } = require("discord.js");

const client = new Client({
    intents: [
        GatewayIntentBits.Guilds,
        GatewayIntentBits.GuildMembers,
        GatewayIntentBits.GuildMessages,
        GatewayIntentBits.MessageContent,
        GatewayIntentBits.GuildVoiceStates
    ]
});

const nodes = [
    {
        host: "127.0.0.1",
        password: "your_password",
        port: 2333,
        secure: false,
        name: "main-node"
    }
];

const aqua = new Aqua(client, nodes, {
    defaultSearchPlatform: "ytsearch",
    restVersion: "v4",
    autoResume: true,
    infiniteReconnects: true,
    autoplayPlatform: ['spsearch', 'ytsearch', 'scsearch'],
    nodeResolver: 'LeastLoad'
});

client.aqua = aqua;

client.once(Events.Ready, () => {
    client.aqua.init(client.user.id);
    console.log(`Logged in as ${client.user.tag}`);
});

client.on(Events.Raw, (d) => {
    if (![Events.VoiceStateUpdate, Events.VoiceServerUpdate].includes(d.t)) return;
    client.aqua.updateVoiceState(d);
});

client.on(Events.MessageCreate, async (message) => {
    if (message.author.bot || !message.content.startsWith("!play")) return;

    const query = message.content.slice(6).trim();
    if (!query) return message.channel.send("Please provide a song to play.");

    // Check if user is in a voice channel
    if (!message.member.voice.channel) {
        return message.channel.send("You need to be in a voice channel to play music!");
    }

    const player = client.aqua.createConnection({
        guildId: message.guild.id,
        voiceChannel: message.member.voice.channel.id,
        textChannel: message.channel.id,
        deaf: true,
    });

    try {
        const resolve = await client.aqua.resolve({ query, requester: message.member });
        const { loadType, tracks, playlistInfo } = resolve;

        if (loadType === 'playlist') {
            for (const track of tracks) {
                player.queue.add(track);
            }
            message.channel.send(`Added ${tracks.length} songs from ${playlistInfo.name}.`);
        } else if (loadType === 'search' || loadType === 'track') {
            const track = tracks[0];
            player.queue.add(track);
            message.channel.send(`Added **${track.title}** to the queue.`);
        } else {
            return message.channel.send("No results found.");
        }

        if (!player.playing && !player.paused) {
            player.play();
        }
    } catch (error) {
        console.error("Playback error:", error);
        message.channel.send("An error occurred while trying to play the song.");
    }
});

client.aqua.on("nodeConnect", (node) => {
    console.log(`Node connected: ${node.name}`);
});

client.aqua.on("nodeError", (node, error) => {
    console.log(`Node "${node.name}" encountered an error: ${error.message}.`);
});

client.aqua.on('trackStart', (player, track) => {
    const channel = client.channels.cache.get(player.textChannel);
    if (channel) channel.send(`Now playing: **${track.title}**`);
});

client.aqua.on('queueEnd', (player) => {
    const channel = client.channels.cache.get(player.textChannel);
    if (channel) channel.send('The queue has ended.');
    player.destroy();
});

client.login("YOUR_DISCORD_BOT_TOKEN");

Additional Commands You Can Add:

client.on(Events.MessageCreate, async (message) => {
    if (message.content === "!skip") {
        const player = client.aqua.players.get(message.guild.id);
        if (player) {
            player.skip();
            message.channel.send("⏭️ Skipped current track!");
        }
    }
});

client.on(Events.MessageCreate, async (message) => {
    if (message.content === "!stop") {
        const player = client.aqua.players.get(message.guild.id);
        if (player) {
            player.destroy();
            message.channel.send("⏹️ Stopped playback and cleared queue!");
        }
    }
});

🌟 Featured Projects

View All Projects →

300+ weekly downloads • 3+ GitHub stars • 3+ Discord bots

📖 Documentation

For detailed usage, API references, and examples, check out our official documentation:

Docs

📌 Get Started Quickly

  • Installation guide
  • API methods
  • Advanced features
  • Troubleshooting

🔗 Visit: Aqualink Docs

👑 Premium Bots Using Aqualink

| Bot | Invite Link | Features | |-----|-------------|----------| | Kenium | Add to Discord | Audio streaming, Discord integration | | Soya Music | Add to Discord | Audio streaming, Discord integration |

🛠️ Advanced Features

👥 Contributors

Become a contributor →

🤝 Contributing

We welcome contributions from developers of all skill levels! Whether it's adding features, fixing bugs, or improving documentation.

PRs Welcome

💬 Community & Support

Join our thriving community of developers and bot creators!

Discord Server GitHub Discussions

Built with 💙 by the Aqualink Team