{"id":50713371,"url":"https://github.com/jamiedavenport/policystack","last_synced_at":"2026-06-09T17:00:51.810Z","repository":{"id":342296226,"uuid":"1171190748","full_name":"jamiedavenport/policystack","owner":"jamiedavenport","description":"AI-first primitives for adding consent and policies to your apps","archived":false,"fork":false,"pushed_at":"2026-05-26T13:34:22.000Z","size":12391,"stargazers_count":151,"open_issues_count":0,"forks_count":6,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-07T17:05:05.526Z","etag":null,"topics":["astro","cli","privacy-policy","react","typescript","vite"],"latest_commit_sha":null,"homepage":"https://www.policystack.dev/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jamiedavenport.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":"NOTICE.md","maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":"jamiedavenport"}},"created_at":"2026-03-03T00:55:54.000Z","updated_at":"2026-06-04T15:23:26.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/jamiedavenport/policystack","commit_stats":null,"previous_names":["jamiedavenport/openpolicy","jamiedavenport/policystack"],"tags_count":194,"template":false,"template_full_name":null,"purl":"pkg:github/jamiedavenport/policystack","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamiedavenport%2Fpolicystack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamiedavenport%2Fpolicystack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamiedavenport%2Fpolicystack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamiedavenport%2Fpolicystack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jamiedavenport","download_url":"https://codeload.github.com/jamiedavenport/policystack/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamiedavenport%2Fpolicystack/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34116461,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-09T02:00:06.510Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["astro","cli","privacy-policy","react","typescript","vite"],"created_at":"2026-06-09T17:00:36.060Z","updated_at":"2026-06-09T17:00:51.795Z","avatar_url":"https://github.com/jamiedavenport.png","language":"TypeScript","funding_links":["https://github.com/sponsors/jamiedavenport"],"categories":[],"sub_categories":[],"readme":"[![PolicyStack](./images/banner.png)](https://policystack.dev)\n\n# PolicyStack\n\nOpen-source, AI-first primitives for adding privacy policies and consent to your app. One typed config drives your privacy policy, your cookie policy, and the consent that gates the cookies they describe — all rendered directly into your React/Vue/Svelte/Solid/Angular app, never a third-party iframe.\n\n- [Homepage](https://policystack.dev)\n- [Documentation](https://policystack.dev/docs)\n- [Blog](https://policystack.dev/blog)\n\n## Three building blocks\n\n- **[Policy](https://policystack.dev/docs/policy)** — your privacy and cookie policy as a typed config, rendered as components or Markdown. A Vite plugin compiles it at build time and scans for undeclared third parties.\n- **[Consent](https://policystack.dev/docs/consent)** — a headless consent state machine. Sub-4kb core, adapters for React, Vue, Solid, Svelte, and Angular, and a Vite plugin that fails the build on an ungated cookie. No bundled UI — you build the banner with your own components.\n- **Cloud** — an optional hosted control plane for versioning, audit trails, and consent analytics. It sits on top of the OSS pieces; you never need it to use them.\n\nEverything except Cloud is Apache-2.0.\n\n## Quick start\n\n```bash\nbunx @policystack/cli init\n```\n\n`init` installs the right packages for your stack, writes a starter `policystack.ts`, and prints a prompt you can hand to a coding agent. See the [quick start](https://policystack.dev/docs/policy/cli) for the full walkthrough.\n\n## Packages\n\nAll packages publish under the `@policystack/*` scope and version together.\n\n| Package                  | What it is                                                 |\n| ------------------------ | ---------------------------------------------------------- |\n| `@policystack/sdk`       | Public API — `defineConfig()`, `renderLlmsTxt()`           |\n| `@policystack/core`      | Compilation engine + consent runtime (`./consent` subpath) |\n| `@policystack/vite`      | Vite plugin + opt-in consent scanner                       |\n| `@policystack/cli`       | Install / configure / validate CLI                         |\n| `@policystack/renderers` | Shared Markdown / HTML / PDF render layer                  |\n| `@policystack/scripts`   | Consent-gated third-party script loaders                   |\n| `@policystack/react`     | React adapters — `./policy`, `./consent`, `./provider`     |\n| `@policystack/vue`       | Vue adapters — `./policy`, `./consent`                     |\n| `@policystack/svelte`    | Svelte adapters — `./policy`, `./consent`                  |\n| `@policystack/solid`     | Solid adapter — `./consent`                                |\n| `@policystack/angular`   | Angular adapter — `./consent`                              |\n\n## Contributing\n\nSee [CONTRIBUTING.md](./CONTRIBUTING.md) for setup, the monorepo layout, and the release flow. Apache-2.0 — issues and PRs welcome.\n\n\u003e **Not legal advice.** PolicyStack generates policy documents from your config. It does not provide legal advice. Have a lawyer review your policies before publication. See the [legal notice](https://policystack.dev/legal-notice).\n\n# Contributors\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section --\u003e\n\u003c!-- prettier-ignore-start --\u003e\n\u003c!-- markdownlint-disable --\u003e\n\u003ctable\u003e\n  \u003ctbody\u003e\n    \u003ctr\u003e\n      \u003ctd align=\"center\" valign=\"top\" width=\"14.28%\"\u003e\u003ca href=\"https://www.jxd.dev/\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/1329874?v=4?s=100\" width=\"100px;\" alt=\"Jamie Davenport\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eJamie Davenport\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/jamiedavenport/policystack/commits?author=jamiedavenport\" title=\"Code\"\u003e💻\u003c/a\u003e\u003c/td\u003e\n      \u003ctd align=\"center\" valign=\"top\" width=\"14.28%\"\u003e\u003ca href=\"https://github.com/jimbobware\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/121758727?v=4?s=100\" width=\"100px;\" alt=\"James\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eJames\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/jamiedavenport/policystack/commits?author=jimbobware\" title=\"Code\"\u003e💻\u003c/a\u003e\u003c/td\u003e\n      \u003ctd align=\"center\" valign=\"top\" width=\"14.28%\"\u003e\u003ca href=\"https://www.vishvish.com/\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/184423?v=4?s=100\" width=\"100px;\" alt=\"Vish\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eVish\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/jamiedavenport/policystack/commits?author=vishvish\" title=\"Code\"\u003e💻\u003c/a\u003e\u003c/td\u003e\n      \u003ctd align=\"center\" valign=\"top\" width=\"14.28%\"\u003e\u003ca href=\"https://github.com/kdoroszewicz\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/7294362?v=4?s=100\" width=\"100px;\" alt=\"Kamil Doroszewicz\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eKamil Doroszewicz\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/jamiedavenport/policystack/commits?author=kdoroszewicz\" title=\"Code\"\u003e💻\u003c/a\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n  \u003c/tbody\u003e\n\u003c/table\u003e\n\n\u003c!-- markdownlint-restore --\u003e\n\u003c!-- prettier-ignore-end --\u003e\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:END --\u003e\n\n# Stargazers\n\n[![RepoStars](https://repostars.dev/api/embed?repo=jamiedavenport%2Fpolicystack\u0026theme=light)](https://repostars.dev/?repos=jamiedavenport%2Fpolicystack\u0026theme=light)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjamiedavenport%2Fpolicystack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjamiedavenport%2Fpolicystack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjamiedavenport%2Fpolicystack/lists"}