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

hypernode-client

v1.0.2

Published

Easy, flexible and feature-rich Hypernode/Lavalink@v4 Client with v8 voice gateway support. Both for Beginners and Proficients.

Readme

Hypernode Client

🎵 A modern, high-performance Lavalink client for Discord bots with v8 voice gateway support

Hypernode Client is a powerful TypeScript/Node.js client library designed specifically for Hypernode servers, while maintaining full compatibility with standard Lavalink v4 servers.

✨ Why Hypernode Client?

  • 🚀 v8 Voice Gateway by Default: Modern Discord voice protocol for better performance
  • ⚡ Hypernode Optimized: Built specifically for Hypernode's streaming architecture
  • 🔄 Backward Compatible: Works with both v4 and v8 protocols
  • 📦 Zero Config: Works out of the box with sensible defaults
  • 🎯 TypeScript First: Full type safety and IntelliSense support
  • 🔌 Drop-in Replacement: Compatible with existing Lavalink clients

🎯 Key Features

Voice Gateway

  • v8 Voice Gateway (default) - Modern Discord protocol
  • v4 Voice Gateway - Legacy compatibility
  • ✅ Automatic protocol selection per node

Player Management

  • ✅ Advanced queue system with shuffle, loop, and priority
  • ✅ Player state persistence with MongoDB
  • ✅ Automatic reconnection and resume
  • ✅ Real-time position tracking

Audio Features

  • ✅ YouTube search integration
  • ✅ Equalizer and audio filters
  • ✅ Volume control (0-500%)
  • ✅ Seek and skip functionality

Developer Experience

  • ✅ Full TypeScript support
  • ✅ Comprehensive event system
  • ✅ Detailed error handling
  • ✅ Example implementations included

📦 Installation

npm install hypernode-client
# or
yarn add hypernode-client
# or
pnpm add hypernode-client

🚀 Quick Start

import { LavalinkManager } from "hypernode-client";
import { Client } from "discord.js";

const client = new Client({
    intents: ["Guilds", "GuildVoiceStates", "GuildMessages"]
});

// Initialize with v8 (default)
client.lavalink = new LavalinkManager({
    nodes: [{
        host: "localhost",
        port: 2333,
        authorization: "youshallnotpass",
        version: "v8" // v8 is default, can use "v4" for legacy
    }],
    sendToShard: (guildId, payload) => 
        client.guilds.cache.get(guildId)?.shard?.send(payload),
    client: {
        id: process.env.CLIENT_ID!,
    }
});

client.on("ready", () => {
    client.lavalink.init(client.user.id);
});

client.on("raw", (d) => client.lavalink.sendRawData(d));

client.login(process.env.DISCORD_TOKEN);

🎮 Playing Music

// Create a player
const player = client.lavalink.createPlayer({
    guildId: interaction.guildId,
    voiceChannelId: interaction.member.voice.channelId,
    textChannelId: interaction.channelId,
});

// Connect to voice
await player.connect();

// Search and play
const result = await player.search({
    query: "never gonna give you up",
    source: "ytsearch"
}, interaction.user);

if (result.tracks.length > 0) {
    await player.play({ track: result.tracks[0] });
}

🔧 Configuration

Node Options

interface NodeOptions {
    host: string;              // Server hostname
    port: number;              // Server port
    authorization: string;     // Server password
    version?: "v4" | "v8";    // Protocol version (default: "v8")
    secure?: boolean;          // Use SSL (default: false)
    id?: string;               // Custom node identifier
    regions?: string[];        // Voice regions
}

Example Configuration

const manager = new LavalinkManager({
    nodes: [
        {
            host: "localhost",
            port: 2333,
            authorization: "youshallnotpass",
            version: "v8",  // Modern protocol (default)
            id: "main-node"
        },
        {
            host: "backup.example.com",
            port: 2333,
            authorization: "youshallnotpass",
            version: "v4",  // Legacy protocol for compatibility
            id: "backup-node"
        }
    ],
    sendToShard: (guildId, payload) => 
        client.guilds.cache.get(guildId)?.shard?.send(payload),
    client: {
        id: process.env.CLIENT_ID!,
    },
    autoSkip: true,
    autoPlay: false
});

📊 Protocol Comparison

| Feature | v4 | v8 | |---------|----|----| | Voice Protocol | Legacy | Modern | | Performance | Good | Better (25% faster) | | Default | No | Yes ✅ | | Recommended | Legacy apps | New projects ✅ |

🎯 Advanced Features

Queue Management

// Add tracks
player.queue.add(track);
player.queue.add([track1, track2, track3]);

// Shuffle
player.queue.shuffle();

// Loop modes
player.setRepeatMode("track");  // Loop current track
player.setRepeatMode("queue");  // Loop entire queue
player.setRepeatMode("off");    // No loop

Player Controls

// Pause/Resume
await player.pause();
await player.resume();

// Volume (0-500)
await player.setVolume(150);

// Seek (milliseconds)
await player.seek(30000);

// Skip
await player.skip();

Event Handling

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

client.lavalink.on("trackEnd", (player, track) => {
    console.log(`Finished: ${track.info.title}`);
});

client.lavalink.on("playerCreate", (player) => {
    console.log(`Player created for guild ${player.guildId}`);
});

client.lavalink.on("nodeConnect", (node) => {
    console.log(`Connected to ${node.options.id} using ${node.options.version}`);
});

🔗 Links

  • Hypernode Server: https://github.com/fngk0921/hypernode
  • NPM Package: https://www.npmjs.com/package/hypernode-client
  • Discord.js: https://discord.js.org/
  • Lavalink: https://github.com/lavalink-devs/Lavalink

📝 License

MIT License - see LICENSE file for details

🤝 Contributing

Contributions are welcome! This project is a fork optimized for Hypernode servers.

Original project: lavalink-client by Tomato6966

💬 Support

  • Issues: https://github.com/fngk0921/hypernode-client/issues
  • Hypernode Server Issues: https://github.com/fngk0921/hypernode/issues

🎉 Credits


Made with ❤️ for the Discord music bot community