@noobknotsdev/ayatsumugi-audit
v0.1.0
Published
Local orchestration for React Doctor, React Scan, Lighthouse, axe-core, and Ax
Readme
@noobknotsdev/ayatsumugi-audit
Runs the real React Doctor, React Scan, Lighthouse, axe-core, and Ax projects locally
and combines their JSON reports. This package does not reimplement those upstream
analyzers; Ayatsumugi's independent MoonBit implementation remains under core/.
Install moon for the independent core, uv for Ax, and Chrome or Chromium for
Lighthouse and axe-core. A compatible Node runtime is bundled for the upstream JS tools.
npm run audit -- doctor --project ./my-react-app
npm run audit -- lighthouse --url http://localhost:3000
npm run audit -- axe --url http://localhost:3000
npm run audit -- moonbit --input ./core/examples/audit-input.json
npm run audit -- ax --spec packages/audit/examples/ax-ui.jsonFor a combined report:
npm run audit -- all \
--project ./my-react-app \
--url http://localhost:3000 \
--moonbit-input ./core/examples/audit-input.json \
--react-scan ./ayatsumugi-react-scan.json \
--ax-spec ./packages/audit/examples/ax-ui.json \
--output ./ayatsumugi-audit.jsonReact Scan
Start the local collector:
npm run audit -- react-scan --session local --output ayatsumugi-react-scan.jsonImport and start the instrument before react-dom mounts:
import { startAyatsumugiReactScan } from '@noobknotsdev/ayatsumugi-react/react-scan';
startAyatsumugiReactScan({
endpoint: 'http://127.0.0.1:54321/ingest/local',
sessionId: 'local',
});The collector binds to 127.0.0.1, accepts only the configured session ID, and writes
the original React Scan Lite events to disk.
