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

@aminilo/pgi

v1.0.3

Published

A simple & interactive CLI tool to bootstrap NodeJS projects with favorite packages

Readme

📦 pgi

A simple & interactive CLI tool to initialize a NodeJS project and install your favorite packages in seconds.
Built with TypeScript, Yargs, and Inquirer, it's designed to be fast, simple, and developer-friendly.


🚀 Features

  • 🔍 Fuzzy-searchable package selection UI (powered by inquirer-search-checkbox)
  • ⚙️ Auto-installation of selected packages (supports dependencies and devDependencies)
  • 📌 TypeScript types included automatically (e.g., @types/express)
  • 📋 One-liner install command can be copied to clipboard
  • 🦢 Optional Git setup and .gitignore generation
  • 🧪 Including CLI tests
  • 💖 Fully written in TypeScript

🛠 Tech Stack

  • Language: TypeScript
  • CLI Engine: Yargs
  • Interactive Prompts: Inquirer + inquirer-search-checkbox
  • Clipboard Integration: clipboardy
  • Terminal Styling: chalk
  • Typing Effect: custom typer utility (simulated typing in terminal)

🤩 Available Packages

The following categories of packages are available to choose from:

⚙️ Dev Tools

  • TypeScript (& ts-node, @types/node)
  • Nodemon, ESLint, Prettier
  • Husky, lint-staged, cross-env
  • concurrently, tsconfig-paths

🧪 Testing

  • Jest, Vitest, Supertest, Superagent

🔥 Server

  • Express, express-validator, express-rate-limit
  • CORS, Compression, Helmet, HPP, Morgan, cookie-parser

🔐 Authentication

  • Bcrypt, JSON Web Token (JWT), Passport, Passport JWT

📦 Common Libraries

  • Yargs, dotenv, uuid, validator, zod, class-validator, dayjs

📬 Communication

  • Nodemailer

⚡ Real-time

  • Socket.IO, socket.io-client

🗃️ Database / ORM

  • MySql, PostgreSQL, Redis
  • Prisma, Mongoose, TypeORM

🔗 Networking

  • Axios, formidable

🧰 Utilities

  • fs-extra, Multer, rimraf

📚 Documentation

  • Swagger (swagger-jsdoc + swagger-ui-express)

📦 How it Works

  1. Run the CLI:
npx pgi i
  1. Search & select packages to install

  2. Choose options:

    • --copy or -c: Copy the command to clipboard
    • --git or -g: Setup git & generate .gitignore
  3. Let pgi handle the rest!


🔢 Example Output

? Select packages (type to search): (Press <space> to select, <enter> to submit.)
 ◯ TypeScript
 ◯ Express
 ◯ dotenv
 ◯ Prisma
(Move up and down to reveal more choices)
 📦 Installing 4 packages:
 1. TypeScript
 2. Express
 3. dotenv
 4. Prisma
npm init -y && npx tsc --init && npm i -D prisma ts-node typescript @types/{dotenv,express,node} && npm i @prisma/client dotenv express

Tip: Use --copy to copy this entire command to clipboard & run it with a single paste.


🧪 Run CLI Tests

To test the PackageFactory & CLI handler command logic:

npm test

📁 Project Structure

src/
├── commands/
│   └── install.ts
│   └── installCommandHandler.ts
├── tests/
│   └── install.test.ts
│   └── PackageFactory.test.ts
├── types/
│   └── index.d.ts
│   └── inquirer-search-checkbox.d.ts
├── utils/
│   ├── PackageFactory.ts
│   └── typer.ts

🚀 Usage Tips

  • Run with --copy to copy install command.
  • Run with --git to set up git + .gitignore in the same command.
  • Combine both for an instant project bootstrap command.

Made with 💖 by a fellow developer.

Still in early development. Feel free to suggest improvements!