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

@carbonellai/snpm

v1.0.0

Published

Smart NPM - pnpm wrapper with dynamic script execution

Readme

@carbonellai/snpm

version build

Smart NPM - pnpm wrapper with dynamic script execution from scripts/ workspace.

The Magic

Drop any script in scripts/instantly available. No package.json updates needed.

scripts/
├── deploy.js              # Flat file → snpm deploy
├── quick-check.ts         # TypeScript → snpm quick-check
├── analyze.mjs            # ESM → snpm analyze
└── complex-tool/          # Package → snpm complex-tool
    ├── package.json
    ├── cli.js
    └── lib/

Add more scripts → automatically available.

Usage

Execute any script in scripts/:

snpm deploy --env production
snpm quick-check --target api
snpm analyze --depth deep
snpm complex-tool --watch

All other commands pass through to pnpm:

snpm install
snpm add express
snpm test

How It Works

snpm <command> [args]
    ↓
Scans scripts/ for:
  • Flat files: *.js, *.mjs, *.cjs, *.ts
  • Packages: */package.json with bin field
    ↓
Match found?
    ↓
YES: Execute with node/tsx [args]
    ↓
NO: Pass to pnpm → pnpm <command> [args]

Discovery

Flat files: deploy.js → command deploy Packages: Directory name or package name → command

Supported formats:

  • .js, .mjs, .cjs → executed with node
  • .ts → executed with tsx
  • Package with bin field → executed per bin config

Examples

Flat File Script

scripts/deploy.js:

#!/usr/bin/env node
const env = process.argv.find(arg => arg.startsWith('--env='));
console.log(`Deploying to ${env || 'staging'}...`);

Use immediately:

snpm deploy --env=production
snpm deploy --env=staging

TypeScript Script

scripts/analyze.ts:

#!/usr/bin/env tsx
const depth = process.argv.find(arg => arg.startsWith('--depth='))?.split('=')[1];
console.log(`Analyzing with depth: ${depth}...`);

Use immediately:

snpm analyze --depth=deep

Complex Packaged Script

scripts/complex-tool/package.json:

{
  "name": "complex-tool",
  "version": "1.0.0",
  "bin": {
    "complex-tool": "./cli.js"
  }
}

scripts/complex-tool/cli.js:

#!/usr/bin/env node
import { someLib } from './lib/utils.js';
// ... complex logic with dependencies

Use immediately:

snpm complex-tool --watch

Install

pnpm install -g @carbonellai/snpm

Or use from workspace:

pnpm --filter @carbonellai/snpm link --global

Benefits

No hardcoding - Scripts auto-discovered on every invocation ✓ Zero config - Drop scripts in, they just work ✓ TypeScript support - .ts files executed via tsxFlexible - Flat files or full packages ✓ Full pnpm compatibility - All non-script commands pass through ✓ Extensible - Add new scripts, instantly available