Getting Started
This guide is for trying Yomi from npm or from this repository.
Requirements
- Node.js and npm for
npx/ npm installation - Bun only when developing this repository locally
- Playwright Chromium only when running browser verification
Try Without Installing
The fastest way to see Yomi's core contract is to use the bundled demo graph.
npx @isamisushi/yomi@latest index --demo --output .yomi/demo-graph.json
npx @isamisushi/yomi@latest repair "Customer search" --graph .yomi/demo-graph.json
npx @isamisushi/yomi@latest plan-trace "Customer search" --graph .yomi/demo-graph.jsonThe important output is the repair and trace plan. It should point from a visible UI label to the React owner, action/state/effect path, likely edit target, runtime trace targets, and source locations.
Install Globally
For repeated use:
npm install -g @isamisushi/yomi
yomi doctorThe installed CLI uses a prebuilt platform binary. Bun is not required to run the installed command.
Supported binary packages:
- macOS arm64 and x64
- Linux arm64 and x64
- Windows arm64 and x64
Project-Local Install
npm install --save-dev @isamisushi/yomi
npx yomi indexInstall agent skills when you want coding agents in the repository to share Yomi's command guidance and repair workflow:
npx yomi skill --all --scope projectDevelop From Source
Install repository dependencies:
npm installIf Playwright has not installed a browser runtime yet:
npx playwright install chromiumRun the demo graph through the source checkout:
npm run yomi -- index --demo --output .yomi/demo-graph.json
npm run yomi -- repair "Customer search" --graph .yomi/demo-graph.json
npm run yomi -- plan-trace "Customer search" --graph .yomi/demo-graph.jsonTo run the small local app:
npm run devIndex a React Project
Index the bundled benchmark fixture:
npm run yomi -- index --project fixtures/react-repair-benchmark --forceRun a repair query from a visible UI symptom:
npm run yomi -- repair "Customer search" --project fixtures/react-repair-benchmarkAsk for runtime trace targets when ordering or history matters:
npm run yomi -- plan-trace "Customer search" --project fixtures/react-repair-benchmarkList synchronized examples:
npm run yomi -- examples react-repairRun the benchmark:
npm run yomi -- benchmark react-repairVerify Runtime Behavior
Run a built-in verifier scenario:
npm run yomi -- verify stale-response
npm run yomi -- verify stale-response-fixedRun the browser E2E suite:
npm run test:e2eValidate the Package Shape
npm run typecheck
npm test
npm run build:cli:package
npm run package:clipackage:cli performs a dry-run package verification. It does not publish to npm.