Skip to content
HN On Hacker News ↗

Overview · Cloudflare Flagship docs

▲ 350 points • 177 comments • by tjek • 5mo ago • HN discussion ↗

Pangram verdict · v3.3

We believe that this document is fully human-written

15 %

AI likelihood · overall

Human
100% human-written 0% AI-generated
SEGMENTS · HUMAN 1 of 1
SEGMENTS · AI 0 of 1
WORD COUNT 320
PEAK AI % 15% · §1
Analyzed
May 27
backend: pangram/v3.3
Segments scanned
1 windows
avg 320 words each
Distribution
100 / 0%
human / AI fraction
Verdict
Human
Pangram v3.3

Article text · 320 words · 1 segments analyzed

Human AI-generated
§1 Human · 15%

Ship features safely with feature flags. Flagship is Cloudflare's feature flag service. It lets you control feature visibility in your applications without redeploying code. Define flags with targeting rules and percentage-based rollouts, then evaluate them directly inside your Workers through a native binding. OpenFeature ↗ is the CNCF open standard for feature flag management. Flagship is compatible with OpenFeature, so you can use the @cloudflare/flagship ↗ SDK from any JavaScript runtime — Workers, Node.js, or the browser — and swap providers without changing evaluation code. Check out the Get started guide to create your first feature flag.

Worker binding Evaluate flags with a native Workers binding. Type-safe methods with automatic fallback to defaults. Binding reference OpenFeature SDK Use the @cloudflare/flagship ↗ OpenFeature provider to evaluate flags from Workers, Node.js, or browsers. Switch from another flag provider by changing one line of configuration. View SDK docs Targeting rules Serve different flag values based on user attributes. Rules support 11 comparison operators, logical AND/OR grouping, and sequential evaluation. Learn about targeting Percentage rollouts Gradually release features to a percentage of users. Consistent hashing ensures the same user always receives the same flag value. Learn about rollouts Multi-type variations Flag variations can be booleans, strings, numbers, or structured JSON objects. Use object variations to deliver entire configuration blocks as a single flag. Use Multi-type variations Flag management Create, update, and delete flags through the Cloudflare dashboard. Organize flags into apps that map to your projects or services. Use Flag management

Workers Build serverless applications on Cloudflare's global network. Flagship integrates natively with Workers through a binding. KV Store key-value data across Cloudflare's global network. Flagship uses this infrastructure to deliver flag configurations.

Developer Discord Connect with the Workers community on Discord to ask questions, show what you are building, and discuss the platform with other developers. @CloudflareDev Follow @CloudflareDev on Twitter to learn about product announcements and what is new in Cloudflare Workers.