PactDOCS

Documentation

Pact developer documentation

Install the first-party runtime, choose an interface, and verify that optional code follows the visitor’s decision.
01

Start here

Use the quickstart for a first installation, then move to the guide for your rendering stack.

02

Install the browser client

Purpose-bound content stays absent until the shared state allows it.

pnpm add @pact/web @pact/runtime
privacy.ts
typescript
import { definePactElements } from '@pact/web'

definePactElements()

<pact-gate purpose="analytics">
  <analytics-dashboard></analytics-dashboard>
</pact-gate>

<pact-preferences-button>
  Privacy choices
</pact-preferences-button>
03

Framework guides

Each adapter consumes the same browser contract; there is no second consent engine inside a framework package.

NextInstall Pact