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

@ztools-center/plugin-cli

v1.0.26

Published

快速创建 ZTools 插件项目

Readme

ZTools Plugin CLI

快速创建和发布 ZTools 插件项目的命令行工具。

安装

npm install -g @ztools-center/plugin-cli
# 或
pnpm add -g @ztools-center/plugin-cli

命令

create - 创建插件项目

创建一个新的 ZTools 插件项目。

ztools create <project-name>

示例:

ztools create my-awesome-plugin

这将引导你完成以下步骤:

  1. 选择模板(Vue + Vite、React + Vite 或 Preload Only)
  2. 输入插件信息(名称、描述、作者等)
  3. 自动生成项目文件

可用模板:

  • Vue + TypeScript + Vite - 使用 Vue 3 开发插件 UI
  • React + TypeScript + Vite - 使用 React 开发插件 UI
  • Preload Only (TypeScript) - 仅使用 Preload API,无 UI 界面

publish - 发布插件

将插件提交 Pull Request 到 ZTools 中心插件仓库。

ztools publish

前置条件:

  1. 在插件项目根目录执行
  2. 项目包含 plugin.json 文件
  3. 已初始化 Git 仓库(git init
  4. 至少有一次提交记录

首次使用:

首次执行 ztools publish 时:

  1. 自动打开浏览器进行 GitHub OAuth 认证
  2. 授权成功后,Token 将保存到本地(~/.config/ztools/cli-config.json
  3. 后续使用将自动使用已保存的 Token

发布流程:

# 1. 开发插件
ztools create my-plugin
cd my-plugin

# 2. 开发功能...

# 3. 提交代码
git init
git add .
git commit -m "Initial commit"

# 4. 发布插件
ztools publish

自动处理的事项:

  • ✅ GitHub OAuth 认证
  • ✅ Fork 中心插件仓库(如果尚未 fork)
  • ✅ 创建插件分支(plugin/{插件名称}
  • ✅ 重放所有 commit 历史到插件目录
  • ✅ 推送到你的 fork 仓库
  • ✅ 创建 Pull Request 到中心仓库

多次发布:

如果你修改了插件并再次执行 ztools publish,将会:

  • 保留所有新的 commit 历史
  • 创建新的 Pull Request

本地存储:

  • Token 配置:~/.config/ztools/cli-config.json
  • Fork 仓库缓存:~/.config/ztools/ZTools-plugins

开发

  • 🚀 快速创建项目
  • 📦 TypeScript 支持
  • 🎨 交互式命令行
  • 🔧 自动配置类型定义
  • 📝 JSON Schema 验证

文档

License

MIT