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

@anthonystepvoy/devguard

v0.1.1

Published

Experimental HOME/env isolation for package-manager install scripts

Readme

@anthonystepvoy/devguard

Experimental HOME/env isolation for package-manager install scripts.

npm install -g @anthonystepvoy/devguard
devguard install npm

devguard is a defense-in-depth wrapper for npm, pnpm, yarn, and bun. It reduces what dependency lifecycle scripts can see by running the script phase with a temporary HOME, redirected Windows home variables, no SSH agent socket, and a conservative environment allowlist.

It is not an OS sandbox yet. Absolute paths to real home files, files inside the project directory, and outbound network access are still limitations.

Commands

devguard scan
devguard scan --json
devguard scan --dir ./project

devguard install npm
devguard install pnpm
devguard install yarn
devguard install bun
devguard install npm --cwd ./my-project
devguard install npm -- -D typescript

devguard doctor
devguard audit-log

How npm/pnpm Protection Works

Phase 1: npm install --ignore-scripts   # real HOME, real auth, scripts disabled
Phase 2: npm rebuild                    # temporary HOME, scripts enabled

Private registry auth is available during download. Lifecycle scripts then run with HOME, USERPROFILE, HOMEDRIVE, HOMEPATH, APPDATA, and LOCALAPPDATA pointed at a temporary directory.

What Gets Hidden

  • ~/.npmrc, ~/.ssh, ~/.aws, ~/.config/gh, ~/.docker, ~/.kube through normal HOME-based lookups
  • SSH agent environment variables
  • common secret environment variables such as GITHUB_TOKEN, AWS_SECRET_ACCESS_KEY, OPENAI_API_KEY, ANTHROPIC_API_KEY, GOOGLE_API_KEY, NPM_TOKEN
  • generic *_TOKEN, *_SECRET, *_PASSWORD, *_API_KEY, *_PRIVATE_KEY, and *_CREDENTIAL names

Current Limitations

  • HOME/env redirection only; no OS-level filesystem sandbox yet
  • absolute paths such as /home/name/.ssh/id_rsa or C:\Users\name\.npmrc can bypass v0.1.x protections
  • project files, including project .env, remain visible to lifecycle scripts
  • network policy is advisory only
  • yarn/bun isolation is weaker because package-manager auth files may be copied into the temporary HOME

Diagnostics

devguard doctor

Use doctor to check package-manager discovery, temp directory writability, npm ignore-scripts settings, and known secret-file exposure.

Release Assets

The npm installer downloads a platform binary from GitHub releases and verifies a matching .sha256 file before making it executable.

Repository: https://github.com/anthonystepvoy/devguard