BetaViberTest is in active development — expect breaking changes.
Overview
DocsGetting Started
Getting Started
Install ViberTest and run your first scan in under a minute. No config files, no plugins, no setup.
Prerequisites#
- Node.js >= 20.0.0
- Any JavaScript or TypeScript project
Installation#
Install ViberTest globally with your preferred package manager:
npmbash
$ npm i -g vibertestRun Your First Scan#
Navigate to any JS/TS project and run:
Terminalbash
$ vibertest scan .ViberTest will analyze all .js, .ts, .jsx, and .tsx files, run all 24 rules, and output a health score with a letter grade.
Quick Options#
| Flag | Description |
|---|---|
| -r, --rules <rules> | Comma-separated list of rule IDs to run |
| -f, --format <format> | Output format: "terminal" (default) or "json" |
| -o, --output <path> | Output file path for JSON reports |
| -s, --silent | Suppress terminal output (useful with --format json) |
See the full CLI Reference for scan for all options and examples.
Examples#
Scan a specific directorybash
$ vibertest scan ./srcExport results as JSONbash
$ vibertest scan . --format json --output report.jsonRun only specific rulesbash
$ vibertest scan . --rules oversized-files,dead-code,ai-smellSilent mode (no terminal output, writes JSON to file)bash
$ vibertest scan . --format json --silent --output report.jsonInitialize Config (Optional)#
ViberTest works with zero config. If you want to customize thresholds or disable rules:
Terminalbash
$ vibertest init
# Creates .vibertestrc.json with default settingsSee the Configuration guide for all options.
Exit Codes#
| Code | Meaning |
|---|---|
| 0 | Scan completed, no issues found |
| 1 | Scan completed, issues found |
| 2 | Scan failed (error) |
Next Steps#
- Browse all 24 rules — understand what ViberTest detects
- Learn the scoring system — how grades and penalties work
- Set up CI integration — block PRs with quality issues