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

guarddog-cli

v1.0.0

Published

<div align="center"><img src=".github/assets/banner.svg" alt="guarddog-cli banner" width="800"><br/><br/></div>

Readme

guarddog-cli

Privacy and compliance scanning CLI -- PII detection, data flow tracing, cookie audit, GDPR checklist from your terminal.

Architecture

graph TD
    CLI[guarddog CLI] --> FREE[Free Commands]
    CLI --> PRO[Pro Commands]

    FREE --> SP[scan-pii]
    FREE --> SF[scan-flow]
    FREE --> CK[cookies]
    FREE --> RT[retention]
    FREE --> CN[consent]
    FREE --> SC[score]
    FREE --> DP[deps]

    PRO --> GC[gdpr-check]
    PRO --> RO[ropa]
    PRO --> DI[dpia]
    PRO --> DF[diff]
    PRO --> PL[policy]
    PRO --> MR[multi-repo]

    SP --> LIB[Scanning Engine]
    SF --> LIB
    CK --> LIB
    RT --> LIB
    CN --> LIB
    SC --> LIB
    DP --> LIB
    GC --> LIB
    RO --> LIB
    DI --> LIB
    DF --> LIB
    PL --> LIB

    LIB --> PII[pii-scanner]
    LIB --> DFT[data-flow-tracer]
    LIB --> CSC[cookie-scanner]
    LIB --> RA[retention-analyzer]
    LIB --> CA[consent-analyzer]
    LIB --> DC[dependency-checker]
    LIB --> PS[project-scanner]

Install

npm install -g guarddog-cli

Commands

| Command | Description | Tier | |:--------|:-----------|:-----| | guarddog scan-pii [path] | Scan for PII fields (12 categories) | Free | | guarddog scan-flow [path] | Trace PII data flows (collection -> storage -> external) | Free | | guarddog cookies [path] | Audit cookie usage and consent-before-set | Free | | guarddog retention [path] | Check data retention (TTL, soft-delete, deletion endpoints) | Free | | guarddog consent [path] | Scan consent management patterns | Free | | guarddog score [path] | Privacy readiness score 0-100 | Free | | guarddog deps [path] | Audit dependencies for data-sharing concerns | Free | | guarddog gdpr-check [path] | GDPR article compliance checklist | Pro | | guarddog ropa [path] | Generate ROPA template (draft) | Pro | | guarddog dpia [path] | Generate DPIA template (draft) | Pro | | guarddog diff <from> <to> | Privacy posture diff between git refs | Pro | | guarddog policy [path] | Generate privacy/cookie policy drafts | Pro | | guarddog multi-repo <repos...> | Cross-repo privacy scan (requires GITHUB_TOKEN) | Pro |

All commands support --json for machine-readable output.

Usage

# Scan for PII fields
guarddog scan-pii ./my-project

# Privacy readiness score
guarddog score ./my-project

# JSON output for CI
guarddog score ./my-project --json

# Cookie audit
guarddog cookies ./my-frontend

# GDPR checklist (Pro)
PRO_LICENSE=your-key guarddog gdpr-check ./my-project

# Privacy posture diff (Pro)
PRO_LICENSE=your-key guarddog diff main feature-branch

# Generate policies (Pro)
PRO_LICENSE=your-key guarddog policy ./my-project --company "Acme Inc" --website "https://acme.com"

PII Categories (12)

| Category | Example Fields | |:---------|:--------------| | email | email, user_email, contact_email | | phone | phone, mobile, telephone | | address | address, street, zip, postal | | ip_address | ip_address, remote_addr, client_ip | | ssn | ssn, social_security, tax_id | | dob | dob, date_of_birth, birthday | | name | first_name, last_name, full_name | | location | latitude, longitude, coordinates | | device_id | device_id, user_agent, fingerprint | | financial | credit_card, card_number, iban | | health | diagnosis, medical, prescription | | biometric | face_id, retina, voice_print |

Pro License

Pro commands require a PRO_LICENSE environment variable:

export PRO_LICENSE=your-license-key

Disclaimer

Not a substitute for qualified legal counsel. guarddog-cli provides automated pattern detection to assist with privacy compliance. Always consult qualified legal professionals for compliance decisions.

License

MIT