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

fe-kit-cli

v0.0.8

Published

Frontend project scaffold CLI — init, enhance, and manage dev tools, skills, MCP, and framework rules.

Readme

fe-kit

前端项目脚手架 CLI:初始化新项目、增强现有项目,并管理开发工具、Skills、MCP 与框架规则(Vue / React + TypeScript,支持 Vite、Webpack、Rspack)。

Breaking Changes (v0.2.0)

  • TSLint 已移除:TSLint 早在 2019 年即被官方废弃,fe-kit 不再提供 TSLint 选项与生成器。请使用 ESLint + typescript-eslint(已为默认)。
  • 配置输出路径变更:Skills、Rules、MCP 不再写入 .fe-kit/ 作为编辑器配置,改为直接写入各编辑器标准目录(见下文)。如果你之前依赖 .fe-kit/skills.json.fe-kit/mcp.json 作为编辑器读取入口,需手动迁移。
  • 新增 Cursor 作为独立适配目标:之前只有 vscode,现在 cursor 是独立选项,默认选中。

编辑器配置输出

init / enhance 执行后,根据选择的开发工具,配置会写入以下编辑器标准目录

| 编辑器 | Rules | Skills | MCP | | ------ | ----- | ------ | --- | | Cursor | .cursor/rules/*.mdc | —(通过 rules 生效) | .cursor/mcp.jsonmcpServers) | | Claude Code | .claude/rules/*.md | .claude/skills/<id>/SKILL.md | .mcp.jsonmcpServers) | | VS Code + Copilot | .github/copilot-instructions.md | —(通过 instructions 生效) | .vscode/mcp.jsonservers) | | CodeBuddy CN | .codebuddy/rules/*.mdc | —(通过 rules 生效) | .mcp.jsonmcpServers) | | Trae | .trae/rules/*.md | .trae/rules/<id>.md | .trae/mcp.jsonmcpServers) | | IDEA | .idea/fe-kit/rules/*.md | —(占位集成) | —(占位集成) |

.fe-kit/ 目录仍用于存储 fe-kit 内部元数据(project.jsonskills.jsonmcp.jsontools.json 等),但不再作为编辑器配置的输出目标。

环境要求

  • Node.js ≥ 18
  • pnpm ≥ 9(本仓库通过 packageManager 固定版本,建议启用 Corepackcorepack enable

包管理与发布

  • 仅使用 pnpm 安装依赖;勿提交 package-lock.json(已在 .gitignore 中忽略)。
  • 发布目标为 npm 公共仓库(publishConfig.registry 已指向 https://registry.npmjs.org/)。
  • 版本与变更记录 使用 Changesets
    1. 完成功能或修复后:pnpm changeset,按提示选择 semver bump 并写摘要。
    2. 准备发版:pnpm version-packages(更新 package.json 版本并写入 CHANGELOG.md),提交改动。
    3. 发布:pnpm release(先 build,再 changeset publishprepublishOnly 也会保证发布前构建)。

首次发包前需在 npm 登录:npm login(或 pnpm publish 使用的同一 npm 身份)。

安装与运行

发布包名为 fe-kit-cli,命令名为 fe-kit

直接全局安装:

pnpm add -g fe-kit-cli
fe-kit --help

在仓库里本地运行:

pnpm install
pnpm run build
node dist/cli.mjs --help

本地 link 成全局命令:

pnpm run build
pnpm link --global
fe-kit --help

# 用完可执行
pnpm unlink --global fe-kit-cli

当前 CLI 帮助输出如下:

Usage: fe-kit [options] [command]

Frontend project scaffold CLI — init, enhance, and manage your dev environment.

Options:
  -V, --version   output the version number
  -h, --help      display help for command

Commands:
  init            Initialize a new frontend project with Vue or React + TypeScript
  enhance         Enhance an existing frontend project with dev tools, skills, MCP, and rules
  help [command]  display help for command

使用说明

1. 初始化新项目

在任意目录运行:

fe-kit init

init 会按顺序询问这些信息:

  1. 项目名与目标路径。
  2. 前端框架:vuereact
  3. 路由方案:Vue 固定为 vue-router,React 固定为 react-router
  4. 状态管理:Vue 可选 piniavuex;React 可选 redux-toolkitzustandmobx
  5. 构建工具:vitewebpackrspack
  6. 代码质量工具:当前默认全选 eslintstylelintprettiereditorconfig
  7. 开发工具适配:cursorclaude-codevscodecodebuddy-cntraeidea
  8. 内置 Skills。
  9. MCP 服务。
  10. 可选的 feature domains(逗号分隔),用于生成 feature slice 目录骨架。

执行完成后,CLI 会:

  1. 生成对应模板项目。
  2. 按 bootstrap conventions 生成 src/coresrc/featuresdocsplan 等目录骨架。
  3. 为部分空目录写入 .gitkeep,用于保留目录结构;当目录已有真实文件,或你不想保留空目录时,这些 .gitkeep 可以直接删除。
  4. 写入 docs/bootstrap/ 下的 checklist、prompt 和脚手架说明。
  5. 生成项目级 .github/copilot-instructions.md 基础约束。
  6. 写入 lint/format 相关配置。
  7. 生成项目 README。
  8. 写入 .fe-kit/ 元数据。
  9. 按所选工具写入 rules、skills、MCP 配置。

2. 增强已有项目

进入已有项目根目录后运行:

fe-kit enhance

enhance 要求当前目录至少存在 package.json。执行时会先自动识别:

  1. 项目名。
  2. 框架与构建工具。
  3. 是否存在 TypeScript。
  4. 是否已经初始化 Git。

随后进入交互选择:

  1. 要写入配置的开发工具。
  2. 要安装/配置的质量工具。
  3. 要补充的 Skills。
  4. 要补充的 MCP 服务。

当前默认勾选策略与 init 不同:

  1. 默认选中 eslintprettiereditorconfig
  2. stylelint 默认不选。
  3. commitlint 默认不选。

执行完成后,CLI 会在保留现有项目基础上更新 .fe-kit/ 元数据,并把新增配置合并到对应工具目录。

3. 内置能力范围

当前脚手架内置的主要选择项如下:

  1. 框架:vuereact
  2. 构建工具:vitewebpackrspack
  3. 开发工具:cursorclaude-codevscodecodebuddy-cntraeidea
  4. MCP:context7sequential-thinkingfilesystemexa-search
  5. Skills:从 src/skills/ 目录动态加载,当前内置包括前端设计、TDD、Vue 最佳实践、调试、验证等多类模板。

4. 输出结果怎么看

执行 initenhance 后,建议优先检查这些位置:

  1. .fe-kit/project.json:项目基础元数据。
  2. .fe-kit/skills.json:启用的内置技能记录。
  3. .fe-kit/mcp.json:MCP 记录与适配状态。
  4. .fe-kit/tools.json:选中的开发工具记录。
  5. 对应编辑器目录:例如 .cursor/.claude/.vscode/.github/.trae/.idea/fe-kit/

开发与构建

pnpm install
pnpm run build    # 产出 dist/
pnpm run dev      # tsup watch
pnpm run typecheck

命令

| 命令 | 说明 | | ---- | ---- | | init | 交互式初始化 Vue 或 React + TypeScript 项目 | | enhance | 在已有前端项目中叠加开发工具、Skills、MCP、规则等 |

仓库结构(节选)

  • src/ — CLI 源码、模板、规则与内置资源
  • src/adapters/ — 各编辑器输出适配(Cursor / Claude Code / VS Code / CodeBuddy / Trae / IDEA)
  • src/rules/ — 内置规则 Markdown 源(按 common / react / vue 分类)
  • src/skills/ — 技能目录(catalog.ts + 各 <skill>/SKILL.md 预设模板,构建时拷贝到 dist/skills/
  • dist/ — 构建产物(发布内容)
  • plan/ — 见下文

plan/ 目录

用于存放与代码实现解耦的规划和协作材料,便于长期维护与对齐方向:

  • 现有方案:已采纳或正在执行的技术方案、架构决策记录等
  • 后续计划:路线图、里程碑、待启动功能的概要说明
  • 待办与跟踪:任务清单、复盘要点、会议结论摘要等

建议按主题或时间分子目录或文件命名(例如 plan/2026-q2-roadmap.md),避免与 src/ 内的可执行逻辑混放。该目录不参与 CLI 打包;新增文档无需改构建配置。