Open source consent management framework for modern web apps. Framework-agnostic, fully customizable, and performance-first with no vendor lock-in.

At a Glance:

c15t is a headless consent engine that gives development teams an observable, framework-agnostic system for managing user consent, with dedicated SDKs for React, Next.js, and Node.js plus prebuilt scripts for over 25 analytics and marketing tools.

Overview:

c15t is a headless consent engine designed to transform privacy management into a fully observable system for modern development teams. It provides a framework-agnostic, developer-first approach to handling user consent across web applications. The project is structured as a monorepo of packages covering the core consent logic, dedicated integrations for React and Next.js, a type-safe Node.js API client, a backend for policy management and audit logging, a CLI for scaffolding, and prebuilt script configurations for popular third-party tools like Google Tag Manager, Meta Pixel, and Intercom.

Key Decision Points:

  • Headless and framework-agnostic core: The base c15t package is lightweight and works across JavaScript frameworks, allowing integration into varied frontend stacks without enforcing a specific UI paradigm.

  • Dedicated React and Next.js integrations: First-party @c15t/react and @c15t/nextjs packages provide direct support for React components, server-side rendering, and the App Router, making it a targeted choice for teams on these ecosystems.

  • Backend consent observability: A separate @c15t/backend package is available to handle policy logic, geo-location detection, audit logging, and domain management, moving consent infrastructure beyond a simple UI banner.

  • Prebuilt third-party script support: The @c15t/scripts package offers ready-made script snippets for 25+ analytics and marketing tools, reducing the need to manually configure consent-aware loading for each service.

Core Features:

  • Framework-agnostic consent core: The primary c15t package manages consent in a way that is compatible with multiple JavaScript frameworks and supports server-side rendering.

  • React and Next.js components: Dedicated packages provide headless, customizable UI components with full ‘use client’ support and compatibility across recent React and Next.js versions.

  • Type-safe Node.js API client: The @c15t/node-sdk offers a fully typed client for interacting with the consent backend, with configurable base URLs and error handling.

  • Backend policy engine and audit logging: The @c15t/backend package supports a consent policy engine, geo-location detection, server-side translation, and audit logging.

  • Prebuilt third-party scripts: The system includes script snippets for over 25 popular analytics, marketing, and functional tools.

  • CLI tooling: A command-line interface is available for generating configurations, running database migrations, and guiding interactive setup workflows.

Use Cases:

  • Developers building web applications with React or Next.js who need a headless, programmable approach to collecting and managing user consent that fits into an existing component architecture.

  • Development teams requiring observable consent infrastructure who want to move beyond a static banner and need backend capabilities like policy management, audit logging, and geo-location based consent handling.

Open-Source Alternative Value:

c15t offers an open-source approach to consent management that is structured as a composable set of packages, from a framework-agnostic core to dedicated frontend integrations and a backend policy engine. Its value lies in giving developers direct access to the consent lifecycle through a type-safe API, CLI, and prebuilt scripts for third-party tools, making the system adaptable to different technology stacks without being tied to a proprietary SaaS platform.

ShareXLinkedInReddit

Related tools

Project stats

Stars

1,767

Forks

160

License

Apache-2.0

Metadata

Alternative to
Termly