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

@mrgoonie/disco-cli

v0.1.0

Published

Discord bot management CLI built on discord.js v14

Readme

disco-cli

Discord bot management CLI built on discord.js v14.

Designed for both humans (clean, scriptable output) and AI agents (--json everywhere, structured errors with hints).

Install

pnpm add -g @mrgoonie/disco-cli
# or run without installing
pnpm dlx @mrgoonie/disco-cli --help

Requirements: Node ≥ 18.17.

Quick start

# 1. authenticate (token saved to user config under 0o600)
disco login YOUR_BOT_TOKEN
disco whoami

# 2. talk to your guild
disco guild list
disco channel list <guildId>
disco message send <channelId> --content "Hello, world"

# 3. moderate
disco member ban <guildId> <userId> --reason "spam"
disco member timeout <guildId> <userId> 30m
disco automod list <guildId>

# 4. tap the gateway
disco listen --events messageCreate,guildMemberAdd

Auth resolution

First match wins:

  1. --token <v> flag
  2. DISCORD_BOT_TOKEN env
  3. .env.local.env in CWD
  4. User config: %APPDATA%\disco-cli\config.json (Windows) / ~/.config/disco-cli/config.json (XDG)
  5. Project config: ./.discorc.json

Tokens are never logged. disco doctor shows which layer resolved the token.

Output

  • Human-readable by default
  • --json on any command for machine output
  • Honors NO_COLOR and --no-color
  • Stable exit codes:
    • 0 ok
    • 1 user error / not found / permission denied
    • 2 auth missing / invalid
    • 3 Discord API / rate limited
    • 4 runtime

Command surface

| Group | Commands | |-----------|-----------------------------------------------------------------------------------------| | Auth | login, logout, whoami, doctor, config get|set | | Listen | listen | | Guild | guild list|info|leave|edit | | Channel | channel list|info|create|edit|delete | | Message | message send|edit|delete|list|react|pin|unpin | | Member | member list|info|kick|ban|unban|timeout|set-nickname|ban-list | | Role | role list|create|edit|delete|assign|remove | | Thread | thread create|list|archive|unarchive|join|leave | | Webhook | webhook list|create|delete|send | | Invite | invite list|create|delete | | Emoji | emoji list|create|delete | | Sticker | sticker list|create|delete | | Commands | command list|register|delete|sync (application/slash) | | Events | event list|create|delete (guild scheduled events) | | AutoMod | automod list|create|delete |

Run disco <group> --help for full flags.

Use as a library

import { withClient, guilds, messages } from "@mrgoonie/disco-cli";

await withClient(process.env.DISCORD_BOT_TOKEN!, async (client) => {
  const list = await guilds.listGuilds(client);
  console.log(list);
  await messages.sendMessage(client, { channelId: "123", content: "hi" });
});

Development

pnpm install
pnpm dev -- whoami      # run CLI from source
pnpm test
pnpm typecheck
pnpm build

License

MIT