Skip to main content
Use Node.js 22.13.0 or later. From the project root, install Loadwise from npm and run a check.
For a one-off scan, run npx loadwise check without adding a project dependency. Run npx loadwise --version to check the installed version. Editor integration is optional. By default loadwise check runs all five checkers; see the corpus rule scorecard for measured precision and recall across real-world open-source backends. Use npx loadwise explain <rule-id> to understand a finding and npx loadwise fix to preview automatic edits. To focus on local changes, pass --uncommitted to both check and fix. Autofix example: npx loadwise fix --apply rewrites eligible issues in place and verifies TypeScript projects with a post-edit typecheck:
With an AI coding agent, say “Run Loadwise” in your project chat. The agent can run the installed CLI directly. It should check the findings against the code, explain what it would fix or leave alone and why, and let you choose before making edits. Active-agent workflow and optional MCP setup

Try a finding and a fix

From a project where you ran npm install --save-dev loadwise, copy the bundled example to a disposable file and scan it. The copy command refuses to overwrite an existing file.
The sample reports three findings and exits 1. The membership finding shows repeated array searches for allowed customer IDs. Read its diff and note, then replace FINDING_ID below with the ID printed after # on that finding.
The second scan should report two findings. Remove the disposable copy when finished. In your own application, install its dependencies and generate any ORM client it uses, then run npx loadwise check from its root. Check the coverage notes for skipped inputs. Start with --min-impact high to triage a large report, then run without that filter to review the rest.

Use Loadwise alongside a linter

Keep your existing linter for syntax-level rules and use Loadwise for checks that depend on how code behaves. In a local comparison with Oxlint 1.95.0 and Loadwise 0.7.0 at revision f3a3342d, Oxlint’s no-debugger caught an added debugger statement. Loadwise’s array-repeated-membership caught repeated array searches in the bundled example. Both reported a JSX image without alt text when the comparison enabled Oxlint’s jsx-a11y/alt-text rule. Other projects may enable different rules and have different results. Oxlint no-debugger · Oxlint rule reference Create a fresh companion file with this command.
Append a debugger; statement to companion-demo.ts. Add a separate file called picture.tsx containing this component.
Passing the paths explicitly includes these demo files even when your tsconfig.json only includes src. If Oxlint owns alt text in JSX, disable only the duplicate Loadwise rule for JSX and TSX files. The example keeps Loadwise’s alt-text reports for standalone HTML. Alternatively, let Loadwise own the rule and turn off Oxlint’s jsx-a11y/alt-text rule.
Keep approved versions in the lockfile and both rule configurations in the repository. With the example Oxlint rules configured in .oxlintrc.json, use these as separate CI steps so each publishes its own result.