create-mushi-mushi

Run `npm create mushi-mushi` to add the Mushi Mushi bug-reporting SDK to your existing project — the wizard auto-detects your framework (React, Vue, Svelte, Angular, React Native, Expo, Capacitor) and installs the right package.
5,326 3
Install
npm install create-mushi-mushi
Latest Version:0.6.8
License:MIT
Last Updated:Oct 23, 2026
Links: GitHub  ·  npm
Maintainer: kensaurus

create-mushi-mushi

Your AI wrote it. Mushi tells you why it broke.

Add Mushi to the app you already have in one command, or scaffold a Vue, Svelte or Node starter with --template.

One-line setup for the Mushi Mushi bug-reporting SDK: a user's report arrives as a plain-English diagnosis and a paste-ready fix in your editor.

npm create mushi-mushi
# or
pnpm create mushi-mushi
yarn create mushi-mushi
bun create mushi-mushi

What it does

  1. Detects your framework — Next.js, Nuxt, SvelteKit, Angular, Expo, Capacitor, plain React/Vue/Svelte, or vanilla JS.
  2. Picks the right SDK — @mushi-mushi/react, @mushi-mushi/vue, @mushi-mushi/svelte, @mushi-mushi/angular, @mushi-mushi/react-native, @mushi-mushi/capacitor, or @mushi-mushi/web.
  3. Detects your package manager — uses npm, pnpm, yarn, or bun based on your lockfile.
  4. Writes env vars — framework-prefixed keys (e.g. VITE_MUSHI_PROJECT_ID / NEXT_PUBLIC_MUSHI_API_KEY) land in .env.local.
  5. Warns about .gitignore — won't ship secrets if your env file isn't ignored.
  6. Prints the provider snippet — framework-specific code to paste in.
  7. Sends a test report (opt-in) — closes the loop so you see your first classified bug immediately.

By default it wires Mushi into an existing project, so run it from that project's root. To start from nothing, use a starter template instead.

Starter templates

--template scaffolds a minimal starter app with Mushi already wired, instead of running the wizard:

npm create mushi-mushi -- --template vue           # into ./mushi-vue-app
npm create mushi-mushi -- --template svelte my-app # into ./my-app
npm create mushi-mushi -- --template node          # into ./mushi-node-app

Valid templates: vue, svelte, node. The target directory must not exist yet. Then:

cd mushi-vue-app
npm install
npx mushi-mushi   # browser sign-in, writes your env vars
npm run dev       # npm start for the node starter

Flags

npm create mushi-mushi -- --framework next
npm create mushi-mushi -- --project-id proj_xxx --api-key mushi_xxx
npm create mushi-mushi -- --skip-install
npm create mushi-mushi -- --skip-test-report
npm create mushi-mushi -- --cwd apps/web
npm create mushi-mushi -- --endpoint https://mushi.your-company.com
npm create mushi-mushi -- --template vue [dir]
npm create mushi-mushi -- -y
npm create mushi-mushi -- --help

npm create and pnpm create need the -- separator before flags. Yarn 1 and Bun do not.

Equivalent commands

npx mushi-mushi               # shorter
npx @mushi-mushi/cli init     # scoped name

Troubleshooting

  • Wrong framework detected? Pass --framework <id> explicitly. Valid IDs: next, react, vue, nuxt, svelte, sveltekit, angular, expo, react-native, capacitor, vanilla.
  • Running in a monorepo? cd into the package you want Mushi in first, or pass --cwd apps/web.
  • npx cache serving an old version? Run npm cache clean --force or npx mushi-mushi@latest.
  • Non-interactive (CI)? Pass all of --yes, --project-id, and --api-key. The wizard exits with a clear error otherwise.
  • Key pasted with quotes/whitespace? The wizard strips them, but still validates against mushi_[A-Za-z0-9_-]{10,} / proj_[A-Za-z0-9_-]{10,}.

Security

  • Credentials accepted via --api-key flag leak into ps -ef. Prefer the interactive prompt on dev machines; on CI, pass them via the environment and an explicit --api-key "$MUSHI_API_KEY" at the boundary.
  • The ~/.config/mushi/config.json credentials cache is written with mode 0o600 (owner read/write only) on Unix. Legacy ~/.mushirc auto-migrates on first load.
  • All env-file writes strip CR/LF/NUL from secrets to prevent accidental .env injection.

Links

License

MIT


Monorepo scale (July 2026): 71 edge functions · 493 SQL migrations · 13 outbound plugins · 11 inbound adapters · 19 pipeline agents. Canonical counts: docs/stats.md · pnpm docs-stats

Related Packages

mushi-mushi

One command adds a bug report widget to any app. The bug mediator for AI-built a...

6,112 3
@mushi-mushi/cli

Mushi CLI: SDK setup, MCP wiring, bug triage. The bug mediator for AI-built apps...

10,380 3
@mushi-mushi/vue

Vue 3 SDK for Mushi Mushi — plugin, composables, error handler integration

3,157 3
@mushi-mushi/web

Bug report and user feedback widget for the web. The bug mediator for AI-built a...

16,010 3
@chamathdilshanc/create-stack

The Ultimate Multi-Tiered Project Orchestrator — an interactive CLI that scaffol...

5,058 0

Version History

Version Released License
0.6.8 MIT
0.6.7 MIT
0.6.6 MIT
0.6.5 MIT
0.6.4 MIT