Skip to content
PolicyStack
Esc
navigateopen⌘Jpreview

Privacy and consent as code.

PolicyStack V1 turns one TypeScript configuration into privacy and cookie policies, plus a headless consent store. Keep your disclosures and consent categories together in code; render them in your own application and design system.

Get started with V1 · Read the documentation · View the source

Start with your application

pnpm dlx @policystack/cli@1 init

The CLI scaffolds a configuration and generates a reference for your coding agent. Review the company details, declared data, purposes, retention, and jurisdictions before publication.

One config, two capabilities

import { PolicyStack } from "@policystack/react/provider";
import { PrivacyPolicy } from "@policystack/react/policy";
import { ConsentGate } from "@policystack/react/consent";
import policy from "./policystack";

export function PrivacyPage() {
	return (
		<PolicyStack config={policy}>
			<PrivacyPolicy />
			<ConsentGate requires="analytics">
				<p>Analytics consent has been granted.</p>
			</ConsentGate>
		</PolicyStack>
	);
}

Use the complete quickstart for the configuration and a working consent choice UI.

Check framework support and limitations. V1 packages are Apache-2.0. Generated documents require review; PolicyStack does not determine your legal obligations or guarantee compliance.

What comes next

V2 is in design. The direction is a self-hostable platform connecting privacy inventory, consent, backend enforcement, and rights workflows. These capabilities are not shipped V1 features.

Read the V2 roadmap · Discuss becoming a design partner