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

@94ai-plus/cli

v1.0.0

Published

Offline Common UI Plus knowledge CLI and read-only MCP server

Readme

@94ai-plus/cli

Common UI 的离线知识和项目工具,支持官网与版本文档地址、组件 API、完整示例、设计规范和项目诊断查询,提供只读 MCP 服务与组件使用 Skill,面向 Vue 3 / Element Plus 业务项目。运行环境需要 Node.js 22.13.0 或更高版本及 npm/npx。

安装与快速开始

安装已发布版本作为项目开发依赖:

npm install -D @94ai-plus/cli
npx common-ui --help
npx common-ui info NfTable --lang zh-CN

也可全局安装后使用 common-ui,或不预先安装,临时执行:

npx --package @94ai-plus/cli common-ui list

组件库源码仓库先执行 yarn build:components cli,再使用 node packages/cli/dist/index.mjs 替代 common-ui,例如 node packages/cli/dist/index.mjs info NfTable --lang zh-CN。

命令概览

下表使用全局安装后的命令;项目内安装时改用 npx common-ui。

| 命令 | 用途 | | --- | --- | | site --offline | 查询官网首页和当前快照文档地址 | | list | 列出组件、包及公开导出 | | info NfTable | 查询属性、事件、插槽、源码类型声明和来源 | | doc NfTable --format markdown | 获取单个组件完整 Markdown | | demo NfTable | 列出示例 ID;用 demo NfTable <example-id> 读取完整示例 | | theme --theme chalk | 查询 Chalk/OEM 主题变量 | | token ElButton | 查询 Element Plus 明暗 Design Token 与 Common UI 主题覆盖 | | design | 获取双主题设计规范 | | semantic NfTable | 查询文档公开的样式属性与插槽 | | changelog <exact-version> | 查询精确版本说明,也支持 <from>..<to> 区间 | | versions | 查看已发布的在线文档版本 | | env / doctor | 检查运行环境、依赖版本与项目接入 | | usage ./src / lint ./src | 统计组件用法、检查导入及旧 Vue 写法 | | diff ./from.json ./to.json | 比较两份明确提供的知识快照 | | mcp | 启动只读 MCP stdio 服务 | | skills install | 安装随包的 common-ui Skill | | setup --client cursor --mode both | 配置项目 MCP 与 Skill | | upgrade <exact-cli-version> --dry-run | 预览明确版本的 CLI 升级 | | bug --title "Component issue" --dry-run | 预览组件库问题报告 | | bug-cli --title "CLI issue" --dry-run | 预览 CLI 问题报告 | | --help / --cli-version | 查看帮助或 CLI 工具包版本 |

知识查询默认输出 JSON;支持 --format json|text|markdown、--lang 和 --theme chalk|oem。info 等知识查询的 JSON 包含 provenance 与 result,可核对版本、来源提交和摘要。八语言标识为 zh-CN、en-US、ja、es、id、th、tl、pt。

精确版本与离线资料

先确认业务项目安装的组件库版本,再查询对应版本的属性、事件、插槽、实例方法与完整示例。CLI 可从项目依赖检测版本,也可通过 --project <directory> 指定项目、--version <exact-version> 显式选择资料版本;找不到匹配资料时明确报错,不编造接口,不擅自用其他版本的文档代替。

npx common-ui doc NfTable --version <exact-version> --offline --format markdown
npx common-ui doc NfTable --version <exact-version> --refresh --format json
npx common-ui versions --format json

优先使用匹配的随包知识或已验证缓存,缺失时从在线 versions.json 获取精确快照并校验 commit/digest。--offline 禁止联网,--refresh 重新获取资料;--docs-url 可选择 HTTPS 主站或 OEM base。未知语言同样明确报错。

源码构建资料为 local;npm 发布预检在测试完成后生成 fixed version 快照。快照记录来源,不代表包已上传。在线历史按真实发布逐版保留,不能用当前源码补造旧版。完整知识也可通过 LLMs.txt、单组件 LLMs.md 和 manifest.json 按需读取。

官网与版本文档地址

官网地址作为 website 元数据随离线知识分发,同时写入 manifest.json。安装 CLI 后可查询:

npx common-ui site --offline
npx common-ui site --version <exact-version> --offline

将 <exact-version> 替换为组件库精确版本。输出仍为 { provenance, result },可核对资料版本、来源提交和摘要;地址位于 result 中:

| 字段 | 含义 | | --- | --- | | homepage | 官网首页,由仓库统一官网配置生成 | | documentation | 当前快照的文档地址;固定版本使用 versions/<version>/,源码 local 资料指向当前站,并保留构建的 Chalk/OEM 站点前缀 |

MCP 调用 common_ui_site 并传入 {} 获取相同信息,也可传入 version 选择精确快照。查询返回保存的地址,不打开网页;--offline 仅使用匹配的随包资料或已验证缓存,缺少快照就报错。旧快照缺少 website 时返回 WEBSITE_UNAVAILABLE,其他查询仍可使用,不补造地址或替换版本资料。

主题与项目工具

token 从锁定 Element Plus 的明暗 CSS 提取变量,保留选择器、原始值、版本及上游 SCSS 来源;Common UI Chalk/OEM 覆盖单独列出。theme 输出主题变量数据,不生成 CSS,也不修改项目主题。semantic 仅整理文档公开的样式属性和插槽。

env/doctor 提供只读诊断;usage/lint 分析静态导入、Vue 模板与 JSX,排除依赖、隐藏目录、符号链接和生成目录,不执行业务源码。扫描不代替完整类型、属性、无障碍或运行时验证。diff 需要合法的 knowledge JSON;changelog 区间端点必须存在。

upgrade 默认预览明确版本的项目级安装计划,--global 选择用户级范围,--yes 才安装,不自动升级组件运行时。bug/bug-cli 默认预览;审阅后以 --submit --yes 和 GITHUB_TOKEN 向 94ai-plus/common-ui-plus 创建 Issue。

安装 Skill

Skill 位于 skills/common-ui/SKILL.md,附带 references/commands.md、workflows.md、integration.md,将 Agent 定位为 common-ui 专家,指导其按匹配版本查询组件 API、完整示例与设计规范。

npx --package @94ai-plus/cli common-ui skills install

已安装 CLI 时:

npx common-ui skills install
npx common-ui skills install --agent codex --yes
npx common-ui skills install --dry-run

固定调用 [email protected],默认交互选择工具、项目级安装,以复制方式保留完整 Skill 与 references,不依赖 npx 临时缓存。支持 Claude Code、Cursor、Codex、Gemini CLI 及安装器兼容的其他 Agent。--agent 指定工具,--global 选择用户级,--project <directory> 指定目录,--yes 跳过交互确认;--dry-run 不联网、不安装。

安装 Skill 不会永久安装 CLI、启动 MCP 或修改 MCP 配置。完整说明见 For Agents。

MCP 服务

提供十个只读知识工具和两个提示词:common-ui-expert、common-ui-page-generator。服务与 CLI 共用版本资料,不调用模型 API、不修改业务项目;项目扫描、安装和问题提交由 CLI 单独提供。

Claude Code/Cursor 等使用 mcpServers 的客户端可配置:

{
  "mcpServers": {
    "common-ui": {
      "command": "npx",
      "args": ["--yes", "--package", "@94ai-plus/cli", "common-ui", "mcp", "--lang", "zh-CN"]
    }
  }
}

客户端工作目录与项目不同时,在 args 中增加 --project 和项目绝对路径;--version 单独指定组件库资料版本。VS Code 使用 servers,Codex 使用 TOML,更多工具及示例见 MCP 文档。

项目接入配置

npx common-ui setup --client claude
npx common-ui setup --client cursor --mode both
npx common-ui setup --client vscode --write-instructions
npx common-ui setup --client codex --dry-run
npx common-ui setup --client codex --check

--client 支持 claude、cursor、vscode、codex;--mode 支持 mcp(默认)、skill、both。setup 只写所选项目,分别配置 .mcp.json、.cursor/mcp.json、.vscode/mcp.json 或 .codex/config.toml,完整复制 Skill 与 references。--write-instructions 只追加或更新带标记的说明,保留已有内容。

生成的 MCP 配置固定当前 CLI 包版本,用 mcp --project <绝对目录> 识别项目;--version 指定资料版本、--lang 指定语言。--dry-run 预览,--check 只读检查,缺失或不一致返回 1;均不下载包、不启动 MCP。重复执行相同内容不变,同名服务或 Skill 冲突不覆盖。客户端仍需加载配置,Codex 项目配置需信任项目。

HomePage

官网 · CLI 文档 · 项目仓库

组件浏览器运行时不依赖本工具。

Contributors

感谢每一位参与项目建设的贡献者!

最近三个月的贡献者气泡图

最近三个月的贡献者头像墙(使用姓名首字母)

以上为随本版本发布的贡献者统计快照,统计日期与分支见图中说明;仅统计 Git 非合并提交,头像使用姓名首字母,不是 GitLab 个人照片。

License

本项目采用 MIT License 开源许可。

Copyright (c) 2026-present Jiahe Zou, 94 Intelligent Technology Co., Ltd.