@catscan/cli
v1.0.6
Published
Command line for catscan: checks rendered UI text in app and game screenshots, web pages and screen recordings for truncation, overlap, missing, untranslated and wrong-language strings and wrong formats, with PASS/FAIL verdicts. Runs on Apple silicon Macs
Maintainers
Readme
@catscan/cli
The catscan command line: checks the text in app and game screenshots, web pages and screen recordings with Apple Vision on the Neural Engine, and returns PASS/FAIL verdicts instead of raw OCR. It catches truncated and overlapping text, missing strings and raw keys, untranslated and wrong-language text, and wrong number, date and price formats. It runs on Apple silicon Macs, locally or in CI, and screenshots never leave the machine that runs it.
Requirements
Apple silicon Mac, macOS 15 or later, Node 22 or later: your own Mac or a macOS CI runner (GitHub's macos-15 and macos-26 work). npm installs the signed catscan binary with the package.
Install
In the terminal (the commands below assume this):
npm install -g @catscan/cli
catscan doctorIn a project and in CI, run it with npx @catscan/cli ..., which uses the project's copy; keep the global version the same as the project's:
npm install --save-dev @catscan/cli
npx @catscan/cli doctorFirst run
Take a screenshot with Cmd+Shift+4. Type catscan read , drag the screenshot into the terminal (it pastes the quoted path) and press Return. Then check a word it printed:
catscan check <dragged path> --present "<a word you saw>"PASS and exit 0 mean catscan read it. Then point it at a folder of per-locale screenshots:
catscan untranslated shots/de --locale de --base locales/en.json --catalog locales/de.json
catscan truncated shots/de --locale de --boxes shots/de --report catscan-report.htmlExit 1 means a check failed or a finding gates the build, so the same commands work as a CI step.
Writing Playwright tests? Install @catscan/playwright instead. Coding agents use @catscan/mcp.
Commands
check, read, untranslated, truncated, overlap, formats, fit, contrast, video, pseudo, boxes, results, report, languages and doctor. CI output: --format github, --junit, --gitlab-codequality and an offline HTML report.
Learn more
- catscan on GitHub
- CLI reference
- CI recipes and ready-to-copy CI files
- Start here: the recipe for your stack
License
Apache-2.0: LICENSE.
