Create legal policies the way developers build software. Our platform lets you generate privacy policies, terms of service, and other legal agreements directly from code—making them fast, accurate, and easy to maintain.
import { defineConfig } from "@openpolicy/sdk";
export default defineConfig({
company: {
name: "Acme Inc.",
legalName: "Acme Incorporated",
address: "123 Market St, San Francisco, CA 94105",
contact: "privacy@acme.com",
},
privacy: {
/* [...] */
},
terms: {
/* [...] */
},
cookie: {
/* [...] */
},
}); import { OpenPolicy, PrivacyPolicy } from "@openpolicy/react";
import openpolicy from "./openpolicy";
export function PrivacyPolicyPage() {
return (
<OpenPolicy config={openpolicy}>
<PrivacyPolicy
components={{
Heading: ({ node }) => (
<h2 className="text-2xl font-bold">{node.value}</h2>
),
Paragraph: ({ children }) => (
<p className="text-sm text-gray-500">{children}</p>
),
}}
/>
</OpenPolicy>
);
} TypeScript-first
Define policies in the language you already know.
Multi-format output
Generate HTML, PDF, and Markdown at build time.
Vite integration
Drop into your existing build pipeline in minutes.
GDPR & CCPA ready
Built-in templates for the regulations that matter.
Version controlled
Policies live in your repo and ship with your code.
Always in sync
Regenerated on every build — never out of date.
Multi-jurisdiction
US, EU, UK and more supported out of the box.
Audit trail
Every policy change is tracked in git, reviewable in PRs.
Framework agnostic
Works with React, Vue, Svelte, or plain HTML.
OpenPolicy is framework agnostic. Render directly into your React, Next.js, Vue, Nuxt, Astro, or any other app.
How OpenPolicy compares to the alternatives.
| OpenPolicy | Lawyers | Templates | Termly | iubenda | |
|---|---|---|---|---|---|
| Developer workflow (Git, TypeScript, CI) | ✓ | ✗ | ✗ | ✗ | ✗ |
| Version controlled | ✓ | ✗ | ✗ | ✗ | ✗ |
| Markdown / HTML / PDF output | ✓ | PDF only | Word / PDF | Hosted page | Hosted widget |
| GDPR + CCPA coverage | ✓ | ✓ | Varies | ✓ | ✓ |
| Always in sync with codebase | ✓ | ✗ | ✗ | ✗ | ✗ |
| No ongoing subscription | ✓ | ✗ | ✓ | ✗ | ✗ |
| Self-hostable / open source | ✓ | — | — | ✗ | ✗ |
| Renders as React / Vue / Svelte component | ✓ | ✗ | ✗ | ✗ | ✗ |
These teams are using OpenPolicy to generate their legal documentation and streamline their development process