Open-source consent management platform that puts the cookie banner, preference dialog and consent-gated scripts in your own codebase. Supports React, Next.js, Vue, Nuxt, Svelte, Astro and HTML, with Google Consent Mode v2 and IAB TCF
Overview
c15t is a cookie consent manager and consent management platform for JavaScript applications. It provides a GDPR cookie banner, a preference dialog and consent-gated script loading. The banner ships in your application bundle and renders with your app, rather than loading from a third-party snippet after the page. Supported frameworks include React, Next.js, Vue, Nuxt, Svelte and SvelteKit, Astro, TanStack Start, headless JavaScript, and a script-tag build for sites without a build step.
Policies decide who sees a banner. One setup can use opt-in for visitors in the EU, opt-out for some US states, or rules you write yourself. In Next.js, Nuxt, Astro, TanStack Start and SvelteKit, each visitor's policy can be resolved on the server, so the banner is included in the first HTML. Standards support covers Google Consent Mode v2, IAB TCF 2.4, IAB GPP and Global Privacy Control.
A separate integrations package has typed loaders for more than 40 vendors, including Google Tag Manager, GA4, Meta Pixel, PostHog, Hotjar, Intercom and HubSpot. Most loaders wait for the visitor's consent in the relevant category and stop the vendor when consent is withdrawn. YouTube and Google Maps embeds are gated as well. The UI can use prebuilt components with a theme system, or you can build your own on headless hooks and composables. The banner is available in more than 30 languages, including right-to-left ones, and any string can be overridden.
c15t needs a backend to serve policies and store consent records. You can use the managed backend from Inth, which stores each choice with its region and policy version and adds a dashboard, website and code audits, and policy packs. You can also self-host the backend with the @c15t/backend package. A local mode keeps choices in the browser for development and tests only. Setup can be done by hand, with a CLI, or by pointing a coding agent at the provided setup brief.
Key features
- Cookie banner and preference dialog
- Consent-gated script loaders for 40+ vendors
- Google Consent Mode v2, IAB TCF 2.4, IAB GPP, Global Privacy Control
- Region-based policies (opt-in, opt-out, no banner)
- Server-side policy resolution for banner in first HTML
- Themeable prebuilt components or headless hooks
- 30+ languages including right-to-left
- Managed or self-hosted backend
Use cases
- Adding a GDPR cookie banner to a Next.js or React app
- Holding analytics and ad pixels until visitors consent
- Applying different consent rules for EU and US visitors
- Recording consent choices as proof of compliance
- Replacing a third-party consent snippet with an in-bundle banner