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 🙏

© 2025 – Pkg Stats / Ryan Hefner

pckgi

v1.2.4

Published

> Modern NPM package scanner and analyzer CLI tool

Downloads

66

Readme

pckgi

Modern NPM package scanner and analyzer CLI tool

A fast, intelligent command-line tool for searching, analyzing, and comparing NPM packages with advanced health scoring and beautiful terminal output.

Features

  • Smart Search - Find packages with quality, popularity, and maintenance scoring
  • Health Analysis - Comprehensive package health evaluation with scoring system
  • Package Comparison - Side-by-side comparison of multiple packages
  • Trending Packages - Discover popular and trending packages
  • Rich Output - Beautiful terminal output with colors and emojis
  • JSON Export - Machine-readable output for automation
  • Fast & Cached - Intelligent caching for improved performance
  • Modern Architecture - Built with ES modules and native fetch API

Installation

npm install -g pckgi

Usage

Search packages

pckgi search react
pckgi search "date manipulation" --limit=5
pckgi search typescript --include-unstable

Analyze package health

pckgi scan lodash
pckgi info express --json

Discover trending packages

pckgi trending
pckgi trending --limit=20

Commands

| Command | Alias | Description | |---------|--------|-------------| | search <query> | s | Search for packages | | scan <package> | info, i | Analyze package health | | trending | t | Show trending packages |

Examples

Basic search

$ pckgi search lodash

🔍 Searching: lodash

✅ Found 10 packages:

1.  lodash v4.17.21 95%
    A modern JavaScript utility library delivering modularity, performance & extras.
    #util #functional #server #client #browser

2.  lodash.get v4.4.2 78%
    The lodash method `_.get` exported as a module.
    #lodash-modularized

Package analysis

$ pckgi scan react

📊 Analyzing: react

📦 Package Analysis

HEALTH STATUS:
🟢 EXCELLENT (100/100)

BASIC INFO:
📦 react v19.1.1
ℹ️ React is a JavaScript library for building user interfaces.
👤 Meta
📄 MIT

STATISTICS:
📥 44.5M downloads/week
📥 194.4M downloads/month
🕐 Last update: 1 month ago
🏷️ 2507 total versions
🔗 0 dependencies (0 prod)

VERSION INFO:
🏷️ 19.1.1
✅ Stable release

BUNDLE INFO:
❌ TypeScript definitions
📄 Main: index.js
📦 ESM: index.js

JSON output for automation

$ pckgi scan express --json

Health Scoring System

Packages are evaluated based on multiple factors:

  • Download Statistics - Weekly/monthly download counts
  • Maintenance - Last update recency and frequency
  • Version Stability - Semantic versioning compliance
  • Dependencies - Dependency count and health
  • Community - GitHub stars, maintainer count

Health Levels

  • 🟢 Excellent (80-100) - Actively maintained, popular, stable
  • Good (60-79) - Well maintained, reliable
  • 🟡 Fair (40-59) - Acceptable but may have issues
  • ⚠️ Poor (20-39) - Outdated or low usage
  • 🔴 Critical (0-19) - Deprecated or abandoned
  • 💀 Deprecated - Officially deprecated
  • 🚨 Vulnerable - Known security vulnerabilities

API Integration

The scanner uses official NPM registry APIs:

  • NPM Registry API - Package metadata
  • NPM Download API - Download statistics
  • Intelligent caching with 5-minute TTL
  • Retry logic with exponential backoff
  • Rate limiting and error handling

Development

npm install pckgi

Requirements

  • Node.js >= 14.0.0
  • NPM or Yarn

Built with ❤️ for the JavaScript community

For issues and feature requests, please visit GitHub Issues.