Flagship – Flagship now in public beta

Flagship is now in public beta. Evaluate feature flags directly from Cloudflare Workers with no outbound HTTP calls, using globally distributed flag configuration backed by Workers KV and Durable Objects. Flagship supports typed flag values, targeting rules, percentage rollouts, audit history, and OpenFeature-compatible SDKs.

Evaluate a flag from a Worker in a few lines of code:

  • JavaScript

    export default {
    async fetch(request, env) {
    const showNewCheckout = await env.FLAGS.getBooleanValue(
    "new-checkout",
    false,
    );
    return new Response(showNewCheckout ? "New checkout" : "Standard checkout");
    },
    };
  • TypeScript

    export default {
    async fetch(request: Request, env: Env): Promise<Response> {
    const showNewCheckout = await env.FLAGS.getBooleanValue("new-checkout", false);
    return new Response(
    showNewCheckout ? "New checkout" : "Standard checkout",
    );
    },
    } satisfies ExportedHandler<Env>;

Start creating flags from the Cloudflare dashboard today. Refer to the Flagship documentation to get started.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *