npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

pageguard

v1.2.1

Published

Privacy compliance scanner — detect trackers, cookies, and data collection in your project. Zero dependencies.

Readme

pageguard

Privacy compliance scanner for developers. Detect trackers, cookies, and data collection in your project or website. Zero dependencies.

Quick Start

# Scan current project
npx pageguard

# Scan a website
npx pageguard --url https://example.com

# JSON output (for CI/CD)
npx pageguard --json

What It Does

PageGuard scans your project's package.json and config files to detect tracking technologies, analytics SDKs, payment processors, and other tools that collect user data. It tells you:

  • What technologies you're using that touch user data
  • How many data types and cookies each one introduces
  • Which third parties receive data (and where they're based)
  • Whether you need a privacy policy, cookie policy, or terms of service

Usage

npx pageguard                     Scan current directory
npx pageguard --path ./my-app     Scan a specific directory
npx pageguard --url example.com   Scan a live website (via API)
npx pageguard --generate          Generate legal documents (requires API key)
npx pageguard --json              Output results as JSON
npx pageguard --set-key <key>     Save your API key
npx pageguard --status            Show current API key status

Local Scan (default)

Reads package.json, framework configs (Next.js, Nuxt, Gatsby, Astro, Vite, Angular), and .env files. Matches against 100+ technology signatures. Runs entirely offline — nothing leaves your machine.

URL Scan

Scans a live website via the PageGuard API. Detects technologies from HTML, scripts, cookies, and headers. Returns a full compliance report with risk scoring.

npx pageguard --url https://mysite.com

Document Generation

Generate AI-written privacy policies, terms of service, and cookie policies based on your scan results. Requires an API key and credits.

npx pageguard --url https://mysite.com --generate

Documents are saved to ./pageguard-docs/.

API Key

URL scanning works without a key (rate-limited to 10/day). Document generation requires a key.

# Save your key
npx pageguard --set-key pg_live_abc123

# Or use an environment variable
export PAGEGUARD_API_KEY=pg_live_abc123

Get an API key at getpageguard.com.

CI/CD Integration

Use JSON output in your pipelines:

# Fail if any technologies detected
result=$(npx pageguard --json)
count=$(echo "$result" | jq '.summary.totalTechnologies')
if [ "$count" -gt 0 ]; then
  echo "Privacy technologies detected — review required"
  exit 1
fi

Or use the GitHub Action for PR comments.

Environment Variables

| Variable | Description | |---|---| | PAGEGUARD_API_KEY | API key (overrides ~/.pageguard/config) | | PAGEGUARD_API_URL | API base URL (default: https://getpageguard.com) |

Links

License

MIT