Libraries
Framework
Start
Router
Data & State
Query
DB
Store
AI
UI
Table
Charts
Form
Markdown
Highlight
UX
Virtual
Pacer
Hotkeys
Tooling
Devtools
Config
CLI
Intent
Browse all libraries
Blog
Blog & Release Notes
About
YouTube
The official TanStack channel.
Workshops
Live sessions from the maintainers.
Release Notes
The latest releases and changelog.
Community
Channels
Discord
Real-time community support.
GitHub
Source, issues, discussions, and releases.
People & Work
Maintainers
Meet the people maintaining the stack.
Showcase
Projects selected by the TanStack team.
Community projects
Tools
Tools
Application Starter
Alpha
Generate TanStack app starters.
Builder
Alpha
Build and share TanStack projects.
Stats
NPM and ecosystem usage data.
Merch
View all
Support
Support
Support Overview
Find the right support path.
Partners
Companies supporting TanStack.
OSS Sponsors
Sponsors keeping TanStack open source.
Enterprise Support
Private consulting and expert support.
Contact
Get in touch with the TanStack team.
About
Ethos
How we approach open source.
Tenets
The values that shape TanStack libraries.
Design System
Logos, tokens, and UI components.
Search
Ask AI
Libraries
Blog
Community
Tools
Merch
Support
Search
Ask AI
Sign In
Back
TanStack Intent
/
Registry
/
@openpolicy/sdk
Fetching package from npm...
TanStack Intent
/
Registry
/
@openpolicy/sdk
@openpolicy/sdk
0.0.34 (latest) — 5 skills
0.0.33 — 5 skills
0.0.32 — 5 skills
0.0.31 — 5 skills
0.0.30 — 5 skills
0.0.29 — 5 skills
0.0.28 — 5 skills
0.0.27 — 5 skills
0.0.26 — 5 skills
0.0.25 — 5 skills
0.0.24 — 5 skills
0.0.23 — 5 skills
0.0.22 — 5 skills
1.0.0 — 5 skills
0.0.21 — 5 skills
0.0.20 — 5 skills
Copy install prompt
Public API for defining privacy policies with OpenPolicy
Skills
(5)
Skills
All Skills
5
annotate-data-collection
core
annotate-third-parties
core
define-config
core
getting-started
lifecycle
migrate
lifecycle
Skills
5
History
annotate-data-collection
core
Mark data collection points in source code with collecting(category, value, labels) so the openPolicy() Vite plugin can populate privacy.dataCollected automatically at build time via static AST analysis. All arguments must be string literals. Spread the dataCollected sentinel from @openpolicy/sdk into the config for plugin output to take effect.
267 lines
annotate-third-parties
core
Mark third-party service dependencies in source code using thirdParty() so the openPolicy() Vite plugin can populate the thirdParties sentinel for the privacy policy config. Covers manual annotation, usePackageJson auto-detection from the KNOWN_PACKAGES registry, combining both approaches, and the Providers preset as a static alternative.
231 lines
define-config
core
Writing the defineConfig() object for OpenPolicyConfig — privacy and cookie — including all field types, jurisdiction requirements, and preset constants from @openpolicy/sdk.
285 lines
getting-started
lifecycle
End-to-end setup for OpenPolicy: install @openpolicy/sdk, @openpolicy/react, and @openpolicy/vite; create openpolicy.ts with defineConfig(); wire openPolicy() into vite.config.ts; wrap the React app with <OpenPolicy>; render <PrivacyPolicy>.
285 lines
migrate
lifecycle
Converting existing hand-written privacy policies into OpenPolicy defineConfig() configs — mapping prose sections to structured TypeScript fields without passing raw text as values.
319 lines