Ad
 
Learn more
Favicon of OpenPolicy

OpenPolicy

Open-source policy-as-code framework that lets developers create privacy policies, terms of service, and legal agreements using TypeScript with built-in GDPR/CCPA compliance.

Open Source Alternative to:

Screenshot of OpenPolicy website

The first policy-as-code framework designed specifically for developers and busy founders who want to handle legal documentation the same way they build software. Instead of wrestling with legal templates or hiring expensive lawyers for basic policies, you can now define your privacy policies, terms of service, and other legal agreements directly in TypeScript.

Key benefits that make OpenPolicy stand out:

  • TypeScript-first approach - Write policies in the language you already know and love
  • Multi-format output - Automatically generate HTML, PDF, and Markdown versions at build time
  • GDPR & CCPA ready - Built-in templates ensure compliance with major privacy regulations
  • Version controlled - Your policies live in your repository and deploy with your code
  • Always synchronized - Policies regenerate on every build, so they're never out of date
  • Multi-jurisdiction support - Works for US, EU, UK and other regions out of the box
  • Framework agnostic - Integrates seamlessly with React, Vue, Svelte, or plain HTML projects

The Vite integration makes it incredibly easy to drop into your existing build pipeline. Simply define your company details, data collection practices, third-party services, and legal requirements in a single TypeScript configuration file. The framework handles the rest, generating compliant legal documents that automatically stay in sync with your application.

Perfect for startups and development teams who need professional legal documentation without the traditional overhead of legal consultations for standard policies.

Share:

Similar open source projects

Favicon

 

  
  • Stars


  • Forks


  • Last commit


Favicon

 

  
  • Stars


  • Forks


  • Last commit


Favicon

 

  
  • Stars


  • Forks


  • Last commit