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

gatepost-sec

v1.1.2

Published

Supply chain security for 17 package managers. Blocks malware, typosquats, and vulnerabilities before they install.

Readme

Gatepost


What it catches

| Check | Description | Default | |---|---|---| | Blocklist | Known malicious packages (89+ entries) | Block | | Typosquat detection | Levenshtein distance against popular packages | Warn | | CVE scanning | Live vulnerability lookup via OSV.dev | Warn | | Package age | Flags packages published less than 24 hours ago | Warn | | Install scripts | Detects preinstall / postinstall hooks | Warn | | Maintainer change | Flags when the latest version has a new publisher | Warn |

Every check runs in parallel. Clean packages pass through silently.


17 package managers

| Ecosystem | Managers | |---|---| | Node / JS | npm npx yarn pnpm pnpx bun bunx | | Python | pip pip3 uv poetry pipx python -m pip | | Ruby | gem | | Rust | cargo | | PHP | composer | | Elixir | mix | | Dart / Flutter | pub |


Install

npm install -g gatepost-sec

That's it. Shell aliases are configured automatically. Restart your terminal and every package manager is protected.

curl

curl -fsSL https://raw.githubusercontent.com/GetDarkfall/Gatepost/master/install.sh | sh

From source

git clone https://github.com/GetDarkfall/Gatepost.git
cd Gatepost
npm install -g .

Usage

Use your package managers exactly as you normally would:

npm install lodash
pip install requests
python -m pip install flask
cargo add serde
gem install rails

When a package is clean, Gatepost is invisible. When something is wrong:

gatepost: install blocked

  blocked  event-stream  Known malicious package

Exit code 1. Nothing was installed.

Warnings print but don't block:

gatepost: warning

  warn  lodahs  Possible typosquat of "lodash"

Manual check

Scan packages without installing them:

gatepost check express axios lodash
  ok       express
  ok       axios
  ok       lodash

All packages look clean.

Audit lockfiles

Scan your project's dependency files in one command:

gatepost audit

Parses package.json, requirements.txt, Gemfile, Cargo.toml, composer.json, mix.exs, and pubspec.yaml automatically.

gatepost audit --json    # Machine-readable output for CI

CI/CD

# GitHub Actions
- run: npm install -g gatepost-sec
- run: gatepost setup --ci
- run: export PATH="$HOME/.gatepost/bin:$PATH"

Works with GitHub Actions, GitLab CI, CircleCI, Jenkins, Azure Pipelines, and Bitbucket.

PATH shims in ~/.gatepost/bin replace shell aliases in non-interactive environments.

JSON output for pipeline integration:

gatepost check express --json
gatepost audit --json

Configuration

gatepost init

Interactive setup creates ~/.gatepostrc:

{
  "checks": {
    "blocklist": true,
    "typosquat": true,
    "vulnerability": true,
    "age": true,
    "scripts": true,
    "maintainer": true
  },
  "age": { "minimumDays": 1, "action": "warn" },
  "blocklist": { "action": "block", "custom": [] },
  "allowlist": [],
  "failOpen": true,
  "logLevel": "normal"
}

| Option | What it does | |---|---| | checks.* | Toggle individual checks on/off | | age.minimumDays | How old a package must be (default: 1 day) | | *.action | Set to "warn" or "block" per check | | blocklist.custom | Add your own blocked package names | | allowlist | Skip all checks for specific packages | | failOpen | Proceed on network failure (default: true) | | logLevel | "silent" / "normal" / "verbose" |

CLI flags override config: --silent, --verbose, --json


Commands

| Command | Description | |---|---| | gatepost setup | Add shell aliases (run once after install) | | gatepost setup --ci | Install PATH shims for CI/CD | | gatepost remove | Remove aliases and CI shims | | gatepost init | Interactive config setup | | gatepost check <pkg...> | Scan packages without installing | | gatepost audit [dir] | Scan lockfiles and manifests | | gatepost <manager> [args] | Run any manager with protection |


How it works

  1. Shell aliases redirect npm install foo -> gatepost npm install foo
  2. Gatepost extracts package names from the arguments
  3. Six checks run in parallel against each package
  4. Blocked = exit 1, nothing installs
  5. Warned = prints to stderr, install continues
  6. Clean = silent passthrough to the real binary

Network failures warn and proceed by default. Gatepost never breaks your workflow.


Shells supported

Zsh, Bash, Fish, Ksh, Tcsh, PowerShell, PowerShell Core


Uninstall

gatepost remove
npm uninstall -g gatepost-sec

License

AGPL-3.0