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

@datachef/mus

v1.1.2

Published

Contextual feedback toolbar for React apps — voice recording, thumbs, and Slack support exactly where interpretation happens.

Readme

MUS

Explainability and feedback, embedded exactly where AI output is served.

When AI outputs need to be questioned, explained, or challenged, that should happen right there on the screen. Not in a form. Not in a meeting. MUS makes that possible for any AI product that has a web face.

npm License: MIT


What it looks like

Wrap any output with <FeedbackTarget>. Users hover. A toolbar appears exactly where the output lives.

import { MusProvider, FeedbackTarget } from '@datachef/mus'
import '@datachef/mus/styles.css'

function App() {
  return (
    <MusProvider config={{
      projectName: 'My App',
      slack: {
        proxyUrl: '/api/slack-proxy',
        supportTeamEmails: ['[email protected]'],
        feedbackChannelId: 'C0XXXXXXXXX',
      },
    }}>
      <FeedbackTarget sectionId="ai-summary" sectionName="AI Summary">
        <AISummaryOutput />
      </FeedbackTarget>
    </MusProvider>
  )
}

One hover. No forms. No context switching. The reaction lands in your Slack, attached to the exact section.


What the toolbar does

| Action | What happens | |--------|--------------| | 💬 Support | Opens a dedicated Slack channel between the user and your team. One click, full context already attached | | 🎤 Voice | Records a voice clip (up to 3 min), converted to MP3 and posted to Slack with the section name | | 👍 / 👎 Thumbs | Fire-and-forget: instant signal, zero friction | | ▶ Video | Plays an explainer video attached to that section. Context that stays, not a one-time tour |


Installation

npm install @datachef/mus

For voice feedback, also install the optional audio converter:

npm install ffmpeg-static   # optional; falls back to system ffmpeg

Server setup

The package ships ready-made server handlers. Keep SLACK_BOT_TOKEN on the server and never in the browser.

Next.js (App Router)

// app/api/mus/voice-upload/route.ts
export { POST } from '@datachef/mus/server'

// app/api/mus/standalone-upload/route.ts
export { POSTStandalone as POST } from '@datachef/mus/server'

// app/api/mus/support-channel/route.ts
export { POSTSupportChannel as POST } from '@datachef/mus/server'
# .env.local
SLACK_BOT_TOKEN=xoxb-your-bot-token

Adapter pattern (Slack, Discord, Teams, or custom)

import { createMusHandlers } from '@datachef/mus/server'
import { slackAdapter } from '@datachef/mus/adapters/slack'
import { discordAdapter } from '@datachef/mus/adapters/discord'

export const { POST, POSTStandalone, POSTSupportChannel } = createMusHandlers({
  adapter: [
    slackAdapter({ token: process.env.SLACK_BOT_TOKEN! }),
    discordAdapter({ webhookUrl: process.env.DISCORD_WEBHOOK_URL! }),
  ],
})

Vite SPA (no backend)

// vite.config.ts
import { musVitePlugins } from '@datachef/mus/vite'

export default defineConfig({
  plugins: [react(), ...musVitePlugins()],
})

Production: run the pre-built mus-server Docker image alongside your app. No Node.js server to maintain:

services:
  mus-server:
    image: ghcr.io/datachefhq/mus-server:latest
    environment:
      - SLACK_BOT_TOKEN=${SLACK_BOT_TOKEN}

User identity

MUS auto-fills name and email from your auth system via pluggable resolvers:

import { clerkResolver } from '@datachef/mus/resolvers/clerk'

<MusProvider config={{
  ...
  userResolver: clerkResolver(),
}}>

Built-in resolvers: stytchResolver, clerkResolver, auth0Resolver, nextAuthResolver. Or write your own: a resolver is just a React hook that returns { name, email }.


Full docs

mus.datachef.co: configuration reference, adapters, resolvers, and server setup guides for Next.js / Express / Hono / Vite.


Non-React backends

The component library is React (18 and 19). The server handlers and mus-server Docker image are framework-agnostic, so your backend can be anything.


Contributing

Read CONTRIBUTING.md and open a PR. Issues and feature requests welcome.

License

MIT © DataChef HQ