OpenPolicy - Type-safe privacy policies & terms for modern web apps
by•
Most developers copy-paste a privacy policy and forget about it. Six months later it's wrong, outdated, or non-compliant.
OpenPolicy lets you define your privacy policy and terms of service as TypeScript configs — then compiles them to production-ready HTML or Markdown at build time.
- Type-safe configs your IDE validates
- Vite, Astro & CLI plugins
- GDPR & CCPA compliant output
- Fully open source
Define once. Ship anywhere.

Replies
Hey everyone 👋
I'm Jamie, the creator of OpenPolicy.
I built OpenPolicy because I was frustrated with existing online policy builders. They take forever to get through, and at the end you’re usually left with a clunky iframe or script embed that’s hard to work with.
I wanted something that was quick to set up and developer-friendly from the start. That’s how OpenPolicy was born.
It’s simple, fast, and designed to integrate cleanly into your product.
Also, it’s open-source, so feedback, issues, and contributions are always welcome. Hope you find it useful!