Guides
The docs tell you what. The guides tell you why and how. Each guide is a narrative walkthrough — context first, then steps, then common mistakes. Pick a topic below to get started.
Frontend — @consenti/ui
Minimal Setup
Get a consent banner on screen in under 5 minutes — no backend required.
How Consent Flow Works
Follow a consent decision from first visit all the way to cookie and event.
How Auto-Detection Works
Understand the three scenarios Consenti uses to resolve the right compliance group.
Framework Integrations
Complete working snippets for React, Next.js, Vue 3, Angular, and Vanilla JS.
GTM & Google Consent Mode v2
Wire Consenti to GTM and push consent signals to your dataLayer automatically.
Custom Themes & Dark Mode
Override CSS tokens, swap themes at runtime, and toggle dark mode.
Backend — @consenti/api
Minimal Setup
Mount the Consenti API on any Node.js framework in minutes.
How Consent Flow Works
Trace a consent record from HTTP POST through storage to GDPR erasure.
Geo-Routing & Auto-Detection
How Consenti maps a visitor's IP and timezone to the right compliance group.
Choosing a Storage Driver
Compare JSON, SQLite, PostgreSQL, MySQL, and MongoDB — and when to use each.
Auth Modes
Local passwords for dev, JWT for API consumers, OIDC/SAML for enterprise SSO.
Server-Side Enforcement
Gate a tag, pixel, or backend event pipeline on real consent — including an edge-worker example.
Webhook Integration
POST consent decisions to your own webhook URL using the existing eventBus — no new package.
Policy & Rules Engine Mapping
How compliance groups, geo-resolution, and multi-tenancy map onto "policy by regulation/region/site" language.
Looking for API reference tables, configuration options, and type definitions? Head over to the Documentation section.