| [ Web Proxy ] |
| Viewing: https://developers.cloudflare.com/flagship/sdk/ | [Back] [Original] |
Evaluate Flagship feature flags using OpenFeature.
OpenFeature is the CNCF standard for feature flag interfaces. It provides a vendor-neutral API so you can switch between flag providers without changing evaluation code.
Flagship provides official OpenFeature-compatible SDKs for TypeScript, Python, and Go. The source code is available on GitHub .
| SDK | Package | Runtime | Evaluation modes |
|---|---|---|---|
| TypeScript | @cloudflare/flagship |
Workers, Node.js, browsers | Workers binding, HTTP, browser prefetch cache |
| Python | cloudflare-flagship |
Python server applications | HTTP |
| Go | github.com/cloudflare/flagship/sdks/go |
Go server applications | HTTP |
Flagship SDKs are organized by language. The TypeScript SDK has separate setup guides for server-side and browser usage because they use different OpenFeature packages and runtime behavior.
Note
If you are running inside a Cloudflare Worker, the binding is the recommended approach because it avoids HTTP overhead. You can also pass the binding to the OpenFeature SDK to get the best of both. Use the SDK without a binding when running in non-Worker runtimes like Node.js or the browser.
For TypeScript server-side usage:
npm i @cloudflare/flagship @openfeature/server-sdkyarn add @cloudflare/flagship @openfeature/server-sdkpnpm add @cloudflare/flagship @openfeature/server-sdkbun add @cloudflare/flagship @openfeature/server-sdkFor TypeScript browser usage:
npm i @cloudflare/flagship @openfeature/web-sdkyarn add @cloudflare/flagship @openfeature/web-sdkpnpm add @cloudflare/flagship @openfeature/web-sdkbun add @cloudflare/flagship @openfeature/web-sdkFor Python:
uv add cloudflare-flagship
For Go:
go get github.com/cloudflare/flagship/sdks/go
| Web Proxy Viewer | New URL | Original Page |