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

@everpack/cli

v0.1.4

Published

XKit - 开发者工具 CLI

Readme

XKit CLI

🚀 开发者工具 CLI,快速从模板创建项目

安装

# 全局安装(发布后)
npm install -g @everpack/cli

# 或使用 pnpm
pnpm add -g @everpack/cli

使用

# 交互式创建项目
xkit create

# 指定项目名称
xkit create my-app

# 指定模板
xkit create my-app --template react-pc

# 强制覆盖已存在的目录
xkit create my-app --template express --force

可用模板

| 模板 | 命令 | 描述 | |------|------|------| | React PC | --template react-pc | React 18 + TypeScript + Vite + Ant Design + Zustand | | Express | --template express | Express + TypeScript + Prisma + MySQL + Redis | | Electron | --template electron | Electron + React + TypeScript + Vite |

本地开发

1. 安装依赖

pnpm install

2. 构建

pnpm build

3. 本地测试

方式一:直接运行

# 查看帮助
node dist/index.mjs --help

# 查看 create 命令帮助
node dist/index.mjs create --help

# 创建项目
node dist/index.mjs create my-app --template react-pc

方式二:使用 npm 脚本

# 查看帮助
pnpm xkit -- --help

# 创建项目
pnpm xkit create my-app --template express

方式三:全局链接

# 链接到全局
pnpm link --global

# 确保 pnpm 全局 bin 在 PATH 中
export PATH="$(pnpm bin -g):$PATH"

# 然后就可以直接使用
xkit create my-app

方式四:npx 测试(推荐)

# 在项目目录下
npx . create my-app --template react-pc

4. 开发模式(stub 模式)

# 启用 stub 模式,修改代码无需重新构建
pnpm dev

# 然后直接运行
node dist/index.mjs create my-app

命令

xkit <command> [options]

Commands:
  create [name]    从模板创建新项目

Options:
  -h, --help       显示帮助信息
  -v, --version    显示版本号

create 命令

xkit create [name] [options]

Options:
  -t, --template <name>  使用指定模板 (react-pc, express, electron)
  --force                强制覆盖已存在的目录
  -h, --help             显示帮助信息

发布

# 构建
pnpm build

# 发布到 npm
npm publish --access public

技术栈

  • 语言: TypeScript
  • CLI 框架: cac
  • 交互: prompts
  • 颜色输出: picocolors
  • 模板下载: giget
  • 构建工具: unbuild

License

MIT