Developer Integrations
Put privacy compliance into every tool you already use — terminal, CI/CD, AI editors, deploy pipeline, and README.
CLI
npx pageguard
Scan any project from your terminal. Detects tracking technologies from package.json and config files. Zero dependencies. Live on npm.
View on npm# Scan your project (free, zero install) npx pageguard # See what's wrong and how to fix it npx pageguard --fix # Scan a live URL npx pageguard --url https://example.com # Generate privacy policy, terms & cookie policy npx pageguard --url https://example.com --generate # Using Claude Code, Cursor, or another AI tool? # Run this so your AI knows what PageGuard is: npx pageguard --init
GitHub Action
pageguard/pageguard-action@v1
Compliance gate for every PR. Scans for trackers, scores privacy risk, posts a summary comment, and fails the check if your risk threshold is exceeded. Once it's in your workflow, no one ships a new tracker without owning the decision.
View on GitHub Marketplace# .github/workflows/compliance.yml
name: Privacy Compliance
on: [pull_request, push]
jobs:
scan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pageguard/pageguard-action@v1
with:
compliance-gate: true # Fail PRs that exceed the threshold
risk-threshold: 70 # 0–100, default 70
api-key: ${{ secrets.PAGEGUARD_API_KEY }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}MCP Server
Newnpx pageguard-mcp
Privacy compliance as native tools inside any MCP-compatible AI assistant — Claude Code, Cursor, Windsurf, and ChatGPT. No prompts to memorize. Just ask your AI to scan your project or a live URL and it calls PageGuard directly.
View on npm# Claude Code — add to .mcp.json or global MCP config
{
"mcpServers": {
"pageguard": {
"command": "npx",
"args": ["pageguard-mcp"]
}
}
}
# Cursor — Settings > MCP Servers (same config)
# Windsurf — MCP configuration (same config)
# Then just ask your AI:
"Scan this project for compliance issues"
"What trackers does my app use?"
"Generate a privacy policy for this project"Claude Code Skill
AI-powered compliance
One command hooks PageGuard into Claude Code. From then on, just ask Claude to check your compliance — it runs the scan, explains what it found, and tells you exactly what to fix.
# Run this once in your project folder: npx pageguard --init # That's it. Now ask Claude Code: "Do I need a privacy policy?" "What data does my app collect?" "Check this project before I ship" # Claude will run the scan, explain the # results, and walk you through fixing # any compliance gaps it finds.
Deploy Hooks
Vercel & Netlify
Get a compliance scan on every deploy. Compare scores between deploys to catch new trackers before they go live.
# Vercel Deploy Hook
POST https://getpageguard.com/api/v1/webhook/deploy?domain=example.com
# Netlify Outgoing Webhook
URL: https://getpageguard.com/api/v1/webhook/deploy
Event: Deploy succeeded
# Response includes score comparison
{
"score": 42,
"comparison": {
"previousScore": 35,
"scoreChange": +7
}
}Trust Badge
Build trust, boost conversions
Embed a live compliance badge on your site or README. Shows your privacy score and updates automatically on each scan. Two styles: a rich widget for footers, or a flat shields.io-style badge for READMEs.
# Widget badge — best for website footers
<a href="https://getpageguard.com" target="_blank" rel="noopener">
<img src="https://getpageguard.com/api/badge?url=example.com&format=widget"
alt="Privacy Verified by PageGuard" width="200" height="42" />
</a>
# Flat badge — best for GitHub READMEs
[](https://getpageguard.com)
# React / Next.js
<a href="https://getpageguard.com" target="_blank" rel="noopener noreferrer">
<img src="https://getpageguard.com/api/badge?url=example.com&format=widget"
alt="Privacy Verified by PageGuard" width={200} height={42} />
</a>IDE Rules
Cursor, Windsurf, Bolt
One command sets up compliance rules for every AI tool it detects — Claude Code, Cursor, and Windsurf. Your AI will check privacy compliance whenever you add dependencies.
# Auto-detects your AI tools and configures all of them: npx pageguard --init # Sets up rules for whichever it finds: # → CLAUDE.md (Claude Code) # → .cursor/rules/ (Cursor) # → .windsurfrules (Windsurf) # Using Bolt? Copy instructions from: # https://getpageguard.com/bolt-snippet.md
All integrations require a PageGuard API key for document generation.