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

fedincms-cli

v0.0.5

Published

Fedin CMS Skill CLI

Readme

fedincms-cli

Fedin CMS Skill 的全局 CLI:通过 fedincms init 将 Skill 安装到当前项目,在 Cursor、CodeBuddy、Claude Code 等 AI 编程助手中通过项目内脚本调用 Fedin CMS API,无需运行 MCP Server。

支持的环境

  • Cursor:Skill 安装到 .cursor/skills/fedin-cms/,开箱即用。
  • CodeBuddy / Claude Code 等:执行 fedincms init 后,将 .cursor/skills/fedin-cms/ 整个目录复制到该编辑器所要求的 Skill 目录(请查阅对应文档),或在该编辑器中配置使用项目内脚本路径 .cursor/skills/fedin-cms/scripts/fedin-cms-cli.js(需在项目根执行)。

安装

npm install -g fedincms-cli

或使用 scope 包名(若已发布):

npm install -g @your-scope/fedin-cms-cli

安装后可使用 fedincms 命令。

使用

  1. 进入你的项目根目录:

    cd /path/to/your-project
  2. 初始化:只需传入站点密钥(格式 cms_<base64>),会解密得到 websiteId 与 userId 并写入脚本:

    fedincms init cms_website_key=你的站点密钥
    fedincms init --cms-website-key=你的站点密钥
  3. 在 Cursor / CodeBuddy / Claude Code 等中打开该项目,AI 助手会根据 SKILL 说明在项目根执行:

    node .cursor/skills/fedin-cms/scripts/fedin-cms-cli.js <command> [args]

    脚本为单文件(依赖已打包),无需在 scripts/ 下执行 npm install。若在其它编辑器中已将 Skill 复制到别处,请使用该目录下的 scripts/fedin-cms-cli.js 路径。

发布到 npm

  1. 登录 npm(若未登录):

    npm login
  2. 若使用 scope 包名,修改 package.json 中的 name,例如:

    "name": "@your-username/fedin-cms-cli"
  3. 发布:

    npm publish

    若为 scope 包且首次发布,需执行:

    npm publish --access public

发布时 prepublishOnly 会自动将 src/cli.js 复制到 dist/cli.js,仅 disttemplates 会包含在包中。

开发

  • 全局 CLI 源码:src/cli.js(发布前会复制到 dist/cli.js
  • Skill 脚本源码:src/fedin-cms-cli.js,运行 npm run build:skill 打包为 templates/skill/scripts/fedin-cms-cli.js(axios、dotenv 已内联,用户无需安装依赖)
  • 模板:templates/skill/(SKILL.md、reference.md、scripts/fedin-cms-cli.js)
  • 本地测试:在项目根执行 npm link,在任意目录执行 fedincms init website=test

License

MIT