What it is
hard-mode is a local testing tool for web apps. A Playwright runner drives your running app through five uncomfortable but ordinary situations, records what happens, and keeps the evidence: screenshots, pixel measurements, focus traces. When you fix something, you rerun the exact same configuration and get a before/after comparison.
Everything runs on your machine. The runner never edits your app’s code and sends nothing anywhere.
Results
| Before using Hard Mode | After the same scenario is rerun |
|---|---|
| “The page looks fine on my screen.” | A report records that the long title clipped, where it clipped, and the screenshot that proves it. |
A div styled like an Export button looks clickable. |
The keyboard trace shows the control is unreachable; after the fix the same trace resolves the finding. |
Try it
git clone <this repo> && cd hard-mode
npm install
npm run build
npx playwright install chromium
npm run demo

