create-mushi-mushi
v0.6.12
Published
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.
Maintainers
Readme
create-mushi-mushi
Your AI wrote it. Mushi Mushi tells you why it broke.
Adds Mushi Mushi to the app you
already have, so when a user says something is broken you get the likely cause
in plain English and a fix prompt for your AI editor. One command finds your
framework, installs the right SDK and writes your keys. It can also start a
small Vue, Svelte or Node app with Mushi Mushi already in it (--template).
You need Node.js 20 or newer and a free Mushi Mushi account (the wizard opens a browser sign-in).
npm create mushi-mushi
# or
pnpm create mushi-mushi
yarn create mushi-mushi
bun create mushi-mushiDocs: the setup wizard (same wizard as npx mushi-mushi)
What it does
- Finds your framework: Next.js, React (Vite or Create React App), Remix, Astro, Solid, Vue, Nuxt, Svelte, SvelteKit, Angular, Expo, React Native, Capacitor, Express, Fastify, Hono, or plain JavaScript.
- Picks the right SDK:
@mushi-mushi/react,@mushi-mushi/vue,@mushi-mushi/svelte,@mushi-mushi/angular,@mushi-mushi/react-native,@mushi-mushi/capacitoror@mushi-mushi/webfor apps, and@mushi-mushi/nodefor Express, Fastify and Hono servers. - Uses your package manager:
npm,pnpm,yarnorbun, based on your lockfile. - Writes your keys: into
.env.local(or your existing.env), with the prefix your framework needs, for exampleVITE_MUSHI_PROJECT_IDorNEXT_PUBLIC_MUSHI_API_KEY. Servers, Remix and bare React Native get plainMUSHI_PROJECT_IDandMUSHI_API_KEY. - Checks
.gitignore: warns you if that env file is not ignored, so you don't commit it. - Prints the setup code for your framework, ready to paste.
- Offers to send a test report at the end, so you see your first diagnosed bug right away.
By default it wires Mushi 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 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-appValid 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 starterFlags
npm create mushi-mushi -- --framework next
npm create mushi-mushi -- --project-id <project-uuid> --api-key mushi_xxx
npm create mushi-mushi -- --skip-install
npm create mushi-mushi -- --skip-test-report
npm create mushi-mushi -- --audit # health-check an existing install instead
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 -- --version
npm create mushi-mushi -- --help
npm createandpnpm createneed the--separator before flags. Yarn 1 and Bun do not.
Equivalent commands
npx mushi-mushi # shorter
npx @mushi-mushi/cli init # scoped nameTroubleshooting
- Wrong framework detected? Pass
--framework <id>explicitly. Valid IDs:next, react, cra, remix, astro, solid, vue, nuxt, svelte, sveltekit, angular, expo, react-native, capacitor, express, fastify, hono, vanilla. - Running in a monorepo?
cdinto the package you want Mushi Mushi in first, or pass--cwd apps/web. npxcache serving an old version? Runnpm cache clean --forceornpx mushi-mushi@latest.- Non-interactive shell (CI, or an AI agent's terminal)? Pass
--yes. The wizard then prints the sign-in URL (no browser opens) and picks the project by your app's name. On CI with no one to sign in, also pass--project-idand--api-key. - Key pasted with quotes/whitespace? The wizard strips them, then checks the format: the API key starts with
mushi_ormush_pk_followed by 10 or more characters, and the project ID is a UUID (orproj_followed by 10 or more characters).
Security
- Credentials accepted via
--api-keyflag leak intops -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.jsoncredentials cache is written with mode0o600(owner read/write only) on Unix. Legacy~/.mushircauto-migrates on first load. - All env-file writes strip CR/LF/NUL from secrets to prevent accidental
.envinjection.
Links
License
MIT
Monorepo scale (July 2026): 77 edge functions · 546 SQL migrations · 13 outbound plugins · 11 inbound adapters · 19 pipeline agents. Canonical counts: docs/stats.md · pnpm docs-stats
