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

sm-cli

v1.0.0

Published

> #!/usr/bin/env node

Readme

#!/usr/bin/env node

这段代码是告诉你的脚本工具(bash/zsh),下面的内容是要在 node 环境下运行的代码。

npm link

把指定的执行文件链接到全局,即将 /bin/index.js 链接到全局,使得我们可以在命令行执行 hy-cli

commander.js

commander 是可以用来获取命令行的参数,并对参数作出响应的函数

inquirer

inquirer 则可以为我们提供一个‘问答’式的交互体验。

download-git-repo

可以用来下载 github、gitlab 等远程仓库的代码

handlebars

handlebars 是一个强大的模版引擎,它可以解析指定模版,然后根据参数渲染模版,比如将 name、description、author 等写入到 package.json 中

ora

可以美化命令行的loading,你是转圈圈,动态的小点点,还是自定义的gif都可以满足你

chalk

可以让你的命令行文字有了颜色,失败的红色告警,成功的绿色提示,都没问题

execa

可以调用子进程执行命令