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

@openpalm/channel-discord

v0.11.5

Published

Discord bot channel adapter for OpenPalm

Downloads

3,134

Readme

@openpalm/channel-discord

Discord bot adapter for OpenPalm. It runs behind guardian and is normally enabled via the addon.discord Compose profile.

Features

  • Gateway-based Discord bot connection
  • Slash commands: /ask, /queue, /health, /help, /clear
  • Mention-to-thread conversations
  • Guild, role, and user allowlists plus user blocklist
  • Deferred responses, typing indicators, queued follow-ups, and long-reply splitting

Deployment model

  • Shipped service definition: .openpalm/config/stack/channels.compose.yml, profile addon.discord
  • Non-secret values: ~/.openpalm/knowledge/env/stack.env
  • Secret values: files under ~/.openpalm/knowledge/secrets/

Manual start example:

cd "$HOME/.openpalm/config/stack"
docker compose \
  --project-name openpalm \
  --env-file stack.env \
  -f core.compose.yml \
  -f services.compose.yml \
  -f channels.compose.yml \
  -f custom.compose.yml \
  --profile addon.discord \
  up -d

See docs/channels/discord-setup.md for the full walkthrough.

The service definition uses explicit non-secret environment entries and Docker secret grants. It does not use service-level env_file.

Environment variables

| Variable | Required | Purpose | |---|---|---| | CHANNEL_SECRET_FILE | system-managed | Discord channel outbound guardian HMAC secret file path | | CHANNEL_DISCORD_SECRET_FILE | system-managed | Guardian verification HMAC secret file path for Discord | | DISCORD_APPLICATION_ID | yes for command registration | Discord application ID | | DISCORD_BOT_TOKEN_FILE | yes | Bot token file path | | DISCORD_REGISTER_COMMANDS | no | Disable startup command registration when false | | DISCORD_ALLOWED_GUILDS | no | Comma-separated guild allowlist | | DISCORD_ALLOWED_ROLES | no | Comma-separated role allowlist | | DISCORD_ALLOWED_USERS | no | Comma-separated user allowlist | | DISCORD_BLOCKED_USERS | no | Comma-separated user blocklist | | DISCORD_CUSTOM_COMMANDS | no | JSON array of custom command definitions |

Secret values are stored as files and exposed only through *_FILE variables. The schema may collect DISCORD_BOT_TOKEN for setup, but setup persists it under knowledge/secrets/ and the runtime receives DISCORD_BOT_TOKEN_FILE, not the raw token.

Conversation behavior

  • Mentioning the bot in a normal channel starts or reuses a Discord thread
  • Replies inside that tracked thread keep the same backend session
  • /ask replies inline and does not create a thread
  • /clear clears the active conversation scope and drops queued follow-ups for that scope