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

@cosco-team/ai-kit-vue

v3.0.0

Published

Vue 2 & Vue 3 extension for @cosco-team/ai-kit — Auto-detect Vue version & UI libraries & project architecture, deploy Cursor rules with interactive wizard.

Readme

@team/ai-kit-vue

Vue 规则扩展包 — 自动识别 Vue 版本 / UI 组件库 / 项目架构,配合 @team/ai-kit 使用。

npm 地址:https://www.npmjs.com/package/@team/ai-kit-vue

v3.0 新特性

  • Vue 2 / Vue 3 自动检测 — 读取 package.jsonvue 依赖的主版本号
  • UI 组件库自动检测 — Element Plus / Element UI / Ant Design Vue / Naive UI / Vuetify 等
  • 图表库检测 — ECharts / vue-echarts
  • 工具库检测 — Pinia / Vuex / Vue Router / Axios / Vue I18n
  • 项目架构识别 — Single / Monorepo / 微前端 / 多模块
  • 交互式向导 — 展示检测结果 → 手动添加/删除库 → 确认部署
  • 支持并存 — Vue + Element Plus + Naive UI + ECharts 可共存
  • --profile 参数 — 强制指定 vue2vue3
  • --yes 参数 — 非交互模式,自动使用检测结果

安装使用

# 先安装核心套件
npx @team/ai-kit init --yes

# 追加 Vue 规则(交互式向导,自动检测并建议)
npx @team/ai-kit-vue init

# 非交互模式(自动检测并部署)
npx @team/ai-kit-vue init --yes

# 强制指定 Vue 版本
npx @team/ai-kit-vue init --yes --profile vue2
npx @team/ai-kit-vue init --yes --profile vue3

自动检测

执行 ai-kit-vue init 时会自动扫描 package.json

Vue 版本检测

| 检测 | 匹配 Profile | |------|-------------| | "vue": "^3.x" | vue3 | | "vue": "^2.x" | vue2 | | "nuxt": "^3.x" | vue3 (通过 Nuxt 推断) | | 无 vue 依赖 | 报错退出,可用 --profile 强制指定 |

组件库检测(自动识别 10+ 种)

| 库 | npm 包名 | 兼容版本 | |----|---------|---------| | Element Plus | element-plus | Vue 3 | | Element UI | element-ui | Vue 2 | | Ant Design Vue | ant-design-vue | Vue 2 / Vue 3 (自动匹配) | | Naive UI | naive-ui | Vue 3 | | Vuetify | vuetify | Vue 2 / Vue 3 (自动匹配) | | View Design | view-design | Vue 2 | | TDesign | tdesign-vue / tdesign-vue-next | Vue 2 / Vue 3 | | PrimeVue | primevue | Vue 2 / Vue 3 | | ECharts | echarts / vue-echarts | Vue 2 / Vue 3 | | Pinia | pinia | Vue 3 | | Vuex | vuex | Vue 2 / Vue 3 | | Vue Router | vue-router | Vue 2 / Vue 3 (自动匹配) |

项目架构识别

| 条件 | 检测为 | |------|-------| | 有 pnpm-workspace.yaml / lerna.json / workspaces 字段 | Monorepo | | 有 qiankun / single-spa / wujie / micro-app | 微前端 | | 有 modules/ / packages/ / apps/ 目录含多个子目录 | 多模块 | | 其他 | 单项目 |

交互式向导

╔═══════════════════════════════════════════════╗
║       @team/ai-kit-vue v3.0.0              ║
║       Vue 版本自动检测 + 组件库向导部署      ║
╚═══════════════════════════════════════════════╝

📋 检测报告
──────────────────────────────────────────────────
  ✓ Vue 版本:    vue3 (^3.4.0)
  ✓ 项目架构:    单项目 (Single Package)

  ✓ 已检测到组件库:
    ● Element Plus (^1.3.0)
    ● ECharts (^5.4.0)

? 是否要添加其他组件库/工具库? (y/N):

部署内容

按检测结果动态组合,例如 Vue 3 + Element Plus + ECharts + Monorepo:

.cursor/rules/
├── vue-development.mdc           # Vue 3 Composition API
├── vue-component-governance.mdc  # 组件治理
├── element-plus.mdc              # Element Plus 规范
├── echarts.mdc                   # ECharts 图表规范
└── monorepo.mdc                  # Monorepo 规范

docs/spec/05-vue-conventions.md
prompts/vue-component.md

从 v2.x 迁移

npx @team/ai-kit-vue@latest init --yes

旧的模板文件会自动备份到 .ai-kit-backups/

License

MIT