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

cain-cli

v2.0.3

Published

a tool to generate projects from git or gitlab

Readme

cain-cli

该工具实现对gitlab和github模板项目的统一下载并创建新项目

使用步骤很简单

首先本地环境要有nodejs的环境,并配置npm intall -g全局安装的目录位置

到node官网中下载,路径可以自己指定,安装完成后,在命令行窗口中执行命令

node -v

npm -v

有出现版本号即安装成功

接着安装该项目到本地

npm install cain-cli -g

当运行cain出现help信息,即安装成功!

接下来介绍命令列表

cain 后可带命令参数

  • init [project-name]根据模版生成一个新工程
  • add 增加一个新模版配置信息,提供查阅
  • list 提供查询已经有的模版信息
  • delete 删除模版信息
  • help 查看命令信息

其中 init 命令后带参数

  • 模板名,格式为owner/name,若安装的是我的目录的模板,可以直接输入name
  • [project-name] 工程项目名,保存在当前的目录内,若不填该参数,则在当前目录之间创建模版内容,建议必填
  • -c or --clone 代表克隆的仓库来自gitlab,内置的gitlab仓库写死gitlab仓库地址,不填下载的为github仓库模版
  • -h or --help 查看cain init 命令信息

目前模板已经有

cain-template-webpack-vue/PC端后台开发模板/

长远考虑,可以提供更多的开发模板使用,也可以继续完善该脚本功能。

The end~