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

@open-neko/plugin-slack

v0.5.0

Published

Slack for OpenNeko: a bidirectional channel (Block Kit briefings, findings and inline Approve/Reject; messages and button taps come back as agent intents) plus actions to post messages, send DMs, react, and look up users/channels. Runs in a sandbox VM wit

Readme

@open-neko/plugin-slack

Slack for OpenNeko: a bidirectional channel (DM the agent, @-mention it in a channel, run /openneko slash commands — it replies like the web /work UI) plus actions (post messages, send DMs, react, look up users/channels). The action handlers run inside a microsandbox microVM whose outbound network is limited to slack.com; inbound is carried by the worker over Slack Socket Mode.

Install

# From the official OpenNeko marketplace (verified integrity hash):
openneko install @open-neko/plugin-slack

# Or, bypassing every marketplace (e.g. while testing a local build):
openneko install @open-neko/plugin-slack --unverified

During install the CLI prompts for SLACK_BOT_TOKEN (hidden) and stores it in the per-user secrets file at ~/.config/openneko/secrets.json (0600 perms). The worker injects it into the plugin's VM at exec time — the token never lands in openneko.plugins.json or in action_request.payload.

Update the token any time:

openneko secrets set @open-neko/plugin-slack SLACK_BOT_TOKEN

Slack app setup

Create a Slack app at https://api.slack.com/apps. Required bot-token scopes (under OAuth & Permissions):

| Scope | Used by | |---|---| | chat:write | send_slack_message, send_slack_dm | | im:write | send_slack_dm | | reactions:write | react_slack_message | | users:read | lookup_slack_entity (both modes) | | users:read.email | lookup_slack_entity (user_by_email) | | channels:read | lookup_slack_entity (channel_by_name, public channels) | | groups:read | lookup_slack_entity (channel_by_name, private channels) |

Install the app to your workspace and copy the xoxb-... bot token.

Conversational mode: DMs, @-mentions & slash commands

Beyond actions, the plugin is a channel — the agent answers Slack the same way it answers the web /work UI, with per-conversation memory. Inbound arrives over Socket Mode, so no public URL is required (works on laptops and private hosts).

  • 1:1 DM — message the bot; it replies in the DM and remembers the thread.
  • @-mention in a channel — mention the bot; it replies in a thread. Plain channel chatter is ignored — by default the bot only hears DMs and explicit mentions. Optional thread follow-up: with message.channels subscribed it also continues a thread it already owns when you reply without re-mentioning it (replies in threads it doesn't own are still dropped).
  • Slash commands — one umbrella command /openneko; the first word is the sub-command (/openneko rules-list …). Replies are ephemeral (invoker-only).

Slack app setup (one-time)

  1. OAuth & Permissions → add bot scopes im:history and app_mentions:read (the action scopes above already cover replies; chat:write handles ephemerals).
  2. Socket Mode → enable. Basic Information → App-Level Tokens → generate a token with connections:write (starts xapp-).
  3. Event Subscriptions → enable; subscribe to bot events message.im and app_mention. Optional: also subscribe message.channels (+ scope channels:history) for thread follow-up — the bot then continues a thread it already owns without a re-mention. Trade-off: Slack delivers every channel message to the bot (the worker drops top-level and unknown-thread ones), so leave it off if you don't want that volume.
  4. Slash Commands → create /openneko (the Request URL is ignored under Socket Mode — any placeholder works).

Store the tokens

openneko secrets set @open-neko/plugin-slack SLACK_BOT_TOKEN   # xoxb-…
openneko secrets set @open-neko/plugin-slack SLACK_APP_TOKEN   # xapp-… enables inbound

Without SLACK_APP_TOKEN the plugin stays outbound/action-only and inbound is disabled (the worker logs this once). SLACK_SIGNING_SECRET is only for the legacy webhook ingress — Socket Mode doesn't use it.

Actions

send_slack_message

| Field | Value | |---|---| | Payload | { channel, text, blocks?, thread_ts? } | | Result | { channel, ts, permalink: null } |

channel may be a channel id (C0123…) or #name. Prefer id — name lookups cost an extra API call (use lookup_slack_entity to resolve once and cache).

send_slack_dm

| Field | Value | |---|---| | Payload | { user, text, blocks? } | | Result | { user, channel, ts } |

user is a user id (e.g. U0123…). The plugin opens an IM via conversations.open then posts.

react_slack_message

| Field | Value | |---|---| | Payload | { channel, timestamp, name } | | Result | { channel, timestamp, name } |

name is the emoji shortcode (thumbsup, not :thumbsup: — leading/trailing colons are stripped).

lookup_slack_entity

| Field | Value | |---|---| | Payload | { kind: "user_by_email" \| "channel_by_name", value } | | Result | { kind, id, name } |

user_by_email calls users.lookupByEmail. channel_by_name pages through conversations.list (up to 10 pages of 1000 channels each = 10k channels max).

Capabilities (manifest)

network:
  - slack.com
env:
  - SLACK_BOT_TOKEN      # required, secret (xoxb-…)
  - SLACK_APP_TOKEN      # optional, secret (xapp-…) — enables inbound over Socket Mode
  - SLACK_SIGNING_SECRET # optional, secret — only for legacy webhook ingress

The OpenNeko loader translates the network declaration into the plugin VM's network policy. Any attempt by the plugin to reach a different host is blocked at the VM boundary.

Local development

pnpm install
pnpm test
pnpm build           # → dist/run.js (bundled, ~50 KB)
SLACK_BOT_TOKEN=xoxb-... node dist/run.js register '{}'

License

Apache-2.0