Skip to content

Overview

Tickbox is a small monorepo of focused packages. Pick the framework adapter that matches your stack — it pulls in @tickboxhq/core for you.

Fastest start: tickbox init

Terminal window
npx @tickboxhq/cli init

Walks you through jurisdiction, vendor groups, framework adapter, and the optional drop-in banner — then writes consent.config.ts and installs the SDK packages for you (~90 seconds end-to-end). If you’d rather wire things up by hand, the rest of this guide still applies.

Packages

PackageWhat it gives you
@tickboxhq/coreTypes, jurisdictions, the consent store, side-effects (script gating, Consent Mode v2 wiring), AI opt-out generators. Framework-agnostic.
@tickboxhq/react<ConsentProvider>, useConsent(), headless <ConsentBanner> and <ConsentNotice>.
@tickboxhq/vueSame as React but Vue 3.
@tickboxhq/nuxtNuxt 3 / 4 module. Auto-imports useConsent, auto-registers banner + notice components, serves /ai.txt from a Nitro route, hydrates the cookie on the server via useRequestHeaders.
@tickboxhq/banner-defaultDrop-in styled banner and notice. Use this if you don’t want to design your own. Includes translations for en, de, fr, es, it, nl, pt, pl, uk.
@tickboxhq/clitickbox scan <url> and tickbox validate for your config.

How a typical setup looks

  1. Write consent.config.ts once. It’s a versioned source of truth — it ends up in your repo, and the audit trail (when you wire that up later) ties decisions to a policy.version.
  2. Wrap your app in <ConsentProvider config={config}>. The Nuxt module does this for you.
  3. Render a banner — either roll your own with the headless <ConsentBanner>, or drop in <ConsentBannerDefault />.
  4. Gate your tracking scripts with <script type="text/plain" data-tb-category="analytics" src="...">. Tickbox flips the type after consent.

That’s the whole loop.

Next pages

If you’d rather understand the model first, head to Concepts → Jurisdictions.

For the full type signatures of every public function, hook and component, see the API reference — auto-generated from the TypeScript source. The list of vendor identifiers Tickbox knows about lives at Concepts → Supported vendors.