@chat-adapter/catalog

中文文档
4.44.0发布于 2026/11/02MITTypeScriptES Module零依赖构建来源已验证近 30 天下载 347.4万

Catalog of Chat SDK adapters: packages, capabilities, and setup requirements, with no adapter dependencies

原始使用文档
文档目录6 节
  1. Installation
  2. Usage
  3. API
  4. Adding an adapter
  5. AI Coding Agents
  6. License

@chat-adapter/catalog

npm package: @chat-adapter/catalog

MIT License

Static catalog of Chat SDK adapters: every official, vendor-official, and community adapter listed on chat-sdk.dev/adapters, with its npm package, maintainer, and supported capabilities. Official and vendor-official entries also include the factory export, peer dependencies, and environment variables needed to set them up.

The package has no dependencies and imports no adapter code, so you can use it in websites, build scripts, setup screens, and CLIs. chat-sdk.dev and create-chat-sdk both read from it.

Documentation: chat-sdk.dev/docs/adapter-catalog · Guides: vercel.com/kb/chat-sdk

Installation

pnpm add @chat-adapter/catalog

Usage

List adapters and check their capabilities:

import { getFeatureSupport, listAdapters } from "@chat-adapter/catalog";

for (const adapter of listAdapters({ type: "platform" })) {
  const streaming = getFeatureSupport(adapter, "streaming");
  console.log(adapter.name, adapter.group, adapter.packageName, streaming);
}

listAdapters() returns official and vendor-official adapters in the order chat-sdk.dev lists them, followed by community adapters. Pass group (one group or an array) or type to filter.

Read setup requirements for an official or vendor-official adapter:

import { getAdapter, getSecretEnvVars, listEnvVars } from "@chat-adapter/catalog";

const slack = getAdapter("slack");
console.log(slack.packageName, slack.factoryExport, slack.peerDeps);

const allVars = listEnvVars("slack").map((envVar) => envVar.key);
const secrets = getSecretEnvVars("slack").map((envVar) => envVar.key);

API

ExportDescription
listAdapters(options?)Every entry, including community adapters, filtered by group and type
getCatalogEntry(slug)Any entry by slug, or undefined
getAdapter(slug)An official or vendor-official entry by slug, or undefined
isAdapterSlug(slug)Narrows a string to AdapterSlug (official and vendor-official)
listPlatformAdapters() / listStateAdapters()Official and vendor-official entries sorted by slug
getFeatureSupport(adapterOrSlug, key){ status, label? } for one capability; undeclared capabilities return { status: "no" }
getFeatureCategories(type)Capability keys and labels grouped for display
listEnvVars(slug) / getSecretEnvVars(slug)Flattened, de-duplicated env vars; empty for community adapters
ADAPTERS / COMMUNITY_ADAPTERSEntries keyed by slug
ADAPTER_NAMESOfficial and vendor-official slugs, sorted
PLATFORM_FEATURE_CATEGORIES / STATE_FEATURE_CATEGORIESEvery capability key with its display label

The chat/adapters subpath of the chat package is a deprecated re-export of the official and vendor-official API in this package.

Adding an adapter

Each adapter is one file in src/adapters/<group>/<slug>.ts, registered in src/adapters/index.ts, with a docs page in apps/docs/content/adapters/<group>/. See Publishing your adapter for community listings and List a vendor-official adapter for vendor-official listings.

AI Coding Agents

If you use an AI coding agent such as OpenAI Codex, Claude Code, or Cursor, install the Chat SDK skill so it knows the SDK APIs, adapter patterns, and project conventions before writing code.

npx skills add vercel/chat

For agent-readable documentation, see chat-sdk.dev/llms.txt (page index) or chat-sdk.dev/llms-full.txt (full text).

License

MIT

版本与发布记录

@chat-adapter/catalog 共发布 5 个版本,首次发布于 2026/10/09;过去 12 个月发布了 5 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
4.44.0latest2026/11/026 天前
4.43.02026/10/1921 天前
4.42.02026/10/1425 天前
0.0.02026/10/091 个月前
0.0.0-stage2026/10/091 个月前

关于 @chat-adapter/catalog 的常见问题

@chat-adapter/catalog 是什么?

Catalog of Chat SDK adapters: packages, capabilities, and setup requirements, with no adapter dependencies

如何安装 @chat-adapter/catalog?

在项目目录运行 npm install @chat-adapter/catalog,或使用 pnpm add / yarn add / bun add。

@chat-adapter/catalog 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@chat-adapter/catalog 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@chat-adapter/catalog 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=20。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@chat-adapter/catalog 可以商用吗?

@chat-adapter/catalog 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@chat-adapter/catalog 的下载量有多少?

根据 npm 官方下载统计,@chat-adapter/catalog 在 2026/10/10 – 2026/11/08 这 30 天内被下载 3,473,594 次,日均约 115,786 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@chat-adapter/catalog 还在维护吗?

最新版本 4.44.0 发布于 2026/11/02(6 天前);至今共发布 5 个版本,其中过去 12 个月发布了 5 个;首次发布于 2026/10/09。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。