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

@yume.lol/yume.js

v1.1.5

Published

Open yume.lol bot SDK (pure JavaScript, zero API keys). Reads any public profile — avatar, banner, cursor, socials, QR — and lets you build any Discord / Telegram / custom bot with commands you define yourself.

Downloads

44

Readme

@yume.lol/yume.js

The open yume.lol bot SDK — pure JavaScript, zero API keys, zero secrets.

Build any bot you want (Discord, Telegram, Twitch, Slack, webhooks, anything) and register any commands you want. It only reads public profile data — exactly what anyone sees when they open a yume.lol profile: name, avatar, banner, bio, socials, badges, theme/cursor, stats and QR code.

Private and sensitive data is never accessible through this SDK.

Install

npm install @yume.lol/yume.js

Requires Node 18+ (global fetch). No runtime dependencies.

Quick start

Read any public profile

const { createYumeClient } = require("@yume.lol/yume.js");

const yume = createYumeClient(); // no API key

const profile = await yume.getProfile("someone");
console.log(profile.displayName, profile.avatar, profile.views);

The returned profile includes:

| Field | Meaning | | ------------ | ------------------------------------ | | username | username | | displayName| display name | | url | profile URL | | avatar | avatar image URL | | banner | banner image URL | | bio | bio text | | socials | public social links | | badges | badges | | views | profile view count | | theme | theme / cursor / effect settings | | qrUrl | QR code image URL |

Convenience getters: getSocials(), getBadges(), getStats(), getTheme(), getQR().

Discord bot (fully open commands)

const { createYumeClient, createDiscordBot, defaultCommands } = require("@yume.lol/yume.js");
const { Client } = require("discord.js");

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

const bot = createDiscordBot({
  client,
  yume,
  prefix: "!",
  commands: [
    ...defaultCommands(yume), // optional built-ins: profile, socials, stats, badges, qr, theme   
    {
      name: "ping",
      description: "Replies with pong",
      run: () => "pong 🏓",
    },
    {
      name: "avatar",
      description: "Gets a user's public avatar",
      usage: "<username>",
      run: async (ctx) => {
        const p = await ctx.client.getProfile(ctx.args[0]);
        return p.avatar ? `🖼 ${p.avatar}` : "No avatar set.";
      },
    },
  ],
});

bot.start(process.env.DISCORD_TOKEN);

Works with discord.js v13+/v14+, discordeno, oceanic, or any client exposing client.on("messageCreate", handler).

Telegram bot (zero dependencies, long polling)

const { createYumeClient, createTelegramBot, defaultCommands } = require("@yume.lol/yume.js");

const bot = createTelegramBot({
  token: process.env.TELEGRAM_TOKEN,
  yume: createYumeClient(),
  commands: [...defaultCommands(yume)],
});

bot.startPolling();

Any other platform

const { createCommandRouter } = require("@yume.lol/yume.js");

const route = createCommandRouter({
  yume,
  commands: [
    {
      name: "hello",
      description: "Says hello",
      run: (ctx) => `Hello, ${ctx.platform?.user ?? "stranger"}!`,
    },
  ],
});

// wire it into your own chat transport
const { handled, reply } = await route(text, { user: sender }, (t) => send(t));

Command API

A command is just:

{
  name: "command-name",          // required, unique, no spaces
  description: "What it does",   // shown in /help
  usage: "<username>",           // optional usage hint
  run: async (ctx) => "reply",   // returns the reply text
}

run receives a context with:

  • ctx.client — the YumeOpenClient (public data access)
  • ctx.args — argument array
  • ctx.rest — raw remainder of the message
  • ctx.message — the raw platform message
  • ctx.reply(text) — send a reply
  • ctx.platform — platform info (generic router)
  • ctx.commands — the command registry

Throw new YumeError("message", "CODE") to send an error reply.

What is NOT accessible

  • Email, password, secrets, tokens, private data of any kind
  • Anything behind "require login to view" (private profiles return an error)
  • Account mutation endpoints (the SDK is read-only by design)

API

createYumeClient({ baseUrl?, timeout? }) → YumeOpenClient

  • getProfile(username) → full public profile
  • getSocials(username) → social links
  • getBadges(username) → badges array
  • getStats(username) → { views }
  • getTheme(username) → theme/cursor settings
  • getQR(username) → QR image URL
  • ping() → true if reachable

createCommandRegistry(commands) → registry with add, get, has, list.

defaultCommands(client) → optional built-in commands (profile, socials, stats, badges, qr, theme).

attachDiscord(options) / createDiscordBot(options) → Discord adapter.

YumeTelegram(options) / createTelegramBot(options) → Telegram adapter (startPolling, handleUpdate, sendMessage, stop).

createCommandRouter({ yume, commands, prefix }) → generic router returning { handled, reply }.

Test

npm test