Hello World

Updated Jul 27, 2026

The repository includes a tiny fixture page at tests/fixtures/hello-css. Start it with http-server:

PORT=4173
bunx http-server tests/fixtures/hello-css -p "$PORT" -a 127.0.0.1 -c-1

Then capture a CDP snapshot:

bun run bin/css-view.ts "http://127.0.0.1:${PORT}/index.html" \
  --props color,font-size,background-color,display \
  --wait-until load \
  --pretty

The response is JSON. The top-level metadata identifies the capture mode, browser, URL, and wait policy. The CDP payload contains nodes[]; the fixture heading appears as the node with attributes.id set to title, and its text appears in a child text node. The heading's computed styles include color: rgb(34, 34, 136) and font-size: 32px.