@growthbook/edge-cloudflare

中文文档
0.3.0发布于 2026/11/03MITTypeScriptCommonJS近 30 天下载 1.1万

GrowthBook edge app for Cloudflare Workers

原始使用文档

Cloudflare Workers App & SDK

GrowthBook is a modular Feature Flagging and Experimentation platform.

The GrowthBook Edge App provides turnkey Visual Editor and URL Redirect experimentation on edge without any of the flicker associated with front-end experiments. It runs as a smart proxy layer between your application and your end users. It also can inject a fully-hydrated front-end SDK onto the rendered page, meaning no extra network requests needed.

  • Automatically run server-side or hybrid Visual Experiments without redraw flicker.
  • Automatically run server-side or hybrid URL Redirect Experiments without flicker or delay.
  • Perform custom feature flagging and experimentation logic.
  • Inject the JavaScript SDK with hydrated payload, allowing the front-end to pick up where the edge left off without any extra network requests.

In this package

This package provides an implementation of our Edge App specific to Cloudflare Workers.

This package also exports utility methods for using our JavaScript SDK in a Cloudflare Worker.

References

版本与发布记录

@growthbook/edge-cloudflare 共发布 26 个版本,首次发布于 2024/05/09;过去 12 个月发布了 4 个版本。

版本发布日期距今
0.3.0latest2026/11/0314 天前
0.2.92026/05/136 个月前
0.2.82026/02/178 个月前
0.2.72026/02/119 个月前
0.2.62025/08/191.2 年前
0.2.52025/03/201.7 年前

关于 @growthbook/edge-cloudflare 的常见问题

@growthbook/edge-cloudflare 是什么?

GrowthBook edge app for Cloudflare Workers

如何安装 @growthbook/edge-cloudflare?

在项目目录运行 npm install @growthbook/edge-cloudflare,或使用 pnpm add / yarn add / bun add。

@growthbook/edge-cloudflare 支持 TypeScript 吗?

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

@growthbook/edge-cloudflare 支持 ESM 还是 CommonJS?

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

@growthbook/edge-cloudflare 可以商用吗?

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

@growthbook/edge-cloudflare 的下载量有多少?

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

@growthbook/edge-cloudflare 还在维护吗?

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