@getrefractjs/cli
v0.2.0
Published
Refract CLI — `refract <url>` renders responsive screenshots from the terminal.
Maintainers
Readme
@getrefractjs/cli
The refract command — agent-first responsive screenshots from the terminal.
npx @getrefractjs/cli https://example.com --viewports mobile,tablet,desktop --out ./shotsRenders the URL at each viewport to ./shots/{preset}.png and prints structured
findings (overflow, small tap targets, clipped text, missing alt) under each shot.
Flags: --viewports, --out, --selector, --freeze, --dpr, --concurrency.
Needs Chromium once: npx playwright install chromium (add webkit for --engine webkit). MIT licensed.
