# widget lab

The scripts that measured ten chat widgets for our test posts and /vs, exactly as they ran. Bun and TypeScript, driving Google Chrome with Playwright, Lighthouse and axe-core. Put these files in a folder, run `bun install`, then one test at a time: `bun run weigh-in`, `lighthouse`, `click-to-open`, `phone`, `accessibility`. Each writes its results file.

## source

* [a11y.ts](/research/widget-lab/a11y.ts)
* [avatars.ts](/research/widget-lab/avatars.ts)
* [before.ts](/research/widget-lab/before.ts)
* [click.ts](/research/widget-lab/click.ts)
* [ids.ts](/research/widget-lab/ids.ts)
* [lab.ts](/research/widget-lab/lab.ts)
* [lighthouse.ts](/research/widget-lab/lighthouse.ts)
* [package.json](/research/widget-lab/package.json)
* [phone.ts](/research/widget-lab/phone.ts)
* [serve.ts](/research/widget-lab/serve.ts)
* [widgets.ts](/research/widget-lab/widgets.ts)

## results, 2026-09

Every run, the method, the versions and the exact snippets and widget ids.

* [weigh-in-2026-09.json](/research/weigh-in-2026-09.json)
* [cookies-2026-09.json](/research/cookies-2026-09.json)
* [lighthouse-2026-09.json](/research/lighthouse-2026-09.json)
* [click-to-open-2026-09.json](/research/click-to-open-2026-09.json)
* [phone-2026-09.json](/research/phone-2026-09.json)
* [accessibility-2026-09.json](/research/accessibility-2026-09.json)

How and why we test: [how we test chat widgets](/blog/how-we-test-chat-widgets/).

---
source: https://spookat.com/research/widget-lab/
