TanStack
Search...
K
Auto
Log In
Start
RC
Start
RC
Router
Router
Query
Query
Table
Table
DB
beta
DB
beta
AI
alpha
AI
alpha
Form
new
Form
new
Virtual
Virtual
Pacer
beta
Pacer
beta
Hotkeys
alpha
Hotkeys
alpha
Store
alpha
Store
alpha
Devtools
alpha
Devtools
alpha
CLI
alpha
CLI
alpha
Intent
alpha
Intent
alpha
More Libraries
More Libraries
Builder
Alpha
Builder
Alpha
Blog
Blog
Maintainers
Maintainers
Partners
Partners
Showcase
Showcase
Learn
NEW
Learn
NEW
Stats
Stats
YouTube
YouTube
Discord
Discord
Merch
Merch
Support
Support
GitHub
GitHub
Ethos
Ethos
Tenets
Tenets
Brand Guide
Brand Guide
TanStack Intent
/
Registry
/
@openpolicy/sdk
@openpolicy/sdk
0.0.23 (latest) — 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 autoCollect() 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.
232 lines
annotate-third-parties
core
Mark third-party service dependencies in source code using thirdParty() so the autoCollect() 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.
226 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.
215 lines
getting-started
lifecycle
End-to-end setup for OpenPolicy: install @openpolicy/sdk, @openpolicy/react, and @openpolicy/vite-auto-collect; create openpolicy.ts with defineConfig(); wire autoCollect() into vite.config.ts; wrap the React app with <OpenPolicy>; render <PrivacyPolicy>.
244 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.
236 lines