Installation
Install
Section titled “Install”# npmnpm install @datachef/mus
# pnpmpnpm add @datachef/mus
# yarnyarn add @datachef/musQuick start
Section titled “Quick start”1. Import styles
Section titled “1. Import styles”Add the CSS import once, usually in your entry file or root layout:
import '@datachef/mus/styles.css'2. Wrap your app with MusProvider
Section titled “2. Wrap your app with MusProvider”MusProvider provides configuration to all FeedbackTarget components in the tree. Put it high up, above your router.
import { MusProvider } from '@datachef/mus'import '@datachef/mus/styles.css'
function App() { return ( <MusProvider config={{ projectName: 'My App', slack: { proxyUrl: '/api/slack-proxy', supportTeamEmails: ['you@company.com'], feedbackChannelId: 'C0XXXXXXXXX', }, }} > <Router /> </MusProvider> )}3. Add FeedbackTarget to any section
Section titled “3. Add FeedbackTarget to any section”Wrap any part of your UI to make it feedback-able. Users hover for 500 ms and the lightbulb icon appears.
import { FeedbackTarget } from '@datachef/mus'
function Dashboard() { return ( <FeedbackTarget sectionId="dashboard" sectionName="Dashboard"> <DashboardContent /> </FeedbackTarget> )}4. Run the server
Section titled “4. Run the server”The MUS server handles voice upload and Slack delivery. Run it locally with Docker:
docker run -d \ -p 3001:3001 \ -e SLACK_BOT_TOKEN=xoxb-your-token \ ghcr.io/datachefhq/mus-server:latestVerify it’s running:
curl http://localhost:3001/healthz# → okAdd a Vite proxy so browser requests reach it:
server: { proxy: { '/api/mus/': { target: 'http://localhost:3001', changeOrigin: true, }, },},Using the CLI
Section titled “Using the CLI”Run the init wizard to get an interactive setup:
npx @datachef/mus initThe CLI detects your framework (Vite / Next.js), package manager, and TypeScript usage, then:
- Creates
src/lib/mus.config.jswith your project settings - Creates
mus/docker-compose.ymlfor runningmus-server - Prints the Vite proxy config and
MusProvidersnippet to paste in
Next steps
Section titled “Next steps”- Configuration reference: full
MusConfigoptions - Server setup: Next.js, Express, Vite+Docker
- Deployment: Docker Compose, nginx, Kubernetes