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

amagi

v1.2.4

Published

A lavalink track search module

Readme

Amagi

A lavalink search wrapper with ratelimit protection. Fully customizable

Take note this module only handles search, not playing music, thus it's customizable.

Amagi

Amagi © Azur Lane

Features

Hmm not much tbh
✓ Easy to use
✓ Pretty stable
✓ Author is responsible with bugs*
✓ Cache support**
✓ Customizable***
✓ Auto-disable rate limited node and use another
✓ Anime character 💖💖💖💖

Documentation

Pls read me

Installation

npm i amagi

Plugins

You can use mostly any plugins with load, unload, and with some binds inside it. Tested with erela.js's and kazagumo's plugin. Because this module's plugin is universal, of course the result will not be the same as Amagi's Promise<SearchResult>. Handle it your own. Better to make/modify your own plugin so the response matches Amagi's.

Why this module

I want to make a different manager for lavalink search so my main lavalink player is not disturbed. Best for massive search, you can add unlimited nodes except your node to prevent 429!

Example

const { Amagi } = require('../');

const NODES = [{
    host: 'you.weeb:443',
    auth: 'weebMaster',
    secure: true,
    identifier: 'NODE-WEEB-01'
}, {
    host: 'me.weeb:8080',
    auth: 'weebSenpai',
    identifier: 'NODE-WEEB-02'
}]

const amagi = new Amagi(NODES, {
    cache: {
        enabled: true,
        type: 'memory'
    },
    modifyTracks: (track) => ({ track: track.track, title: track.info.title })
}); // see all available options here https://takiyo0.github.io/Amagi/interfaces/Index.AmagiOptions.html

// Scientific purpose
amagi.on('debug', console.log);
amagi.on('request', console.log);

// Init the module first
amagi.init().then(run);

function run() {
    amagi.search('wonder caravan', { engine: 'youtubeMusic' }).then(r => console.log(r)).catch(e => console.log(e));
}

Notes

*= Depend on the author's availability
**= Only works for non-plugin result
***= Track is customizable, plugins can customize the module