Beta. consent-kit is at 0.x: expect breaking changes between releases, and treat everything it generates as a draft. Report a problem or share feedback.
Reference
- Audit reference
consent-kit audit <url> opens a running site in Chromium, operates its consent banner the way a visitor would, and compares what the browser did with what privacy.registry.yaml declares.
- Change classifications
The four classifications consent-kit check gives to a change between the last released registry and the current one, and every change kind with its default.
- CLI reference
Every consent-kit command and flag, the exit codes, the findings check reports and the shape of its --json report.
- Content-Security-Policy reference
The policy consent-kit build generates: every directive, which artefact kind feeds it, how the registry's csp section changes it, and the shape of csp.json.
- Documents reference
Each document consent-kit docs generates, the documents report, the gap codes, and the phrase API of @consent-kit/documents.
- ESLint plugin reference
@consent-kit/eslint-plugin has one rule, @consent-kit/no-raw-storage, which reports raw browser storage and beacon APIs in first-party code and points at the generated storage facade instead.
- Generated files
Every file consent-kit build and consent-kit docs write, what each is for, and who consumes it.
- Presets reference
The presets entry of the registry, the built-in catalogue, how an entry expands, the rules and warnings, and the format of a preset definition.
- Project files
The formats of the three files that sit next to privacy.registry.yaml: the lock file, the review file and the documents file.
- Receipts and server reference
The JSON body of a consent receipt, the receipt manifest, the @consent-kit/server API with every HTTP status and error code, and the D1 table.
- Registry reference
Every field of privacy.registry.yaml: its type, whether it is required, its default, and what it changes in the generated files.
- Runtime API reference
The APIs that run in the browser (the guard, the storage facade, embeds, consent receipts) and the helpers a build script calls to write consent-gated HTML.
- Subject requests reference
The server side of data subject requests: the build manifest, createSubjectRequestHandler, its responses, the request record and store, the D1 tables, the reminder and the sweep, the receipt…
- Validation rules
Every rule the registry validator can report, what it means, and how to fix it.