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

smh-api-ai

v0.1.0

Published

AI-ready rules, skills, knowledge, and read-only MCP tools for Tencent Cloud Smart Media Hosting API integration.

Readme

smh-api-ai

让 AI 编程助手更懂腾讯云智能媒资托管(SMH)。安装后,你的 AI 助手(CodeBuddy、Cursor、Claude Code、codex)在接入 SMH 时能稳定生成安全、可运行、可追溯官方来源的代码。

它是面向外部开发者的 AI 接入辅助包不是 SDK,也不会调用真实 SMH API 或接触你的密钥;只提升 AI 生成接入代码的质量。实际调用仍使用官方 SDK / API。

一期重点覆盖完整网盘接入主路径:业务用户绑定 Space、后端签发 / 缓存 / 续期 AccessToken、最小权限 grant、客户端上传 / 下载 / 列表 / 移动 / 复制 / 搜索 / 回收站,LibrarySecret 严格留在服务端。

安装

在你的项目根目录执行(Node.js ≥ 16):

# 按你使用的 IDE 选择 --ide
npx smh-api-ai@latest init --ide codebuddy --mcp
npx smh-api-ai@latest init --ide cursor --mcp
npx smh-api-ai@latest init --ide claude --mcp
npx smh-api-ai@latest init --ide codex --mcp
# 或一次性装到所有支持的 IDE
npx smh-api-ai@latest init --ide all --mcp

默认安装 规则 + 技能 + 本地知识库;加 --mcp 才写入只读 MCP 配置。可用 --rules / --skills 精确控制。

常用命令:

npx smh-api-ai@latest doctor                 # 检查安装
npx smh-api-ai@latest update --ide <你的IDE>  # 更新到最新版
npx smh-api-ai@latest uninstall --ide <你的IDE> # 卸载(保留你自己的文件与其它 MCP server)

支持的 --idecodebuddycursorclaudecodexall

codex 说明

codex 的机制与其它 IDE 不同:规则写进仓库根 AGENTS.md<!-- smh-api-ai --> 托管块(保留你原有内容);codex 无原生技能概念,改由 AGENTS.md 引用本地知识库;MCP 配置在全局 ~/.codex/config.toml,本包不会自动修改,而是生成 .smh-api-ai/codex-mcp.toml 片段供你手动合并。

安装产物

  • .smh-api-ai/knowledge/:endpoint、错误码、grant、集成清单和 SDK 示例知识。
  • .smh-api-ai/install.json:安装元数据。
  • 各 IDE 规则:.cursor/rules/smh.mdc.codebuddy/rules/smh.mdc.claude/rules/smh.md;codex 为 AGENTS.md 托管块。
  • 各 IDE 技能:.cursor/skills/smh-*.codebuddy/skills/smh-*.claude/skills/smh-*
  • 可选只读 MCP:.mcp.json.cursor/mcp.json.codebuddy/mcp.json;codex 为 .smh-api-ai/codex-mcp.toml

uninstall 只移除本包生成的产物与 smh-api-ai MCP 条目,保留同一配置中的其它 server。

只读 MCP

MCP 不调用真实 SMH API、不接收密钥,只查询本地知识,提供 7 个只读工具:

  • smh_list_api_groupssmh_search_apismh_get_endpointsmh_sdk_examplesmh_recommend_grantsmh_explain_errorsmh_check_project

说明

许可

MIT,详见 LICENSE