The open-source platform for managing legal and public documents.
Explore the website
Report Bug
·
Request Feature
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)
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).
Built with the best modern web technologies.
- Framework: Next.js 16 (App Router)
- Database & Auth: Supabase
- Payments: Polar.sh
- Editor: PlateJS
- Monitoring: Sentry
- Node.js 18+
- pnpm (recommended) or npm
- A Supabase project
- A Polar.sh account (for payments)
-
Clone the repository:
git clone https://github.com/zakafz/openpolicy.git cd openpolicy -
Install dependencies:
pnpm install
-
Set up environment variables: Create a
.env.localfile in the root directory and add the following variables. Seeenv.examplefor more template. -
Run the development server:
pnpm dev
-
Open the app: Visit http://localhost:3000 in your browser.
Contributions are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature) - Commit your Changes (
git commit -m 'Add some AmazingFeature') - Push to the Branch (
git push origin feature/AmazingFeature) - Open a Pull Request
Distributed under the GPL-3.0 License. See LICENSE for more information.
Support: support@openpolicyhq.com
Contact page: contact
