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

package-firewall

v1.0.1

Published

An experimental package network access control tool

Readme

package-firewall

An experimental package network access control tool

It's an experiment. Do not rely on it. Not fit to run in production.

Now with all the disclaimers done, let's get into it.

idea

package-firewall reviews all stack traces leading to requiring a net module in your entire codebase (including dependencies) in runtime. net is the internal module that's behind all socket/http etc. communication in Node.js. It only lets the ones you allowed through.

It means whenever you (or a malicious package) require anything that could make an outbound request, it must be verified.

The aim is for it to be simple to use, so you record a running application and review results. All configuration is generated for you to edit/tweak.

I'll remove the disclaimer once there's a reason to believe it really works well enough.

usage

prepare

npm install package-firewall
node --require package-firewall/record app.js

Produces a list of signatures in package.json and creates a packageFirewallSignatureReference.json file for you to look up the stack traces leading through your program to the place where net module got required.

You need to review those and check if you recognize the modules there.
Keep the signatures for modules (and code paths) you want to have network access.

If you don't like what you see, investigate the packages, obviously.

run

Run your app like this:

node --require package-firewall app.js

And the app will crash whenever a new code path tries to use network.

warn mode

Crashing the app is too much? You can run it as a warning too.

node --require package-firewall/warn app.js