> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cookiechimp.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Consent SDK

> CookieChimp consent for React, Next.js and plain JavaScript.

Open-source, lightweight consent SDK for React, React Native, Next.js and plain JavaScript,
built by CookieChimp. MIT licensed.

* **Connected mode.** Load a CookieChimp project's scanner categories,
  dashboard copy and translations with config sync, and send decisions with
  the platform consent-log adapter. Your code config can remain the fallback.
* **Category and vendor preferences.** Render banner layouts, vendor details,
  cookie disclosures, themes and languages from the platform JSON. A complete
  service consent map and consent ID are available through React hooks.
* **Local mode, no account.** Consent lives in a first-party `cc_consent`
  cookie. Your code owns the config.
* **No banner flash.** The Next.js providers read the consent cookie on the
  server, so the first HTML already matches the visitor's choice.
* **Blocks before consent.** Script and iframe gating, runtime blocking, a
  network blocker, Google Consent Mode v2 and presets for common vendors.
* **IAB GPP (US) and TCF (EU)**, both opt-in and lazy.
* **Small.** Size budgets are enforced in CI ([docs/size.md](https://github.com/cookiechimp/cookiechimp-sdk/blob/main/docs/size.md)).

The SDK never looks up a visitor's location. It makes no geo-IP or external
location request. Applications pass trusted region context, for example from
their hosting platform's headers. React Native apps can opt in to CookieChimp's
own first-party region lookup instead.

## Where to start

* [Connect to CookieChimp](https://docs.cookiechimp.com/docs/sdk/connected-backend.md): dashboard configuration,
  platform consent delivery and the complete backend-connected example.
* [Getting started](https://docs.cookiechimp.com/docs/sdk/getting-started.md): install and show a banner.
* [React Native](https://docs.cookiechimp.com/docs/sdk/react-native.md): the native banner,
  preferences, consent records and vendor control for React Native and Expo
  apps, available on npm.
* [React Native vendor SDKs](https://docs.cookiechimp.com/docs/sdk/react-native-integrations.md): presets for
  common mobile SDKs, Firebase Consent Mode and App Tracking Transparency.
* [Banner and vendor preferences](https://docs.cookiechimp.com/docs/sdk/platform-ui.md): shared JSON, appearance,
  consent state and the full variation playground.
* [Next.js](https://docs.cookiechimp.com/docs/sdk/nextjs.md) or the [core and React reference](https://docs.cookiechimp.com/docs/sdk/reference.md).
* [Examples](https://docs.cookiechimp.com/docs/sdk/examples.md) you can run.
* [AI skills](https://docs.cookiechimp.com/docs/sdk/ai-skills.md) for coding agents and the
  [documentation index](https://docs.cookiechimp.com/docs/llms.txt).

Current release: **1.2.0**, available on npm. See [versions and deployment](https://docs.cookiechimp.com/docs/sdk/release-status.md)
for installation, upgrading and connected-mode verification.
