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

@cartage/paperclip-plugin-slack-agent

v0.1.17

Published

Generic Slack-chat plugin — connect one or more Paperclip agents to Slack via @mention or DM

Readme

@cartage/paperclip-plugin-slack-agent

Connect one or more Paperclip agents to Slack. Each agent answers @mentions and DMs in its Slack workspace: a mention opens a Paperclip issue, the agent's replies post back into the Slack thread, and follow-up messages continue the same issue.

Install

Install at runtime via the Paperclip plugins API (no redeploy needed):

curl -X POST "$PAPERCLIP_URL/api/plugins/install" \
  -H "Authorization: Bearer $BOARD_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{ "packageName": "@cartage/paperclip-plugin-slack-agent", "version": "0.1.17" }'

Configure

Tokens are supplied per agent in the plugin config — one Slack app per agent. Set the agents array via the config API:

curl -X PUT "$PAPERCLIP_URL/api/plugins/$PLUGIN_ID/config" \
  -H "Authorization: Bearer $BOARD_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "agents": [{
      "agentId":         "<paperclip-agent-id>",
      "companyId":       "<paperclip-company-id>",
      "slackBotToken":   "xoxb-...",
      "slackSigningSecret": "...",
      "slackBotUserId":  "U........",
      "displayName":     "Stan"
    }]
  }'

| Field | Description | |-------|-------------| | agentId | Paperclip agent that owns this Slack identity | | companyId | Paperclip company the agent belongs to | | slackBotToken | Slack Bot User OAuth Token (xoxb-…) | | slackSigningSecret | Slack app Signing Secret (used to verify inbound events) | | slackBotUserId | Bot's Slack member ID (U…) — used to ignore the bot's own messages | | displayName | Optional label for logs |

Slack app setup

  1. Event Subscriptions → Request URL: $PAPERCLIP_URL/api/plugins/$PLUGIN_ID/webhooks/slack-events (the url_verification challenge is echoed automatically)
  2. Subscribe to bot events: app_mention, message.channels, message.im (and message.groups if the bot operates in private channels). message.channels is required for thread replies in public channels — without it Slack only delivers the initial @mention, and follow-ups in the thread are never received.
  3. OAuth scopes: app_mentions:read, chat:write, channels:history, im:history, im:read, reactions:write (add groups:history for private channels)
  4. Install the app to the workspace and copy the Bot Token + Signing Secret into the config above.

Behavior

  • @mention in a channel → 👀 reaction → new Paperclip issue → agent reply posts in-thread
  • Reply in the thread → continues the same issue (multi-turn)
  • DM → same flow in the DM channel
  • Duplicate Slack event_ids are de-duplicated (one reply per event)
  • Inbound events are HMAC-verified against the agent's signing secret; forged signatures are rejected

License

MIT