{"_id":"@apatureai/verdict-capture","name":"@apatureai/verdict-capture","dist-tags":{"latest":"0.1.4"},"versions":{"0.1.4":{"name":"@apatureai/verdict-capture","version":"0.1.4","license":"MIT","author":{"name":"Aditya Prathapa"},"type":"module","description":"verdict capture worker: deterministic Chromium capture, DOM geometry, and the code-computed contrast / overflow / touch-target checks.","keywords":["verdict","design-review","wcag","contrast","accessibility","playwright"],"homepage":"https://github.com/apatureai/verdict/tree/main/packages/capture#readme","repository":{"type":"git","url":"git+https://github.com/apatureai/verdict.git","directory":"packages/capture"},"bugs":{"url":"https://github.com/apatureai/verdict/issues"},"main":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./playwright":{"types":"./dist/playwright-browser.d.ts","default":"./dist/playwright-browser.js"}},"publishConfig":{"access":"public","provenance":true},"dependencies":{"playwright-core":"1.62.1","@apatureai/verdict-types":"0.1.4"},"scripts":{"build":"tsc -b","test":"vitest run"},"_id":"@apatureai/verdict-capture@0.1.4","_integrity":"sha512-7ygUmLjUewVCUEj1YBtAFcCTF8xFkOuygBRU0XugpZ4Xu++opuyfSLt+ZHr9gFj0Aq5EGutZiKVjOIxO9lbo+w==","_resolved":"/tmp/d4ab8103f9ff9f4ec6961738952a1858/apatureai-verdict-capture-0.1.4.tgz","_from":"file:apatureai-verdict-capture-0.1.4.tgz","_nodeVersion":"24.19.0","_npmVersion":"11.17.0","dist":{"integrity":"sha512-7ygUmLjUewVCUEj1YBtAFcCTF8xFkOuygBRU0XugpZ4Xu++opuyfSLt+ZHr9gFj0Aq5EGutZiKVjOIxO9lbo+w==","shasum":"74198b212234d165bcc09b22105e554acbd2a361","tarball":"https://registry.npmjs.org/@apatureai/verdict-capture/-/verdict-capture-0.1.4.tgz","fileCount":95,"unpackedSize":318233,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@apatureai%2fverdict-capture@0.1.4","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQClEc9vgpwEtZMWuIE/cMx6z7a/sX+Nw0Dk2Xn7cCXsJgIgEs+NcJQs+3UdkzfD8Jt4IoCpf0Mzaw313iSW6tikypo="}]},"_npmUser":{"name":"aprathapa","email":"aprathapa01@gmail.com"},"directories":{},"maintainers":[{"name":"aprathapa","email":"aprathapa01@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/verdict-capture_0.1.4_1787613488593_0.4328855919880279"},"_hasShrinkwrap":false}},"time":{"created":"2026-08-24T23:18:08.496Z","0.1.4":"2026-08-24T23:18:08.789Z","modified":"2026-08-24T23:18:09.122Z"},"maintainers":[{"name":"aprathapa","email":"aprathapa01@gmail.com"}],"description":"verdict capture worker: deterministic Chromium capture, DOM geometry, and the code-computed contrast / overflow / touch-target checks.","homepage":"https://github.com/apatureai/verdict/tree/main/packages/capture#readme","keywords":["verdict","design-review","wcag","contrast","accessibility","playwright"],"repository":{"type":"git","url":"git+https://github.com/apatureai/verdict.git","directory":"packages/capture"},"author":{"name":"Aditya Prathapa"},"bugs":{"url":"https://github.com/apatureai/verdict/issues"},"license":"MIT","readme":"# @apatureai/verdict-capture\n\nThe capture and measurement layer of [verdict](https://github.com/apatureai/verdict):\ndeterministic headless-Chromium capture, a DOM geometry map, and the\ncode-computed WCAG checks (contrast, horizontal overflow, touch-target size)\nthat a critique is grounded on.\n\nThe check functions are pure — no browser, no model, no API key — so they run\nidentically on captured data and in a unit test.\n\n```ts\nimport { contrastRatio, contrastViolations } from \"@apatureai/verdict-capture\";\n\ncontrastRatio({ r: 138, g: 138, b: 138 }, { r: 255, g: 255, b: 255 }); // 3.45\n```\n\nSee the [repository README](https://github.com/apatureai/verdict#readme) for the\nfull pipeline and a runnable example under\n[`examples/`](https://github.com/apatureai/verdict/tree/main/examples).\n\n> Status: 0.1.x, API may still move. Requires Node >= 24. The Playwright entry\n> point (`@apatureai/verdict-capture/playwright`) additionally needs `playwright-core`'s\n> Chromium; the pure check functions do not.\n","readmeFilename":"README.md","_rev":"1-5741c42a40b5853687c18da37886eff6"}