COMPLIANCE AS CODE FRAMEWORK
OpenPolicy is the consent and compliance layer for your app. Privacy policy, cookie banner, and consent log — generated from your TypeScript, versioned with your code.
April 2026
07 posts
April 29, 2026
Announcing OpenCookies
We've split the cookie banner, preferences panel, and consent runtime out of OpenPolicy into a sibling project: OpenCookies. Headless consent primitives, a much better fit for the problem, and still designed to compose with OpenPolicy.
April 24, 2026
Beyond the privacy policy
Most teams adopt OpenPolicy for a policy page and a cookie banner. The more interesting thing is that your config is a typed, runtime data source — and you can use it to build onboarding tours, transparency dashboards, and just-in-time disclosures that stay in sync with the rest of your app.
April 22, 2026
The three levels of OpenPolicy
Ship a policy on day one, keep it in sync as the product grows, and prove who consented to what once compliance risk gets real — without rewriting anything.
April 20, 2026
Automatic consent tracking with Better Auth
A new Better Auth plugin records exactly which policy version each user accepted — tied to the same config that generates your privacy and cookie policies.
April 15, 2026
How to notify users about privacy policy changes without spamming everyone
Privacy policies change. The hard part isn't updating the document — it's knowing which users need to know, what changed for them specifically, and how to tell them without crying wolf.
April 13, 2026
Your privacy policy should know what your code does
Annotate your data storage and third-party calls once. Auto-collect keeps your policy in sync automatically.
April 10, 2026
Zero-build privacy policies with Astro
Skip the Vite plugin — compile privacy and cookie policies directly in Astro page frontmatter using @openpolicy/core.
March 2026
08 posts
March 27, 2026
Legal pages as components, not scripts
OpenPolicy is on the shadcn registry. Install privacy policy and cookie policy components with a single command — code you own, styled with Tailwind.
March 26, 2026
Why we're betting on a code-first approach to privacy
Most apps treat privacy policies as an afterthought. Here's why shipping them as code changes everything.
March 23, 2026
Building a Legal Chatbot with OpenPolicy and AI SDK
Compile your privacy policy into a Claude system prompt and stream plain-English answers — no RAG, no vector DB, just a route handler and 100 lines of React.
March 18, 2026
Build Privacy Policies Your Customers Actually Want to Read
Render your privacy policy directly into your React, Next.js, or TanStack app as components you fully control — swap every heading, paragraph, and section for your own.
March 13, 2026
Policy Pages in SvelteKit That Actually Stay Up to Date
Use the OpenPolicy Vite plugin to generate legally-structured privacy and cookie policy pages at build time — hot-reloaded in dev, committed with your code.
March 9, 2026
Stop Copy-Pasting Legal Pages Into Your Next.js App
Use the OpenPolicy CLI to generate legally-structured policy documents at build time — no Google Docs, no copy-paste.
March 6, 2026
Ship a Privacy Policy with Your TanStack App
Use the OpenPolicy Vite plugin to generate a legally-structured privacy policy at build time — no Google Docs, no copy-paste.
March 5, 2026
Ship a Privacy Policy with Your Astro Site
Define your privacy policy as TypeScript and render it directly in an Astro page — no integration, no generated files.