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

@astriguard/cli

v1.0.6

Published

AI-powered compliance scanning CLI for Astriguard

Readme

@astriguard/cli

AI-powered compliance scanning for your terminal.

About

Astriguard scans your pull requests for compliance violations using AI, covering SOC 2, HIPAA, GDPR, and the EU AI Act. The CLI brings those same checks to your local machine so you can catch issues before they ever reach code review.

Full documentation and dashboard at astriaguard.com.

Installation

npm install -g @astriguard/cli

Authentication

Before running any scans, authenticate with your GitHub account:

astria-cli login

This opens a GitHub device flow in your browser and saves a token locally. Run astria-cli logout to revoke it at any time.

Commands

login

Authenticate with Astriguard via GitHub.

astria-cli login

logout

Revoke your token and remove saved credentials.

astria-cli logout

scan --pre-push

Scan all commits about to be pushed to the remote.

astria-cli scan --pre-push

scan --file <path>

Scan a single file against compliance rules.

astria-cli scan --file src/auth/session.ts

install-hooks

Install a pre-push git hook in the current repository. Once installed, a compliance scan runs automatically every time you push.

astria-cli install-hooks

uninstall-hooks

Remove the pre-push hook installed by Astriguard.

astria-cli uninstall-hooks

Compliance Frameworks

By default, scans run against SOC 2. Use --frameworks to target one or more standards:

| Flag value | Standard | | ----------- | ------------- | | SOC2 | SOC 2 Type II | | HIPAA | HIPAA | | GDPR | GDPR | | EU_AI_ACT | EU AI Act |

# Single framework
astria-cli scan --pre-push --frameworks HIPAA

# Multiple frameworks
astria-cli scan --pre-push --frameworks SOC2,HIPAA,GDPR

Recommended Workflow

Install the hook once per repository:

astria-cli install-hooks

From that point on, every git push automatically runs astria-cli scan --pre-push. If violations are found, the push is blocked and findings are printed to the terminal. Fix the issues and push again.

Exit Codes

| Code | Meaning | | ---- | ------------------- | | 0 | No violations found | | 1 | Violations found |

Exit codes make it straightforward to integrate the CLI into CI pipelines or custom scripts.

Learn More

https://www.astriaguard.com