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

@mushi-mushi/plugin-slack-app

v0.2.2

Published

First-party Slack App plugin (not an Incoming Webhook) for Mushi Mushi — OAuth install, Slash commands (/mushi), interactive buttons, and real-time event subscriptions.

Readme

@mushi-mushi/plugin-slack-app

First-class Slack app for Mushi Mushi. Ships a /mushi slash command, signing-secret verification, OAuth install flow, and a Slack App Manifest you can drop into the Slack API console to provision the app in seconds.

Slack's built-in incoming webhook path is still available via @mushi-mushi/plugin-zapier for one-way notifications. This package is the full bidirectional app: slash commands, interactive buttons, and OAuth scopes for user-scoped actions.

Install

npm i @mushi-mushi/plugin-slack-app

One-time Slack app setup

  1. Go to api.slack.com/appsCreate from manifest.
  2. Paste the contents of manifest.json.
  3. Set the Request URL for slash commands + interactivity to https://<your-host>/slack/command.
  4. Set the Redirect URL for OAuth to https://<your-host>/slack/oauth/callback.
  5. Copy the signing secret + client ID / secret into env vars.

Quick start — Hono server

import { Hono } from 'hono'
import {
  verifySlackRequest,
  buildSlashRouter,
  buildInstallUrl,
  exchangeCode,
} from '@mushi-mushi/plugin-slack-app'

const app = new Hono()
const signingSecret = process.env.SLACK_SIGNING_SECRET!

const router = buildSlashRouter({
  listReports: async (projectId, limit) => mushi.listReports(projectId, limit),
  openReport:  async (id) => mushi.getReport(id),
  transitionReport: async (id, status) => mushi.transition(id, status),
  projectIdForTeam: async (teamId) => db.projectForSlackTeam(teamId),
})

app.post('/slack/command', async (c) => {
  const raw = await c.req.text()
  const verdict = verifySlackRequest({
    signingSecret,
    timestamp: c.req.header('X-Slack-Request-Timestamp') ?? '',
    signature: c.req.header('X-Slack-Signature') ?? '',
    rawBody: raw,
  })
  if (!verdict.ok) return c.json({ error: verdict.reason }, 401)

  const payload = Object.fromEntries(new URLSearchParams(raw)) as never
  return c.json(await router(payload))
})

app.get('/slack/install', (c) => {
  const state = crypto.randomUUID()
  const url = buildInstallUrl(
    {
      clientId: process.env.SLACK_CLIENT_ID!,
      clientSecret: process.env.SLACK_CLIENT_SECRET!,
      redirectUri: process.env.SLACK_REDIRECT_URI!,
      scopes: ['commands', 'chat:write', 'users:read'],
    },
    state,
  )
  return c.redirect(url)
})

/mushi slash command

| Subcommand | Effect | | -------------------- | ------------------------------------------------------ | | /mushi list | 5 most recent reports for the installing team. | | /mushi open <id> | Show classification + summary for one report. | | /mushi resolve <id>| Transition a report to fixed. | | /mushi help | Print the command reference. |

All responses are ephemeral (visible only to the invoking user) unless you override response_type in a custom handler.

Security

  • verifySlackRequest runs HMAC-SHA256 over v0:<timestamp>:<rawBody> and compares in constant time. Reject requests older than 5 minutes to block replay.
  • OAuth token rotation is enabled in the manifest — persist both access_token and refresh_token.
  • Never log the raw payload from interactive actions; Slack embeds the invoking user's email there.

License

MIT