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

smart-run

v1.0.1

Published

AI-powered interactive CLI for running package scripts with intelligent grouping and descriptions

Readme

smart-run

🚀 AI-powered interactive CLI for running package scripts with intelligent organization and descriptions

npm version License: MIT

Features

  • 🧠 AI-Powered: Automatic script analysis and intelligent grouping using an LLM
  • 📋 Interactive Menu: Beautiful CLI interface for selecting scripts
  • 🏷️ Flexible Configuration: Works with existing setups and multiple configuration formats
  • 📝 Rich Descriptions: Add meaningful descriptions to your scripts
  • 🔍 Smart Script Detection: Highlights missing scripts, ungrouped items, and scripts without descriptions
  • 📦 Automatic Package Manager Detection: Intelligently detects npm, pnpm, bun, yarn, and other package managers
  • Universal: Works with npm, pnpm, bun, yarn, and any package manager
  • 🎨 Multiple Aliases: Use smart-run, srun, or sr for quick access

Installation

# Install globally
npm install -g smart-run

# Or run directly
npx smart-run

Aliases

After installation, use any of these commands:

  • smart-run - Full command name
  • srun - Short alias
  • sr - Ultra-short alias

Quick Start

  1. Just run it - smart-run works with any existing package.json:
smart-run
# or use the short aliases:
srun
# or even shorter:
sr
  1. Optional: Create a package-meta.yaml for organized script groups:
scriptGroups:
  - name: "Development"
    scripts:
      - key: start
        description: "Start the development server"
      - key: build
        description: "Build the project for production"
  1. Select and run your scripts interactively!

AI-Powered Analysis

Smart-run can automatically analyze your scripts and generate intelligent configurations. See the AI Analysis Guide for detailed information.

# Quick start with AI analysis
smart-run ai

Configuration

Smart-run works with your existing setup and supports multiple configuration formats:

  • package-meta.yaml - Native format (recommended)
  • npm-scripts organization - Category headers in package.json
  • ntl descriptions - Compatible with existing ntl setups
  • npm-scripts-info - Compatible with scripts-info field and ? prefixed scripts
  • better-scripts - Compatible with better-scripts configuration formats

The system automatically detects your package manager (npm, pnpm, bun, yarn) and configuration format. See the Configuration Formats Guide for detailed setup options and the Package Manager Detection Guide for package manager detection details.

CLI Options

smart-run [options] [command]

Options:
  -c, --config <file>  Specify custom config file path
  --preview-cmd        Show prettified command preview in interactive mode
  --no-color          Disable colored output
  -h, --help          Show help
  -v, --version       Show version

Commands:
  ai                  AI-powered script analysis and grouping
  migrate            Migrate existing configurations
  preview            Show all scripts with enhanced formatting
  lint               Lint smart-run configuration for best practices
  ls                 List all scripts in a table format with detailed information
  hooks              Manage git hooks for configuration linting

Examples:
  smart-run                    # Interactive menu
  srun --config my-config.yaml # Use custom config
  sr --preview-cmd             # Show command preview
  smart-run ai                 # AI analysis workflow

Configuration Setup

If no configuration is found, smart-run offers several setup options:

  • 🧠 AI Analysis - Auto-generate configuration with intelligent grouping
  • 📝 Manual Setup - Generate prompt for external AI tools
  • 📋 Generate Config - Create config from package.json scripts
  • ⏭️ Continue - Use scripts without configuration

Documentation

For detailed information about configuration and usage:

License

MIT © Steven Pribilinskiy