Business Software · Compliance & Risk Management
OpenPolicy
Typed policy and consent primitives that compile into your application
PolicyStack is a TypeScript framework for defining privacy policies, cookie policies, and consent behavior in application code. It targets developers using React, Vue, Svelte, Solid, or Angular. Open-source components use Apache-2.0, while Cloud is an optional hosted control plane. The project does not publish a fixed Cloud price.
Renamed. OpenPolicy folded into PolicyStack in 2026. The former openpolicy.sh site now redirects to PolicyStack, and the repository is named policystack.
Key facts
- License
- Apache-2.0 for open-source components; Cloud is separate
- Main language
- TypeScript, JavaScript, Svelte, Vue, CSS, and MDX
- Maintainer
- Jamie Davenport and community contributors
- First released
- 2026
- Latest release
- v1.5.0, August 28, 2026
- GitHub stars
- 153, October 2026
- Hosted option
- PolicyStack Cloud, price not published
What OpenPolicy is
PolicyStack turns privacy policy, cookie policy, and consent configuration into typed application code. Jamie Davenport started and maintains the repository, created on March 3, 2026, under the former OpenPolicy identity. The repository lists 153 GitHub stars, six forks, and contributors including Jamie Davenport, GitHub Actions, James, Vish, and Kamil Doroszewicz. The project now identifies as PolicyStack, while the previous OpenPolicy site redirects to its new home. Its target audience is developers who want policy configuration reviewed with source code and rendered inside applications. The repository describes the project as open-source and AI-first, but teams remain responsible for reviewing generated policy documents and consent behavior before production use.
How it works
PolicyStack has three documented building blocks: Policy, Consent, and Cloud. Policy stores privacy and cookie information in typed configuration, then renders components or Markdown. Consent provides a headless state machine with a sub-4-kilobyte core, framework adapters, and a Vite scanner that can fail a build when a cookie lacks a declared gate. Cloud adds hosted versioning, audit trails, and consent analytics. A typical workflow begins with the CLI, which installs packages for the chosen stack and creates a starter configuration. Developers describe jurisdictions, data practices, cookies, and third parties, then use the SDK, framework adapter, CLI, or Vite plugin during application development and builds.
Architecture and recent releases
The repository is a TypeScript monorepo containing SDK, core, Vite, CLI, renderer, script-loader, and framework packages. Listed integrations include React, Vue, Svelte, Solid, Angular, Astro, and Vite. The core model is build-time compilation plus client-side consent adapters, rather than a required server with PostgreSQL, Redis, or object storage. The repository lists CSS, JavaScript, MDX, Svelte, TypeScript, and Vue among its languages. GitHub lists package releases at version 1.5.0 dated August 28, 2026. The release notes describe canonical United States state identifiers, expanded legally required GPC jurisdiction handling, and compact diagnostics for unknown jurisdictions. Operators should test upgrades in a separate environment before changing the production deployment and its integrations.
License and pricing
The repository states that everything except Cloud is Apache-2.0 licensed. That license permits commercial use, modification, and redistribution subject to its conditions. Cloud is described as an optional hosted control plane for consent tracking, policy versioning, audit trails, rollout, analytics, and integrations. The Cloud page lists jurisdictions including GDPR, CCPA or CPRA, LGPD, PIPEDA, APPI, PDPA, the Australian Privacy Act, DPDP, and POPIA. It does not publish a fixed price. The repository's legal notice says generated policies are not legal advice. Organizations must review their configuration, generated documents, consent flows, and jurisdiction choices before publication. Budget for operating the deployment as well as any subscription, including backups, upgrades, and staff time spent managing access.
Limitations and how it compares
PolicyStack's main constraint is operational and legal responsibility: teams still define their practices, review generated documents, and decide how consent data should be handled. Its build scanner and typed configuration suit engineering-led teams, while the headless consent model leaves banner design to application developers. OpenConsent and CookieConsent are open-source alternatives for consent interfaces and controls. OneTrust and Termly provide proprietary hosted workflows and broader nontechnical authoring. PolicyStack is the better fit for teams that want policy and consent changes in code, can maintain frontend integrations, and do not need a fixed-price hosted service. Choose it when these documented tradeoffs match your requirements, and review the deployment responsibilities before committing the whole team.
Main features
- Typed Policy Configuration. Define privacy and cookie practices in typed configuration, keeping policy changes reviewable and versioned alongside application code.
- Build-Time Rendering. Compile policy configuration into Markdown or application components during builds, linking published documents with source changes.
- Headless Consent State. Use a sub-4-kilobyte consent state machine while implementing banners and controls through application-specific components, within the application workflow rather than a separate manual process.
- Framework Adapters. Use documented adapters for React, Vue, Svelte, Solid, and Angular applications without embedding a third-party iframe.
- Consent Scanner. Run the Vite scanner to detect undeclared third parties and stop builds when configured cookies lack an appropriate consent gate.
- Policy CLI. Run the CLI to install stack-specific packages, create a starter configuration, and validate project setup.
- Cloud Audit Features. Optional Cloud services add policy versioning, consent history, rollout tracking, audit documentation, analytics, and integrations.
Self-hosting OpenPolicy
Install packages from the @policystack scope with Bun or npm, or begin with the documented bunx CLI initializer. Add the SDK, core, framework adapter, renderer, and Vite plugin required by the application. The open-source components do not require PostgreSQL, Redis, object storage, or a separate server runtime. Generated documents can be served by the application or a static host, while consent state runs through the selected adapter. The project does not publish minimum CPU or memory requirements. Pin package versions, keep configuration in version control, review generated output after upgrades, and back up any separately managed consent data.
Strengths
- Apache-2.0 licensing covers commercial use of the open-source components.
- Typed configuration places policy changes inside normal code review.
- The consent core is documented as smaller than four kilobytes.
- The open-source components do not require a database or separate server.
Drawbacks
- Teams must build and maintain their own consent banner interface.
- Generated documents still require legal review before publication.
- Cloud pricing is not published.
What teams replace with it
Teams usually evaluate OpenPolicy when they want to move off OneTrust, Termly, iubenda.
For side-by-side commercial comparisons, browse our alternatives hub.
Open-source alternatives to OpenPolicy
- OpenConsent
- CookieConsent
- Consent-O-Matic
- c15t
Frequently asked questions
Is PolicyStack free?
The repository says its open-source components are Apache-2.0 licensed, and it does not list a software fee for them. PolicyStack Cloud is separate and provides hosted consent, versioning, audit, rollout, and analytics features. The Cloud page does not publish a fixed price, so hosting and commercial terms require direct discussion.
Can companies use PolicyStack commercially?
Yes, the repository identifies the open-source components as Apache-2.0. That license permits commercial use, modification, and redistribution subject to its conditions. Cloud is a separate hosted offering. Organizations should review package licenses, their own distribution model, and the legal accuracy of generated policies before using the framework in a commercial product.
How do I self-host PolicyStack?
Install the required packages with Bun or npm, or use the CLI initializer to create a starter configuration. Add the SDK, core, selected framework adapter, and Vite integration to the application. The open-source components do not require PostgreSQL, Redis, or object storage. Generated documents can run from the application or a static host.
How does PolicyStack compare with c15t?
PolicyStack combines typed policy documents, a consent state machine, framework adapters, and a build scanner. c15t is an open-source consent platform with a different scope and implementation. Choose PolicyStack when policy configuration and build checks matter most. Choose c15t when its consent-focused architecture and integrations better match the application.
Does PolicyStack provide legal certification?
No. The repository's legal notice says generated policies are not legal advice. PolicyStack supplies configuration, rendering, consent state, and build checks, but it does not determine whether an organization's practices satisfy every applicable law. A qualified legal reviewer should examine the final documents, data practices, jurisdictions, cookies, and consent behavior.
Similar projects to compare
- c15tApache-2.0c15t is an Apache-2.0 consent manager for JavaScript applications, offering framework adapters, banners, policy rules, vendor loaders, and consent records. Teams can self-host its backend with PostgreSQL, MySQL, or SQLite, or use Inth hosting. The software is free to use, while hosted plans range from free to paid tiers with published usage limits.
- BallerineMultiple licenses, including MIT and Elastic License 2.0 (source-available)Ballerine is open-source risk-management and data-orchestration infrastructure for payment companies, marketplaces, and fintech teams handling KYC, KYB, underwriting, and transaction monitoring. Its monorepo uses MIT and Elastic License 2.0 components, while Ballerine, Inc. offers a separate commercial SaaS version with quote-based pricing. The repository is currently undergoing a major rebuild and is not actively supported.
- Comp AIAGPL-3.0 for core; commercial license for Enterprise Edition (/ee)Comp AI is an open-source compliance platform for teams managing SOC 2, ISO 27001, HIPAA, GDPR, and related programs. Its core is licensed under AGPL-3.0, with a separately licensed Enterprise Edition, and Comp AI offers a hosted service with custom pricing rather than a published rate card. It supports self-hosting, integrations, policies, questionnaires, cloud checks, devices, and Trust Centers.
- OpenlaneApache-2.0Openlane is an Apache-2.0 compliance platform for SOC 2, ISO 27001, NIST, GDPR, and related programs. Theopenlane, Inc. maintains the core and offers hosted modular pricing, unlimited users, and a 30-day trial without a credit card. The open-source stack can be run locally with Go, Task, and Docker.
- ProboMITProbo is an open-source governance, risk, and compliance platform for engineering, security, and compliance teams. Its MIT license permits commercial use and self-hosting, while Probo offers Cloud and compliance officer services. The public pages do not publish a fixed Cloud price, so prospective customers must request a quote.