@privacykit/web
PrivacyKit
Consent management, enforcement, and runtime compliance validation in one platform.
Quick Start · Web Components · API Reference · privacykit.eu
Why PrivacyKit
Most consent tools show a dialog — PrivacyKit also enforces it. Third-party scripts and embedded content are blocked until the user grants consent, and a built-in Compliance Monitor continuously validates that nothing slips through after a website change.
| PrivacyKit | |
|---|---|
| Works with any frontend | Lightweight web components — no framework lock-in |
| Control when third-party code executes | Consent Guards block scripts and embeds until consent |
| Continuous compliance monitoring & validation | Runtime monitor, not a periodic scanner |
| Customizable | Design tokens, themes, slots, layouts |
Installation
npm install @privacykit/web
The package includes web components, the JavaScript API, TypeScript definitions, and anti-flicker styles.
Alternatively, use the CDN:
<script type="module" src="https://cdn.privacykit.eu/v1/privacykit.esm.js"></script>
<script nomodule src="https://cdn.privacykit.eu/v1/privacykit.js"></script>
Quick Start
Get PrivacyKit running in minutes — add the consent dialog to your site via npm or CDN, with no account or registration required to start. A 10-day trial is included.
→ privacykit.eu/en/quick-start
Web Components
PrivacyKit ships four web components: <consent-dialog>, <consent-guard>, <consent-missing>, and <compliance-monitor>. They work with any frontend framework or plain HTML.
→ privacykit.eu/en/web-components
JavaScript API
All methods are available on window.PrivacyKit — read consent state, subscribe to changes, open dialogs, and toggle the Compliance Monitor from application code.
→ privacykit.eu/en/api-reference
MIT License PrivacyKit · support@privacykit.eu