@consent-kit/audit 0.0.0-stage → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +19 -2
- package/dist/bin.js +1789 -0
- package/dist/index.d.ts +348 -0
- package/dist/index.js +1843 -0
- package/package.json +58 -3
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 consent-kit contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,20 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @consent-kit/audit
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
The browser audit for consent-kit. It drives a running site with Playwright and checks what the site really does against `privacy.registry.yaml`: which cookies, storage keys, scripts, frames and requests appear before and after each banner decision, what the Content-Security-Policy blocks, whether each decision sends its consent receipt, and whether the data subject request form is reachable.
|
|
4
|
+
|
|
5
|
+
It is a separate package because it brings Playwright. Install it next to [`@consent-kit/cli`](https://www.npmjs.com/package/@consent-kit/cli), together with Chromium:
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
npm install --save-dev @consent-kit/cli @consent-kit/audit
|
|
9
|
+
npx playwright install chromium
|
|
10
|
+
npx consent-kit audit http://localhost:8080/
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
It also has a bin of its own, `consent-kit-audit`, and a programmatic API (`runAudit`, `renderReport`, `run`).
|
|
14
|
+
|
|
15
|
+
An audit that passes shows that the pages it visited behaved as declared during that run. It does not show that the registry is complete or that the site is lawful.
|
|
16
|
+
|
|
17
|
+
- [Audit reference](https://consent-kit.com/docs/manual/reference/audit/)
|
|
18
|
+
- [Run the audit in CI](https://consent-kit.com/docs/manual/guides/run-the-audit-in-ci/)
|
|
19
|
+
|
|
20
|
+
Requires Node.js 22 or newer. MIT licensed.
|