@chainlink/external-adapter-framework

中文文档
2.20.0发布于 2026/09/17MITCommonJS构建来源已验证近 30 天下载 3467

NPM version Coverage

原始使用文档
文档目录7 节
  1. Requirements
  2. Optional development tools
  3. Setup
  4. Guides & Docs
  5. Testing
  6. Publishing releases
  7. Automatic

EA Framework v3

NPM version Coverage

Framework to create External adapters, microservices that serve as middleware to facilitate connections between Chainlink Nodes and Data Providers (DP).

Requirements

  • Node.js 22+
  • Yarn

Optional development tools

If available, consider setting up your development environment with:

  • ESLint
  • Prettier

Note that both of the above are not necessary, but PRs submitted to the repo will be blocked from merging unless they comply with the linting and formatting rules.

Setup

yarn # Install yarn dependencies

Guides & Docs

Testing

The EA framework is tested by a suite of integration tests located here.

yarn test

Publishing releases

Automatic

The normal flow for publishing a release is through a series o GitHub actions that are triggered when a PR is closed by merging with the base branch. Full details about our workflows can be found in docs. A summary of our publish workflow follows:

  1. Close a PR containing your changes
  2. If the PR was merged and if it contains a version label instruction (patch, minor, major, none), a new PR will be created that contains the result of running npm version LABEL on main with the original PR author assigned as a reviewer.
  3. A link to the newly created version bump PR will be added to your original PR. Click on that link, and approve it to be merged.
  4. Close the version bump PR. If merged, the package will be published to npm.
  5. When the publish workflow finishes, a comment will be added to the version bump PR that tells you if it ran successfully

This adds an extra step (approving a version bump PR) that has to be taken every time a PR is merged. This is annoying, but it is an effective workaround for permissions issues when running against protected branches, and eliminates the need for the PR author to manually update their branch's version by referring to main.

版本与发布记录

@chainlink/external-adapter-framework 共发布 236 个版本,首次发布于 2022/09/02;过去 12 个月发布了 30 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
2.20.0latest2026/09/171 个月前
2.19.12026/08/212 个月前
2.19.02026/08/192 个月前
2.18.12026/07/283 个月前
2.18.02026/07/094 个月前
2.17.12026/06/114 个月前

关于 @chainlink/external-adapter-framework 的常见问题

如何安装 @chainlink/external-adapter-framework?

在项目目录运行 npm install @chainlink/external-adapter-framework,或使用 pnpm add / yarn add / bun add。它还提供命令行工具 create-external-adapter,可以用 npx create-external-adapter 直接运行。

@chainlink/external-adapter-framework 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/chainlink__external-adapter-framework 是否存在。

@chainlink/external-adapter-framework 支持 ESM 还是 CommonJS?

以 CommonJS 形式发布,可以直接 require();在 ES Module 项目中也可以用 import 引入(Node.js 会把 module.exports 作为默认导出)。

@chainlink/external-adapter-framework 可以商用吗?

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

@chainlink/external-adapter-framework 的下载量有多少?

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

@chainlink/external-adapter-framework 还在维护吗?

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