Skip to content

zakafz/openpolicy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

OpenPolicy Logo

OpenPolicy

The open-source platform for managing legal and public documents.
Explore the website
Report Bug · Request Feature

GitHub License GitHub Tag GitHub branch status


OpenPolicy Dashboard

About OpenPolicy

OpenPolicy is a new open-source platform designed to simplify the creation, management, and publishing of legal and public documents. Whether you're a startup needing a Privacy Policy or an enterprise managing complex compliance documentation, OpenPolicy provides a solution that is both simple and secure.

We believe that legal documentation shouldn't be a hassle. It should be:

  • Accessible: Publish instantly to a custom domain.
  • Collaborative: Work with your team in real-time. (Coming soon)
  • Versioned: Keep track of every change. (Coming soon)

Features

OpenPolicy is packed with features to help you manage your policies effectively. And more are coming soon!

  • AI-Powered Writing: Built-in AI Copilot for autocompletion and Command mode for generating, editing, and summarizing text.
  • Rich Text Editor: Advanced editor with support for markdown, tables, and Excalidraw diagrams.
  • Multi-Workspace Support: Organize documents by team, project, or client with isolated workspaces. (Coming soon)
  • Custom Domains: Connect your own domain (e.g., docs.acme.com) with automatic SSL.
  • Document Management:
    • Status Workflow: Draft, Publish, and Archive states.
    • SEO Optimized: Automatic dynamic metadata generation for better discoverability.
  • Custom Branding: Workspaces get unique slugs (e.g., acme.openpolicyhq.com).

Tech Stack

Built with the best modern web technologies.

Getting Started

Prerequisites

  • Node.js 18+
  • pnpm (recommended) or npm
  • A Supabase project
  • A Polar.sh account (for payments)

Installation

  1. Clone the repository:

    git clone https://github.com/zakafz/openpolicy.git
    cd openpolicy
  2. Install dependencies:

    pnpm install
  3. Set up environment variables: Create a .env.local file in the root directory and add the following variables. See env.example for more template.

  4. Run the development server:

    pnpm dev
  5. Open the app: Visit http://localhost:3000 in your browser.

Contributing

Contributions are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

Distributed under the GPL-3.0 License. See LICENSE for more information.

Contact

Support: support@openpolicyhq.com

Contact page: contact