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

multi-channel-discord

v0.1.0

Published

Multi-instance Discord channel for Claude Code — run multiple sessions behind one bot

Readme

multi-channel-discord

Run multiple Claude Code sessions behind one Discord bot. Switch between projects, approve tool calls, and monitor progress — from your phone.

You: /switch frontend
You: fix the login bug
[frontend] Reading auth.ts...          ← typing indicator stays active
[frontend] Found the issue — ...       ← Claude replies in Discord

[backend 📪] 1 new message             ← backend finished while you were away
You: /switch backend                   ← flushes the buffered reply

What it does

Anthropic's official Discord plugin connects one Claude Code session per bot. This fork adds a router between Discord and your sessions, so you can run as many as you want simultaneously.

Session management/switch, /list, /kill, /broadcast, /spawn as native Discord slash commands with autocomplete. Sessions auto-name from your git branch.

Permission relay — Claude needs to run a command? You get yes/no buttons in Discord. Tap to approve from your phone without touching the terminal.

Interactive questions — When Claude needs your input, it sends Discord buttons or select menus instead of walls of text. Pick an option by tapping.

Skill discovery — Your Claude Code skills (/commit, /deploy, etc.) auto-register as Discord slash commands. Type / and they're all there.

Live progress — Bot shows a typing indicator while Claude works. Progress updates edit a single message instead of spamming new ones.

Bot presence — Discord status shows what session is active and how many are connected.

Buffering — Replies from inactive sessions are queued and flushed when you switch back. Nothing gets lost.

Setup

You need Bun and a Discord account.

Create the bot

  1. Discord Developer Portal → New Application
  2. Bot → give it a username → Reset Token → copy it (shown once)
  3. Enable Message Content Intent under Privileged Gateway Intents
  4. OAuth2 → URL Generator → scope: bot → permissions: Send Messages, Read Message History, Add Reactions, Attach Files → open the URL → add bot to a server

Install the plugin

In Claude Code:

/plugin marketplace add YassinCh/multi-channel-discord
/plugin install discord@multi-channel-discord

Configure the token

/discord:configure <your-bot-token>

Start the router

The router is the Discord bot. Run it in a terminal you'll leave open:

bunx multi-channel-discord

Or from Claude Code: /discord:start-router

Launch Claude Code

In any project directory:

claude --dangerously-load-development-channels plugin:discord@multi-channel-discord

Pair

DM your bot → it replies with a code → run /discord:access pair <code> in Claude Code → done.

Then lock it down: /discord:access policy allowlist

Commands

Discord slash commands (ephemeral responses, only you see them):

| Command | What it does | |---------|-------------| | /switch <session> | Activate a session. Autocompletes names. Flushes buffered messages. | | /list | All sessions with status — active, idle, or N buffered. | | /status | Router uptime, instance count, queued messages. | | /kill <session\|all> | Terminate sessions. | | /broadcast <msg> | Send to every connected session. | | /spawn <project> | Launch Claude Code in a recent project directory. | | /help | Show all commands. | | /<skill> [args] | Any of your Claude Code skills — auto-discovered and registered. |

Claude Code terminal commands (not Discord):

| Command | What it does | |---------|-------------| | /discord:configure | Save bot token, check status. | | /discord:access | Manage pairing, allowlists, DM policy. |

How it works

Discord DM ──→ Router (bot + WS server) ──→ Active session's Claude Code
                  │
                  ├── Session: feature/login   (Claude Code instance)
                  ├── Session: backend-api      (Claude Code instance)
                  └── Session: infra            (Claude Code instance)

The router runs the Discord bot, handles access control, manages sessions, and owns all Discord API calls. Each Claude Code instance runs a plugin that connects to the router via WebSocket. The plugin exposes tools to Claude (reply, react, edit, fetch, ask) but never talks to Discord directly.

Sessions are named from your git branch, package.json name, or directory. Collisions get suffixes (frontend, frontend-2).

Tools

These are MCP tools Claude can call when responding to Discord messages:

| Tool | Purpose | |------|---------| | reply | Send a message. Supports threading (reply_to), file attachments, auto-chunking. | | react | Emoji reaction on a message. | | edit_message | Update a sent message in-place (progress updates). | | fetch_messages | Read channel history (max 100 messages). | | download_attachment | Save attachments to local inbox. | | ask_user | Send buttons or select menu, wait for user's choice. |

Access control

Default policy is pairing — unknown senders get a code to approve. Switch to allowlist after setup.

/discord:access                    # status
/discord:access pair <code>        # approve someone
/discord:access allow <id>         # add by user ID
/discord:access remove <id>        # remove
/discord:access policy allowlist   # recommended after setup

Details in ACCESS.md.

Updating

./deploy.sh    # rebuilds and deploys to Claude Code's plugin cache

Restart Claude Code sessions after deploying. The router can stay running.

Development

bun test       # 100 tests
bun run check  # type checking

License

Apache-2.0. Forked from Anthropic's official Discord plugin.