c15t: The open standard for cookie banners

2 min read Original article ↗

Skip to main content

Own your cookie banner. c15t puts the banner, the preferences dialog and the consent rules for your scripts in your codebase.

Deploy on Inth

Or read the quickstart for Next.js, TanStack Start, Nuxt, Vue, Astro or another framework.

Upgrading from v2? See what is new in v3.

  • Expo
  • Zed
  • Mastra
  • Infisical
  • Unkey
  • Mintlify
  • Melius
  • RevisionDojo
  • Sazabi

Four steps in every framework.

Start with one file. Follow your framework's quickstart for the full setup, then move your scripts into c15t.

components/consent.tsx

import {
	ConsentBanner, ConsentDialog, ConsentDialogLink, ConsentRoot,
} from 'c15t/next';
import { defineConsentConfig, resolveConsent } from 'c15t/next/server';
import type { ReactNode } from 'react';

export const consentConfig = defineConsentConfig({
	backendURL: 'https://your-project.inth.app',
});

export function Consent({ children }: { children: ReactNode }) {
	const state = resolveConsent({ config: consentConfig });

	return (
		<ConsentRoot state={state} config={consentConfig}>
			{children}
			<ConsentBanner />
			<ConsentDialog />
			<ConsentDialogLink>Privacy settings</ConsentDialogLink>
		</ConsentRoot>
	);
}

Move your scripts into c15tNext.js quickstart

Also in TanStack Start, React, Vue, Svelte, SvelteKit and JavaScript.

What is in c15t?

Everything your app needs for consent, in your code.

  • Time until the banner is on screen, as Cookiebench measured it: c15t 27 ms, OneTrust 629 ms, Usercentrics 672 ms.

    • Measure advertising performance
    • Measure content performance
    • Develop and improve services

    IAB Registered Vendors

    These partners are registered with the IAB Transparency & Consent Framework (TCF), an industry standard for managing consent

Install c15t. Get 44 integrations.

c15t maintains each typed helper. Most helpers load their vendor only after consent, and stop it when the visitor withdraws consent.

Import each helper from @c15t/integrations.

Browse the integrations

Compare c15t with your consent tool.

The facts about each tool come from its own published pages.

Read the comparison overview