pagecheck

Renders every page at phone and desktop widths and reports the defects a desktop review never sees.

pagecheck

Finds what a desktop review misses: horizontal overflow and the element causing it, text under 12px, tap targets under 44px, contrast below AA.

CInpm versioninstall sizetestsruntime depsLicense: MITNode >=18peer: playwrightClaude Code
1,174 downloads 233/week v1.0.5 published 20 Sept 2026 MIT licence Node >=18 playwright JavaScript
$ npm i -D @alokraj68/pagecheck
accessibilitytypographymobilelayoutwcagplaywright

Writing it against this site found four real defects that desktop review had missed, including a hero element that put its status dot on a line of its own.

Getting the measurement right took more care than the fixes. Three classes of false positive had to go before the numbers meant anything: getClientRects returns one rect per inline-block box rather than per line, an animation library leaves each word at its own vertical offset mid-scrub, and stacked block children look like catastrophically short lines. A layout audit that cries wolf gets switched off, and then it catches nothing at all.

What it catches

Using it

Install

npm i -D @alokraj68/pagecheck playwright
npx playwright install chromium

Audit a build, or a live site

npx @alokraj68/pagecheck ./dist
npx @alokraj68/pagecheck https://example.com

What a finding looks like

=== iPhone SE
  /pricing/
     OVERFLOW 124px - div.price-table -> 124px past edge
     tiny text: 11px - "All prices exclude VAT…"
     small tap target: 88x24 - "Compare plans"

=== typography
[mobile] <p> 13px / weight 400 / leading 1.45 / 43 cpl / 7.1:1
   13px too small
   /pricing/ /about/

Questions

Why is Playwright a peer dependency instead of bundled?

It is a large download, and most projects that want a layout audit already have it. Bundling it would make the install heavy for everyone to save a line for a few.

Can it run against a deployed site?

Yes. Point it at a URL instead of a directory and it crawls from there. Pointing it at a build directory is the usual CI shape, because it fails before a bad layout deploys.

Does it replace an accessibility audit?

No. It measures the things that are cheap to measure exactly: size, spacing, contrast ratios and target sizes. Keyboard order, focus handling and screen-reader behaviour need a different tool and a person.

Also published