Feature Flags
Experiments

7 developer-friendly alternatives to Optimizely

A graphic of a bar chart with an arrow pointing upward.

Engineering teams should judge a Optimizely alternative by what happens in production: deterministic evaluation across runtimes, bounded failure behavior, observable decisions, reviewable configuration, reversible releases, and a migration path that does not reshuffle users. A longer product checklist does not make a control plane safer.

Optimizely spans Web Experimentation, Feature Experimentation, feature management, personalization, analytics, and program workflows. That breadth is useful when an enterprise optimization portfolio fits the organization. Teams still look elsewhere when they want a self-hosted control plane, a more focused developer workflow, clearer infrastructure economics, deeper release governance, or experimentation that queries metrics from the existing warehouse.

Optimizely's product boundary matters. Web Experimentation, Feature Experimentation, analytics, personalization, and feature management address related but different workflows. Developers should verify which SDK, data path, permission model, and commercial package owns each use case rather than treating the portfolio as one runtime.

This guide focuses narrowly on feature management. It compares runtime evaluation, configuration delivery, targeting, rollouts, flag lifecycle, governance, deployment control, pricing meters, and migration behavior. Experimentation and analytics appear only where they materially improve or complicate the flag workflow.

What developer-friendly means in this comparison

Use GrowthBook's feature flag overview to map the evaluation path and its deployment options to compare cloud and self-hosted ownership before the proof of concept.

Developer-friendly is not a short installation snippet. It means an engineer can understand evaluation semantics, run deterministic tests, supply safe defaults, inspect configuration, operate without a control-plane round trip on every request, and trace why a subject received a value. It also means the platform exposes APIs, automation, environments, and ownership metadata that fit normal code review and incident response.

The proof of concept should live in a repository. Add a provider wrapper, typed flag keys, local test overrides, representative user and account contexts, a parity fixture, and a failure test. Then have a second engineer change a flag through the approved path and diagnose a mismatched result without vendor assistance. Dashboard polish matters less than whether the code and runbook remain comprehensible six months later.

Developer-friendly Optimizely alternatives at a glance

AlternativeBest forEvaluation and deploymentMain watchout
GrowthBookFlags connected to trustworthy experimentsLocal SDK evaluation; cloud or self-hosted control planeAdvanced governance varies by plan
LaunchDarklyEnterprise release governanceManaged control plane with local SDK evaluation and relay optionsUsage model can be complex across application topologies
UnleashSelf-hosted feature-management specialistsLocal evaluation from synchronized configuration; cloud or self-hostedExperiment analysis usually needs another system
FlagsmithRemote config and flexible hostingClient/server SDKs; cloud, private cloud, or self-hostedPaid governance boundary needs close review
ConfigCatA focused managed flag serviceCDN-delivered configuration with local cached evaluationNot an integrated experimentation platform
DevCycleDeveloper workflow and OpenFeature adoptionLocal or cloud bucketing with managed control planeProduct is transitioning under Dynatrace ownership
Harness FMECI/CD-connected release governanceLocal evaluation tied to delivery workflows, approvals, and experimentsSales-led packaging and a broader platform footprint

These products are not interchangeable. GrowthBook connects flags to product evidence. LaunchDarkly optimizes for controlled delivery at enterprise scale. Unleash and Flagsmith offer open-source control planes. ConfigCat stays intentionally focused. DevCycle leans into developer tooling and OpenFeature. Harness connects the flag control plane to delivery operations. The right shortlist starts with the failure mode and operating model, not the number of adjacent products.

What to compare before replacing Optimizely

Runtime evaluation and cold starts

Most mature flag SDKs cache configuration and evaluate locally, but the details determine reliability. Ask what happens when a process starts without a valid configuration, how long the last known configuration survives, whether a server SDK blocks readiness, and which fallback value is returned after an error.

Test both steady-state and startup failures. Disconnect the control plane after a payload loads, then launch a fresh instance with no network. Corrupt the cache. Delay initialization. Send missing, null, and malformed attributes. A platform that works during a demo may still produce inconsistent behavior across a rolling deploy.

The canonical Feature Toggles pattern separates release, experiment, operational, permission, and other toggle categories because they have different lifetimes and risk. An operational kill switch may need a conservative default and rapid propagation. A UI experiment may tolerate a cached assignment. Treating every flag as the same boolean loses this distinction.

Targeting and context semantics

Optimizely Feature Experimentation can evaluate attributes, audiences, identities, percentages, and feature rules. A replacement needs equivalent outcomes, not merely similar labels. Compare:

  • Boolean, string, number, and JSON values.
  • User, account, device, and anonymous identifiers.
  • Segments, prerequisites, and reusable audiences.
  • Missing attributes and type coercion.
  • Semantic-version, date, numeric, and regex operators.
  • Percentage rollouts and sticky assignments.
  • Client-safe versus server-only rules.

OpenFeature provides a vendor-neutral evaluation API and common concepts such as evaluation context, providers, hooks, and events. It can reduce application-code coupling, but it cannot make two providers' rule engines or bucketing algorithms identical. Configuration portability and code portability are separate problems.

Rollout safety and propagation

Measure the interval from an approved change to consistent evaluation across regions, services, browsers, and mobile clients. Streaming can propagate quickly but must recover from dropped connections. Polling is simpler but creates a maximum delay. A relay or proxy can reduce outbound connections while becoming another production dependency.

Use the same discipline as a canary release. Define the first cohort, observation window, stop conditions, rollback owner, and evidence required before increasing traffic. The Google SRE guidance on canarying releases is useful even when the traffic split is controlled by a flag rather than a deployment system.

Governance and flag debt

Feature flags modify production behavior, so access control, approvals, audit history, environment boundaries, and credential scopes matter. Confirm that client-side keys cannot retrieve server-only configuration and that service credentials cannot administer flags.

Flag lifecycle is a separate requirement. A stale marker does not safely remove code. Every temporary flag should have an owner, expected removal condition, creation date, and cleanup issue. Code references, CLI scans, and notifications help locate debt, but an engineer still has to decide which branch becomes permanent and remove the alternative safely.

Measurement without confusing flags and experiments

A 50/50 rollout is not automatically an A/B test. Causal measurement requires stable random assignment, an exposure event at the moment treatment can affect behavior, metrics defined at the right unit, quality checks such as sample ratio mismatch, and a statistical decision rule.

If Optimizely currently supplies both flag assignment and analysis, decide whether the replacement should preserve that combined workflow or intentionally separate the systems. GrowthBook keeps the connection while querying governed warehouse metrics. LaunchDarkly, DevCycle, and Harness provide varying degrees of integrated evidence. Unleash, Flagsmith, and ConfigCat are often paired with another analytics or experimentation layer.

Ownership and pricing meters

Model cost from real topology. A platform may meter client monthly active users, server connections, configuration downloads, evaluation requests, events, seats, or several at once. A backend with hundreds of short-lived workers behaves differently from a mobile application with millions of devices.

Also price the roadmap. Optimizely packages its products individually, while DevCycle says it is now part of Dynatrace. Portfolio packaging and ownership changes do not invalidate either tool, but they increase the importance of export coverage, contract terms, provider abstractions, and a repeatable migration harness.

1. GrowthBook: Best overall developer-friendly Optimizely alternative

Best for

GrowthBook is best for product, engineering, and data teams that want feature flags tied to rigorous experimentation, open-source inspectability, warehouse-native metrics, and a choice between managed cloud and self-hosting.

Key strengths

GrowthBook feature flags support targeting rules, percentage rollouts, remote configuration, prerequisites, environments, webhooks, APIs, and SDKs across client, server, mobile, and edge stacks. SDKs evaluate locally after loading configuration, so application decisions do not require a synchronous request to the control plane.

The main difference from a flag-only service is measurement. A rule can become an experiment, and the analysis can use governed metrics from the organization's existing warehouse. That avoids duplicating a second product-event model just to evaluate releases. Teams can inspect queries, reconcile results with source data, and use Bayesian or frequentist analysis, sequential testing, CUPED, guardrails, dimensions, holdouts, and sample ratio mismatch checks as their plan supports.

GrowthBook's MIT-licensed core repository exposes evaluation and statistical logic, while named enterprise directories use a separate license. The deployment model is useful when infrastructure control or a credible exit path is part of the procurement decision.

For migrations, GrowthBook's product includes importers for Optimizely and other platforms. An importer reduces manual entry, but the responsible workflow still compares rules, prerequisites, JSON values, and assignment behavior before a flag controls production.

Watchouts

Warehouse-native analysis is most valuable when teams have reliable source data and clear metric ownership. Self-hosting also moves upgrades, backups, observability, incident response, and security to the buyer. Enterprise controls such as custom environments, approval workflows, advanced roles, and SCIM sit in higher packaging tiers, so map governance requirements before choosing a plan.

Pricing and implementation notes

The current Starter cloud plan is free for up to three users and one project with unlimited feature flags, experiments, and traffic. Pro is published at $40 per seat per month, and the open-source self-hosted edition is free. Cloud CDN allowances and advanced capabilities vary by plan, so model configuration delivery as well as seats.

Start the proof of concept with one server flag, one client flag, one typed remote configuration, one prerequisite, and one account-level experiment. GrowthBook's warehouse-native model is especially relevant when Optimizely's event pipeline is the part you want to replace.

2. LaunchDarkly: Best for enterprise release governance

Best for

LaunchDarkly is best for large engineering organizations that prioritize release workflows, role design, broad SDK coverage, environment control, observability, and mature operational support.

Key strengths

LaunchDarkly feature management covers boolean and multivariate flags, user and account targeting, segments, percentage rollouts, projects, environments, and a broad SDK ecosystem. Enterprise packaging adds custom roles and teams, approval requests, scheduling, multi-step release workflows, SCIM, and release automation.

This depth matters when many application teams share the platform. Central governance can standardize flag naming, environment promotion, approvals, emergency changes, and access boundaries. Relay components and local SDK evaluation support architectures that need controlled configuration distribution without synchronous remote evaluation on every request.

The trade is focus. LaunchDarkly is a feature-delivery specialist first. It now includes experimentation and observability capabilities, but a team leaving Optimizely's broader optimization workflow should verify which evidence, retention, and automation features are included in its chosen package.

Watchouts

Current pricing uses service connections and client-side monthly active users, with enterprise features and the Guardian release-safety layer packaged separately. That can be predictable for a stable topology and harder to forecast across serverless jobs, many environments, or large consumer audiences. Export rule semantics and build a provider-neutral application layer where practical; the platform remains proprietary.

Pricing and implementation notes

The Developer tier is free with unlimited seats and flags, five service connections, 1,000 client-side MAU, and one project with three environments. Foundation publishes $10 per additional service connection per month and $8.33 per 1,000 client-side MAU when billed yearly. Enterprise is custom.

Run a topology-based estimate rather than multiplying employees. Count every server SDK/environment connection, client identity, relay, and required environment. Include the paid governance and rollback features the organization actually needs.

Compare GrowthBook and Optimizely

See how open-source deployment, warehouse-native metrics, feature flag pricing, and experimentation workflows differ before you migrate.

View the platform comparison

3. Unleash: Best self-hosted flag specialist

Best for

Unleash fits platform teams that want an open-source feature-management control plane, local SDK evaluation, flexible deployment, and a focused alternative to Optimizely's broader product suite.

Key strengths

Unleash supports activation strategies, constraints, variants, segments, projects, environments, tags, lifecycle tracking, and more than two dozen SDKs. Clients synchronize configuration and evaluate locally. Custom activation strategies let a platform team encode organization-specific targeting behavior when the standard operators are insufficient.

The current Unleash source license is AGPL-3.0, which is a material procurement detail for teams relying on older descriptions of the project as Apache-licensed. The open-source edition provides a substantial control plane; paid cloud, self-hosted, and hybrid offerings add enterprise collaboration, safeguards, support, and service commitments.

Unleash is attractive when feature management itself is the product requirement. Its experimentation surface includes variants and impact concepts, but teams that need Optimizely-like analysis should evaluate an additional statistics and metric-governance layer.

Watchouts

Open source does not mean every enterprise workflow is included without charge. Compare approvals, advanced roles, audit retention, safeguards, support, and environments across editions. AGPL obligations deserve legal review, especially if the organization modifies the server or exposes a modified network service.

Pricing and implementation notes

The published enterprise pay-as-you-go offer is $75 per seat per month. Cloud includes 53 million API requests per month with overages, while the self-hosted pay-as-you-go option has a five-seat minimum. The open-source project has no subscription fee but requires internal infrastructure and on-call ownership.

Test configuration propagation across multiple services, stale-cache behavior, custom strategies, upgrades, and database restore. If experiment analysis remains outside Unleash, test the exposure handoff at the same time.

4. Flagsmith: Best for remote configuration and hosting choice

Best for

Flagsmith is a strong choice for teams that want feature flags and remote configuration across cloud, private cloud, self-hosted, or air-gapped environments.

Key strengths

Flagsmith combines boolean flags with typed configuration values, identities, traits, segments, multivariate options, environments, and client/server SDKs. The Flagsmith repository is primarily BSD-3-Clause licensed, which gives teams an inspectable core and a practical self-hosting path.

Remote configuration is the differentiator for teams controlling limits, endpoints, UI copy, model selection, or operational parameters. Multiple hosting arrangements can also satisfy network and residency constraints that a managed-only Optimizely deployment cannot.

The control plane includes APIs and webhooks, while paid plans add schedules, integrations, roles, permissions, change requests, audit history, SSO, and higher support levels. This makes the open-core boundary understandable, but it must be mapped against the exact governance design.

Watchouts

A/B and multivariate allocation does not by itself provide Optimizely's experiment statistics. Plan an exposure and analysis integration if product decisions depend on causal evidence. Some high-value governance capabilities are paid, and cloud usage is request-metered.

Pricing and implementation notes

The cloud Free plan currently includes 50,000 requests per month, one team member, and unlimited flags, environments, identities, and segments under fair-use terms. Start-Up is published at $45 per month for one million requests and three members; Scale-Up is $300 per month for five million or more requests and adds governance. Enterprise supports tailored hosting.

Test identity traits, JSON values, client-safe configuration, offline behavior, and export/import. For self-hosting, include database, cache, upgrade, backup, and support costs in the comparison.

5. ConfigCat: Best focused managed service

Best for

ConfigCat fits teams that want a straightforward managed feature-flag and remote-configuration service without adopting a broader analytics or experimentation suite.

Key strengths

ConfigCat distributes configuration JSON through a CDN, and SDKs cache that configuration for local evaluation. The architecture makes the billable unit explicit: configuration downloads rather than every flag read. The service supports boolean and typed settings, targeting rules, percentage options, segments, environments, products, a management API, webhooks, and SDKs for major server, client, mobile, and game-development stacks.

The focused product can reduce administrative overhead for a team that does not want Optimizely's analytics, replay, or metrics layer. Its public SDK repositories also let engineers inspect client behavior even though the managed control plane is not generally open source.

ConfigCat includes flag-debt tools such as a CLI for discovering code usage and a stale-flag report. Those signals are useful inputs to cleanup, though code removal still requires engineering review and tests.

Watchouts

The service is not a full experimentation replacement. Teams must connect exposures to an analytics or statistics system if flags inform causal decisions. The on-premise Dedicated option is substantially more expensive than ordinary cloud plans, and software escrow is not the same as routine self-hosting.

Pricing and implementation notes

Forever Free currently includes 10 flags, two environments, two products, five million configuration downloads per month, 20 GB of traffic, and unlimited seats. Paid monthly list prices begin at $110 for Pro, $325 for Smart, $900 for Enterprise, and $4,500 for Dedicated.

Estimate downloads from polling frequency and application instances, not user clicks. Test startup with an empty cache, update latency under each polling mode, mobile offline behavior, and the operational effect of reaching plan limits.

6. DevCycle: Best for OpenFeature-oriented developer workflows

Best for

DevCycle fits engineering teams that want OpenFeature support, typed variables, schemas, debugging tools, APIs, CLI workflows, and code-oriented flag management.

Key strengths

DevCycle supports local and cloud bucketing, realtime updates, targeting, segments, percentage rollouts, multistep rollouts, reusable audiences, flag and property schemas, code references, a CLI, REST API, editor integration, webhooks, and an MCP server. The product states that OpenFeature is supported across all SDKs, which can help a team establish a more portable application interface.

Its open-source Bucketing API repository and public SDK ecosystem provide useful implementation visibility, while the managed platform supplies the control plane. Schema support is particularly helpful when dynamic configuration carries structured data rather than a boolean.

DevCycle says it is now part of Dynatrace after a platform asset purchase. The ownership change may improve its observability integration over time, but buyers should ask which APIs, SDKs, pricing meters, and roadmap commitments will remain stable.

Watchouts

OpenFeature reduces source-code coupling, not configuration migration work. DevCycle's own rule model, audience storage, and rollout semantics still need parity testing. Advanced roles, approvals, SSO, SCIM, and SLA commitments sit in Enterprise. Business pricing combines a base plan with MAU, configuration-request, and event allowances.

Pricing and implementation notes

The Free plan includes unlimited seats, flags, projects, and environments, plus 1,000 client-side MAU, 10,000 cloud-config requests, 100,000 server-config requests, and 5,000 events monthly. Business is shown at $500 per month when billed annually with larger included volumes; Enterprise is custom.

Build a cost model for all four meters. In the proof of concept, compare local and cloud bucketing, schema validation, provider behavior, realtime updates, and the fallback returned when the edge path is unavailable.

7. Harness FME: Best for CI/CD-connected release governance

Best for

Harness Feature Management & Experimentation fits engineering organizations that want feature flags inside a broader software-delivery operating model. It is especially relevant when CI/CD, environment promotion, approvals, release monitoring, and progressive delivery belong to a platform team rather than to separate product tools.

Key strengths

Harness acquired Split in 2024 and now positions the combined product as Feature Management & Experimentation. Its architecture uses streaming configuration updates and local SDK evaluation. The Harness FME architecture overview says SDKs cache configuration locally through network interruptions, which is the behavior engineers should reproduce under fault injection rather than accept as a diagram.

The important distinction is connection to delivery operations. A team already using Harness can place feature state, environment boundaries, permissions, and release workflows near deployment pipelines. Projects create hard partitions for flags, metrics, and experiments, allowing platform teams to separate independently operated domains. Harness also supports OpenFeature, giving applications a standard evaluation API while the provider owns vendor integration.

FME combines flags with dynamic configuration, targeting, experiments, and release impact signals. That can make a rollback decision more operationally useful than a flag dashboard that has no view of deployment or service health. The platform also retains Split's mature SDK and experimentation lineage.

Watchouts

The integrated platform is a benefit only when the organization wants that surface. A team seeking a small, focused flag service may introduce more concepts, procurement, and administrative work than it removes. The Split-to-Harness transition also means buyers should verify the exact name, interface, support path, and migration state of every capability shown in older documentation.

Do not assume a CI/CD integration makes a flag change safe. Test who can edit production targeting, whether approvals cover API and pipeline paths, how an emergency bypass is audited, what happens when streaming disconnects, and whether a rollback is based on an explicit guardrail or a vendor-generated interpretation.

Pricing and implementation notes

Harness lists free entry for parts of its platform, but current FME packaging is sales-led. Its license definitions meter monthly tracked keys for flag decisions and events for behavior records, while newer Flex Pricing uses pooled Harness Subscription Units in limited availability. Request a written model for tracked keys, events, SDK traffic, environments, projects, support, data retention, and the other Harness modules needed by the proposed workflow.

For a proof of concept, connect one real service and deployment pipeline. Verify local evaluation after configuration loss, promotion across environments, an approval and emergency rollback, evaluation telemetry, and the cost effect of account-level versus user-level keys.

Architecture decisions that change the shortlist

Feature-flag products often look similar in screenshots because every dashboard can display a key, variations, rules, and a percentage slider. The meaningful differences appear in the runtime data path. Decide which architecture your applications can tolerate before ranking collaboration features.

Local evaluation with distributed configuration

Local evaluation places the rule engine inside each SDK. The control plane publishes a versioned configuration payload, and applications calculate the variation from that payload and the current context. GrowthBook, LaunchDarkly, Unleash, ConfigCat, and several other finalists support this pattern in important SDKs.

The benefit is that an ordinary evaluation does not wait on a vendor round trip. After a valid configuration is cached, an application can often continue through a temporary control-plane outage. This is especially useful for high-throughput APIs, mobile clients, edge workloads, and services where a few milliseconds of extra dependency latency would compound.

The cost is distributed state. A production fleet may contain several configuration versions at once during propagation. Long-lived mobile clients can remain stale, short-lived jobs can start before a payload arrives, and client-side applications must not receive confidential rules. Ask whether the provider produces separate client and server payloads, how SDKs authenticate downloads, how configuration versions appear in logs, and whether a durable cache survives process restarts.

Create an explicit initialization policy for each flag class. A cosmetic experiment can return control while the SDK loads and accept a default. A payment-path permission may need to block readiness or read an internal source of truth. “The SDK has a fallback” is not a sufficient safety design unless the team has chosen that value for the specific failure.

Remote evaluation and edge bucketing

Remote evaluation sends a context to a service and receives a variation. The pattern keeps sensitive targeting logic off clients and can centralize large segments or fast-changing attributes. Cloud bucketing and edge services can also make identity storage convenient when an application does not want to attach every property to every call.

The evaluator becomes a runtime dependency, even when it is deployed near users. Measure p50, p95, and p99 latency, timeout behavior, connection pooling, retry amplification, regional failover, and the response to invalid context. Confirm whether the SDK has a bounded cache and whether a cached value is scoped to the full context rather than only a user ID.

Privacy review is part of the architecture. A remote evaluator may receive account IDs, plan tiers, geography, device data, or internal risk properties. Minimize the context, classify every field, and inspect logging and tracing. A feature flag is not permission to copy an entire user profile into another service.

Relays, proxies, and private network boundaries

A relay or proxy can synchronize configuration once and serve many applications inside a network. This reduces outbound connections, supports private endpoints, and can isolate services from a public control plane. It can also become a shared point of failure.

Treat the relay like production infrastructure: run multiple instances, expose readiness separately from liveness, monitor the age of its configuration, test certificate and token rotation, and document compatibility with SDK and control-plane versions. A proxy that returns HTTP 200 while serving a week-old payload is available but unsafe.

For self-hosted products, extend the same analysis to the database, cache, stream broker, edge component, and dashboard. Decide which parts are required for evaluation and which are only required to make changes. A resilient design may allow applications to evaluate from cached configuration while the administrative UI is unavailable.

Flag values are not an authorization system

Product teams sometimes use a flag to represent plan entitlements, regulatory access, or permissions because targeting rules are convenient. This creates a dangerous ambiguity. A flag can control presentation or progressive exposure, but the server-side authorization decision must remain fail-closed and auditable.

The OWASP authorization guidance recommends validating permissions on every request and denying by default. If a flag controls a paid capability, keep billing or entitlement data in the authoritative backend, evaluate it server-side, and let the flag govern rollout only after authorization succeeds. Never rely on a client-visible flag value to protect data or operations.

This distinction affects vendor selection. A platform with account contexts and JSON values may simplify UI consistency, but it does not replace a policy engine or entitlement service. Include an attempted bypass in the proof of concept so the architecture—not just the dashboard—proves the boundary.

Stable assignment needs an explicit unit

Every percentage rollout needs a stable key. Consumer products often assign by user; B2B SaaS releases may need account-level assignment so colleagues see the same behavior; anonymous funnels may need a device or cookie that later reconciles with an identified user.

Document the randomization unit, analysis unit, and persistence strategy for every experiment flag. If they differ, the statistics must account for clustering. If anonymous and authenticated identities merge, decide whether treatment follows the original anonymous assignment or is recalculated. If an account changes plan, decide whether it can cross into another variation mid-experiment.

During migration, two providers can both advertise deterministic rollouts and still assign different cohorts because their hashes, salts, namespaces, or context serialization differ. Preserve an exported assignment when continuity matters, or begin a new exposure period and analyze it separately. This is the central reason a dual-evaluation harness should report more than an aggregate 50/50 split.

How to choose among the seven alternatives

Use the dominant constraint to cut the shortlist:

Dominant requirementStart withWhy
Flags plus warehouse-native experimentsGrowthBookAssignment and analysis share governed metrics without a second event model
Mature enterprise release governanceLaunchDarklyDeep approvals, roles, scheduling, automation, and SDK ecosystem
Open-source flag control planeUnleashFocused self-hosted feature management with local evaluation
Remote config and deployment flexibilityFlagsmithCloud, private, self-hosted, and air-gapped choices
Small, focused managed flag serviceConfigCatClear CDN configuration model and minimal adjacent product surface
OpenFeature and developer toolingDevCycleProvider support, schemas, CLI, code references, and debugging
CI/CD-connected governanceHarness FMEFlags connect to delivery workflows, approvals, and release operations

Do not score every feature equally. A team that must self-host should eliminate managed-only finalists early. A regulated company should test audit export and credential boundaries before UI convenience. A high-volume consumer app should cost client identities and configuration traffic before comparing seats. An experimentation-heavy team should validate exposure and statistics before rollout dashboards.

A safe migration from Optimizely feature gates

Inventory the current estate

Export gates, dynamic configs, experiments, layers, segments, environments, owners, tags, and change history. Scan every repository for SDK initialization, gate checks, config reads, fallback values, event hooks, overrides, and test fixtures. Classify each item as release, operational, experiment, permission, entitlement, configuration, or stale.

Remove confirmed stale gates before migration. Recreating debt consumes parity work while increasing the number of production switches no one understands.

Build a semantic mapping

For each active gate, document the current context fields, operators, missing-value behavior, bucket identifier, percentage allocation, prerequisites, JSON schema, client visibility, and fallback. Then map the candidate's behavior explicitly.

Pay particular attention to account-level SaaS rollouts. If Optimizely currently buckets on user ID but the business decision belongs to an organization, migration is the right moment to correct the unit—but not during an active experiment. Make an intentional cutover with documented exposure effects.

Compare evaluations before controlling traffic

Create a fixture containing representative and edge-case contexts. Evaluate Optimizely and the candidate side by side, then produce a diff. Include null attributes, unknown users, semantic versions, segment membership, prerequisites, each variation type, and thousands of synthetic identifiers for percentage rollouts.

Shadow evaluation in production can reveal unmodeled contexts while Optimizely remains authoritative. Do not send additional personal attributes to a candidate without privacy review, and do not log sensitive configuration in the parity report.

Migrate in risk order

Move internal and dormant flags first, then low-risk configuration, then ordinary releases. Migrate operational kill switches, permissions, billing controls, and active experiments last. Freeze edits during each cutover or create a process that mirrors approved changes into both systems.

Keep the prior SDK and configuration available until the candidate meets explicit thresholds for parity, update latency, error rate, and operator confidence. Rollback should be a rehearsed action, not a document written after an incident.

Proof-of-concept scorecard

Give each finalist the same production-like workload:

  • Three real SDK languages across client and server applications.
  • Twenty-five flags spanning boolean, string, number, and JSON values.
  • User and account contexts, reusable segments, and prerequisites.
  • A 1%, 10%, 50%, and 100% progressive rollout.
  • One operational kill switch and one experiment.
  • Three environments and at least two projects.
  • Cold start without the control plane and network loss after initialization.
  • A dropped stream or delayed poll, followed by rollback.
  • Credential rotation, approval, audit export, and stale-flag cleanup.
  • A twelve-month cost model using expected and stressed topology.

Score runtime correctness before dashboard usability. Require the future internal operator to diagnose a mismatched evaluation, restore configuration, rotate a credential, and explain the billing calculation. If the platform is self-hosted, include an upgrade and backup restore. If it is managed, include a region or control-plane outage exercise using the vendor's documented SDK behavior.

Final recommendation

GrowthBook is the best overall Optimizely alternative for engineering teams that want local evaluation, open-source control, self-hosting, predictable pricing, and experiments grounded in existing warehouse metrics. LaunchDarkly is the stronger first choice when enterprise release governance outweighs deployment control and cost simplicity. Unleash and Flagsmith are the best self-hosted specialists; ConfigCat is the cleanest focused managed service; DevCycle is compelling for OpenFeature-oriented developer workflows; and Harness FME fits teams connecting flags to CI/CD governance.

The decision should survive more than a feature comparison. Test the candidate while the control plane is unavailable, prove assignment behavior across a migration, cost the actual application topology, and name the person who owns flag cleanup. Those exercises reveal more than a polished demo.

Start with GrowthBook for free using one representative Optimizely gate. If you need to map a larger estate, book a GrowthBook demo and bring the SDK, governance, and warehouse requirements to the conversation.

Migrate flags with evidence

Try GrowthBook with one real gate, compare evaluations, and connect the rollout to metrics your team already trusts.

Start your GrowthBook proof of concept

Table of Contents

Related Articles

See All Articles
Feature Flags
Experiments

Add local feature flags to a React app with TypeScript

Nov 20, 2026
x
min read

A magazine's home page shows two recent issues. The design team wants subscribers to try a shelf with four. All four covers are public, and changing editions while the page is open should update the shelf immediately. That gives you a small React feature with a useful acceptance test. Click from guest to subscriber and back, and count the covers each time.

We'll put the display limit in a typed local flag, evaluate it inside a React component, and leave the choice of edition with the app. The example runs in a client-rendered React app without a GrowthBook account, an SDK key, or a request for flag rules. For the wider workflow, free feature flags for coding agents explains what to ask an agent to implement and how to review the result.

Define what one flag controls

Start with an existing React and TypeScript app, or create a Vite React project for the example. Install both GrowthBook packages so the definitions and the hooks resolve against compatible SDK versions.

npm create vite@latest issue-shelf -- --template react-ts
cd issue-shelf
npm install
npm install @growthbook/growthbook@^2.2.0 @growthbook/growthbook-react@^2.2.0

Create src/flags.ts. Here the feature value is a number, which lets the component use the same rendering code for either edition. A future change from four covers to three is one edit to the rule.

import type { LocalFeatures } from "@growthbook/growthbook";

export type Edition = "guest" | "subscriber";
type Features = { issueLimit: number };
type Attributes = { id: string; edition: Edition };

declare module "@growthbook/growthbook" {
  interface Register {
    features: Features;
    attributes: Attributes;
  }
}

export const features: LocalFeatures = {
  issueLimit: {
    defaultValue: 2,
    rules: [
      { condition: { edition: "subscriber" }, force: 4 },
    ],
  },
};

A guest falls through to the default of two. A subscriber matches the rule and gets four. This rule applies to every subscriber, so the ID has no effect on the result here. If you later roll the shelf out to a percentage of subscribers, you already have an identity to use for repeatable assignment.

The type registration release note explains the version requirement for LocalFeatures. The registration connects the definition, the attributes, and the value returned by the hook. For the TypeScript mechanics, see Jeremy Dorn's Register pattern walkthrough.

Put the current reader above the shelf

Replace src/App.tsx with the component below. The edition switch is a local fixture so anyone reviewing the change can reproduce both states. In an existing app, take those two values from the active reader in your session layer.

import { useMemo, useState } from "react";
import { GrowthBook, GrowthBookProvider } from "@growthbook/growthbook-react";
import { features, type Edition } from "./flags";
import { IssueShelf } from "./IssueShelf";

export default function App() {
  const readerId = "reader-17";
  const [edition, setEdition] = useState<Edition>("guest");

  const gb = useMemo(() => new GrowthBook({
    attributes: { id: readerId, edition },
    defaultHashVersion: 2,
  }).initSync({ payload: { features } }), [readerId, edition]);

  return (
    <GrowthBookProvider growthbook={gb}>
      <main>
        <h1>Recent issues</h1>
        <p>Current edition: {edition}</p>
        <button onClick={() => setEdition(
          edition === "guest" ? "subscriber" : "guest"
        )}>
          Switch edition
        </button>
        <IssueShelf />
      </main>
    </GrowthBookProvider>
  );
}

The provider receives an instance initialized with the current reader and the checked-in rules. React can render the correct shelf on the first pass for that reader. If the app is still loading a session, decide what should occupy the shelf in the meantime. For this public list a two-cover guest view is reasonable. On a page where a switch would interrupt the reader, wait for the session before mounting the shelf.

Give your agent the React setup

Use the local flags guide to ask for a typed definition, a provider with the current reader, and a test that changes the edition.

Open the Agent Guide

The useMemo dependencies include the ID and the edition. If a reader subscribes while signed in, their ID can stay the same while their edition changes. Depending only on the ID would leave the old SDK instance in place. Passing a fresh object as the dependency on every render would create unnecessary instances. The example uses the two primitive values the rule setup actually needs.

Read the numeric flag where React renders the list

Create src/IssueShelf.tsx. Keep one stable ID per issue and let the component use the resolved value to select how many items to render.

import { useFeatureValue } from "@growthbook/growthbook-react";

const issues = [
  { id: "nov", title: "November · Print shops" },
  { id: "oct", title: "October · Bookbinders" },
  { id: "sep", title: "September · Type designers" },
  { id: "aug", title: "August · Paper mills" },
];

export function IssueShelf() {
  const limit = useFeatureValue("issueLimit", 2);

  return (
    <ul aria-label="Recent magazine issues">
      {issues.slice(0, limit).map(issue => (
        <li key={issue.id}>{issue.title}</li>
      ))}
    </ul>
  );
}

Keep the hook at the top of the component, inside the provider's subtree. The React SDK supplies the flag value through that provider. Calling a hook inside a click handler or inside the list loop would break the Rules of Hooks. Use the returned number in ordinary render logic.

There are two places you can see the number two in this implementation. The definition's defaultValue is what an ordinary guest gets through evaluation. The 2 passed to the hook is a fallback for a value the SDK can't supply. Giving them the same value makes the basic shelf a sensible fallback, but checking only the guest case would let a broken provider arrangement or missing definition go unnoticed. The subscriber case proves that the component actually received the rule.

The list keys identify magazine issues. Keep those keys independent of the flag. Switching from two covers to four should preserve the identity of the first two rows. There's also no need to remount the whole app with an edition-specific key. React preserves state according to component position and keys. For example, a search input outside the shelf shouldn't lose its text because someone subscribed.

Check the transition in both directions

Use the template's build script to type-check and bundle the app. Once that passes, start the dev server and open the local address it prints.

npm run build
npm run dev

On first load, the page says guest and lists November and October. Click Switch edition. The same page should say subscriber and add September and August. Click again. The list should return to the original two issues, in order. This last check catches code that appends more results on upgrade and never removes them on downgrade.

For a compile-time check, temporarily replace the numeric fallback with the string "2". Run the build again and inspect the error on the hook call. Then restore 2 and rebuild. If the string compiles, check that src/flags.ts belongs to the same TypeScript project as the component and that the package manager resolved compatible core and React versions.

npm ls @growthbook/growthbook @growthbook/growthbook-react

Look for the core package used by your app and by the wrapper. If the app has several incompatible installations, align the versions before diagnosing the JSX. A team using an existing build script should also confirm it actually runs the TypeScript checker.

Hand off a React change someone can review

Give your coding agent the one-shot local feature flags guide and a short description of the observable behavior. For this shelf, the request can be as specific as the test.

Show two public issues to guests and four to subscribers.
Keep the same reader ID when switching editions in the test.
Report the initial titles, the titles after upgrading, and the titles
after switching back. Include the type-check command you ran.

The shelf controls how many public titles to display. If your actual feature unlocks paid articles, enforce access when the server serves an article. A client-rendered flag only decides what to show in that browser. Whenever a change to the display limit can wait for a deployment, the small local file keeps the decision reviewable alongside the component. When an editor needs to change it between issues without an engineering release, compare the free GrowthBook options for managing flag rules.

Manage the shelf in GrowthBook

Start a GrowthBook workspace when your magazine team is ready to manage shelf rules between deployments.

Get Started with GrowthBook
Feature Flags
Experiments

Use local feature flags per request in Node.js

Nov 20, 2026
x
min read

Two customers download the same weekly report. One has agreed to preview a new CSV column. The other feeds the old two-column format into an importer. Both requests can land on the same Node.js process, and each needs the right file even if the other request arrives while the report is loading.

This tutorial builds that endpoint with one checked-in feature flag. The process loads the rules once. Each request supplies its own workspace attributes and receives its own evaluation. You can run the whole example on your machine without an account, a client key, or a flag server. The free feature flags for coding agents walkthrough introduces the local approach. Here we'll give the agent a server-specific test to pass.

Set up a small TypeScript service

Use Node.js 22 or newer for this example. In an empty directory, create an npm project that uses ES modules, install the core SDK, and add the TypeScript tools.

npm init -y
npm pkg set type=module
npm install @growthbook/growthbook@^2.2.0
npm install -D typescript tsx @types/node@22

Create tsconfig.json at the project root. The sample runs TypeScript directly with tsx and checks types in a separate step. Type checking with tsx explains why the two commands serve different purposes.

{
  "compilerOptions": {
    "target": "ES2022",
    "module": "NodeNext",
    "strict": true,
    "noEmit": true,
    "skipLibCheck": true,
    "types": ["node"]
  },
  "include": ["*.ts"]
}

The following files all live next to that configuration. The server imports ./flags.js even though the source file is flags.ts. That spelling follows TypeScript's Node.js module resolution for ESM and works with this runner.

Define the report contract in one flag

Create flags.ts. The public format has two columns. The sample preview workspace gets one additional column. The only targeting attribute the rule needs today is reportPreview. Carry the workspace ID too, so two people downloading a report on behalf of the same workspace can share an assignment if you introduce a percentage rollout later.

import type { LocalFeatures } from "@growthbook/growthbook";

type Features = { includeUniqueReaders: boolean };
export type Workspace = { workspaceId: string; reportPreview: boolean };

declare module "@growthbook/growthbook" {
  interface Register {
    features: Features;
    attributes: Workspace;
  }
}

export const features: LocalFeatures = {
  includeUniqueReaders: {
    defaultValue: false,
    rules: [{ condition: { reportPreview: true }, force: true }],
  },
};

The SDK type registration update covers this rule syntax and the 2.2.0 minimum. If you misspell reportPreview in a condition or use a string where the boolean flag expects a value, TypeScript can point at the definition. The Register pattern also makes the same feature name available in other modules without threading a generic type through each handler.

Before you add the endpoint, decide what belongs to the process and what belongs to the request. The feature definitions are identical for both customers. Their identity and preview enrollment can differ. If a handler changes an attribute on a single shared user instance before awaiting a database query, another handler could replace that attribute before the first handler resumes.

Give your agent a server-side task

Use the one-shot guide to add checked-in rules. Ask your agent to keep workspace attributes local to each request and demonstrate both CSV formats.

Open the Local Flags Guide

Create a scope when the request arrives

Create server.ts. The Node.js SDK provides GrowthBookClient for the process and createScopedInstance for the current request. The two fixture paths below stand in for two authenticated workspaces. The server binds to the loopback address so you can exercise it locally.

import { createServer } from "node:http";
import { setTimeout as delay } from "node:timers/promises";
import { GrowthBookClient } from "@growthbook/growthbook";
import { features, type Workspace } from "./flags.js";

const client = new GrowthBookClient({ defaultHashVersion: 2 })
  .initSync({ payload: { features } });

const demos = new Map<string, Workspace>([
  ["/demo/preview", { workspaceId: "press-a", reportPreview: true }],
  ["/demo/standard", { workspaceId: "press-b", reportPreview: false }],
]);

createServer(async (req, res) => {
  const workspace = demos.get(req.url ?? "");
  if (req.method !== "GET" || !workspace) {
    res.writeHead(404).end();
    return;
  }

  const gb = client.createScopedInstance({ attributes: workspace });
  await delay(10); // Stand-in for loading this workspace's report.
  const expanded = gb.isOn("includeUniqueReaders");
  const csv = expanded
    ? "period,downloads,unique_readers\nweek-1,80,55\n"
    : "period,downloads\nweek-1,80\n";

  res.writeHead(200, {
    "Content-Type": "text/csv; charset=utf-8",
    "Cache-Control": "private, no-store",
  });
  res.end(csv);
}).listen(4178, "127.0.0.1", () => {
  console.log("Report server listening on http://127.0.0.1:4178");
});

The HTTP handler looks up a workspace, creates its scope, and holds that scope across an asynchronous operation. The short promise-based timer gives a second request time to arrive. In a real export, that's where the database or storage read would happen. Keep the stable client at module scope and the scoped instance inside the handler. If a formatter needs the decision, pass it the boolean or the scoped instance.

In production, resolve the workspace and its access rights from the authenticated session before reading the report. The two selectable paths here are fixtures for public sample data. A caller's choice of a header, query string, or workspace slug can't establish permission to read another customer's report. The endpoint also prevents shared response caching. If you cache real exports, the cache needs to distinguish the workspace and the report format, along with any other inputs that change the response.

Test two requests that overlap

In the first terminal, type-check the service and start it. A successful type check exits quietly. The next command prints the loopback address and keeps the server running.

npx tsc --noEmit
npx tsx server.ts

Save the following as verify.mjs. In a second terminal, run node verify.mjs. Node's built-in fetch calls the local server. Strict assertions compare the full header and data row, including where each row ends.

import assert from "node:assert/strict";

async function report(name) {
  const response = await fetch("http://127.0.0.1:4178/demo/" + name);
  assert.equal(response.status, 200);
  return response.text();
}

const [preview, standard, previewAgain] = await Promise.all([
  report("preview"), report("standard"), report("preview"),
]);

assert.equal(preview, "period,downloads,unique_readers\nweek-1,80,55\n");
assert.equal(standard, "period,downloads\nweek-1,80\n");
assert.equal(previewAgain, preview);
console.log("Both workspaces received the expected CSV.");

You should see the single success line. Testing just the preview workspace proves that the code can add a column. Testing both responses catches the more expensive mistake of silently changing an existing customer's export. Keeping the old format assertion around is especially valuable when the downstream importer belongs to someone outside your team.

To check the compile-time boundary, temporarily change gb.isOn("includeUniqueReaders") to gb.isOn("includeUniqueReader") and rerun npx tsc --noEmit. The diagnostic should identify the misspelled key. Restore it before running the server again. A coding agent can include the before-and-after type check and the two CSV headers in its pull request.

Decide when to expand the report

When one preview customer is ready, leave everyone else on the default. If the next step is to enroll a fraction of workspaces, choose an attribute that matches the promise you're making. Hashing a workspace ID lets colleagues downloading the same report share a format. Hashing each user's ID could give two analysts in the same company different column sets. The one-shot guide shows how to express a percentage and hash attribute in a local rule.

A new rule in flags.ts reaches a process through your deployment. During a rolling deploy, the same workspace might hit old and new processes. If customers need a durable choice of export schema, keep supporting the agreed format in the API itself. When the operational requirement is to change targeting between deploys, you can keep the scoped evaluation in the handler and change how the process receives its rules. The free GrowthBook offerings overview covers Cloud Starter and self-hosting for teams that want to manage those rules.

Manage report targeting in Cloud

Create a GrowthBook workspace when the team supporting exports needs to expand the preview independently of a server release.

Get Started with GrowthBook
Feature Flags
Experiments

Use local feature flags in the Next.js App Router

Nov 20, 2026
x
min read

Your conference agenda has a new “Show room” button. Reviewers should see it on the first page load. Everyone else should get the existing agenda. If a Server Component renders the old agenda and a browser hook independently decides to show the new button, the first HTML and the browser can disagree.

In the Next.js App Router, the server can make this decision once and pass a boolean to the interactive component. We'll define the flag in the repo, select the preview audience with a local test cookie, and verify the actual HTML for both visitors. Clicking the button will still work after hydration. You can follow along without a GrowthBook account or client key. If you're assigning this work to an agent, the free feature flags for coding agents walkthrough gives the background.

Keep the flag definitions on the server

Use a TypeScript App Router project, or create a small one with create-next-app. These paths assume the project has an app directory at its root. If yours uses src/app, put both app and lib under src so the relative imports still match.

npx create-next-app@latest agenda-flags --ts --app --empty --use-npm --no-src-dir --no-tailwind --yes
cd agenda-flags
npm install @growthbook/growthbook@^2.2.0 server-only

Keep the starter's root layout. Create lib/agenda-flags.ts with the following code. The SDK type registration update explains how LocalFeatures checks the flag and its rule against the registered types. This setup requires version 2.2.0 or later.

import "server-only";
import { GrowthBookClient, type LocalFeatures } from "@growthbook/growthbook";

type Features = { agendaRoomDetails: boolean };
type Attributes = { audience: "preview" | "public" };

declare module "@growthbook/growthbook" {
  interface Register {
    features: Features;
    attributes: Attributes;
  }
}

const features: LocalFeatures = {
  agendaRoomDetails: {
    defaultValue: false,
    rules: [{ condition: { audience: "preview" }, force: true }],
  },
};

const client = new GrowthBookClient({ defaultHashVersion: 2 })
  .initSync({ payload: { features } });

export function showRoomDetails(audience: Attributes["audience"]) {
  const gb = client.createScopedInstance({ attributes: { audience } });
  return gb.isOn("agendaRoomDetails");
}

The module can reuse the client and rules across requests handled by the same process. It only holds the current visitor's audience inside the function call. Two requests can therefore use the same flag file and get different results. The Node.js SDK documents the scoped client used under the App Router here.

This particular rule has no percentage and needs no visitor ID. The two audiences are sufficient. If the team later asks for a rollout to 10% of attendees, add a stable attendee or registration ID and choose which of those units should stay together. Jeremy Dorn's Register pattern article explains how a change to an attribute type reaches the call sites that construct it.

Read the cookie for this request

Create app/agenda/page.tsx. The static heading can render for everyone. The request-specific content sits behind a Suspense boundary, so the fallback can show a neutral loading message until the server has the cookie.

import { Suspense } from "react";
import { cookies } from "next/headers";
import { showRoomDetails } from "../../lib/agenda-flags";
import { Agenda } from "./Agenda";

async function AgendaForVisitor() {
  const jar = await cookies();
  const audience = jar.get("agenda-preview")?.value === "1"
    ? "preview"
    : "public";

  return <Agenda showRoom={showRoomDetails(audience)} />;
}

export default function AgendaPage() {
  return (
    <main>
      <h1>Conference agenda</h1>
      <Suspense fallback={<p>Loading the agenda…</p>}>
        <AgendaForVisitor />
      </Suspense>
    </main>
  );
}

The App Router's cookies function reads the incoming request asynchronously. Read it inside the visitor-specific component. Keeping that read out of shared cached code lets the surrounding page reuse common content without treating one visitor's decision as another's. This placement also accommodates App Router projects using Cache Components.

Give your agent the Next.js setup

Use the local flags guide with a concrete request to evaluate one flag on the server and return the same decision to the browser.

Open the Local Flags Guide

The cookie in this demo is a convenient way to preview a public UI treatment. Anyone with that cookie can see the room label. To target paying attendees or private sessions, obtain the audience from the verified session on the server and authorize the underlying data separately.

Pass one decision to the interactive component

Create app/agenda/Agenda.tsx. It's a Client Component because a visitor can open and close the room details. Its initial branch comes directly from the boolean supplied by the page.

"use client";

import { useState } from "react";

export function Agenda({ showRoom }: { showRoom: boolean }) {
  const [open, setOpen] = useState(false);

  return (
    <section data-agenda={showRoom ? "preview" : "standard"}>
      <h2>10:00 · Designing for print</h2>
      {showRoom && (
        <>
          <button aria-expanded={open} onClick={() => setOpen(!open)}>
            {open ? "Hide room" : "Show room"}
          </button>
          {open && <p>Room 204</p>}
        </>
      )}
    </section>
  );
}

The client boundary takes a serializable prop. The component receives true or false. The SDK instance, targeting rules, and cookie handling stay in the server module. You don't need a React provider for this component because its only browser-side choice is whether the visitor has clicked the button.

Follow one page load through server rendering and hydration. For a preview visitor, the server can send a section with a “Show room” button. React's first client render gets the same showRoom value and starts with open set to false. Hydration attaches the click handler. Opening the room detail then updates component state and doesn't require another flag evaluation.

Verify the HTML and the click separately

Build the production app and start it on port 3100.

npm run build
npm run start -- -p 3100

In a second terminal, save this as verify-agenda.mjs in the project root and run node verify-agenda.mjs. The test makes two requests to the same route and looks for a marker on the rendered section. A marker in the HTML helps catch an implementation that only adds the intended layout after JavaScript runs.

import assert from "node:assert/strict";

async function agenda(cookie) {
  const response = await fetch("http://localhost:3100/agenda", {
    headers: cookie ? { Cookie: cookie } : {},
  });
  assert.equal(response.status, 200);
  return response.text();
}

const [standard, preview] = await Promise.all([
  agenda(""), agenda("agenda-preview=1"),
]);
assert.match(standard, /<section data-agenda="standard"/);
assert.doesNotMatch(standard, /<section data-agenda="preview"/);
assert.match(preview, /<section data-agenda="preview"/);
assert.doesNotMatch(preview, /<section data-agenda="standard"/);
console.log("Both agenda layouts arrived in the server HTML.");

Now open http://localhost:3100/agenda in a fresh browser profile. You should see the session title without a room button. In that local page's browser console, set the demo cookie and reload.

document.cookie = "agenda-preview=1; Path=/; SameSite=Lax";
location.reload();

Click Show room and look for Room 204. Click Hide room and the room should disappear. This second check proves the component became interactive. If the server response test passes but the click fails, inspect the browser console for a hydration error before changing the flag rules.

Remove the fixture and reload once more. The button should disappear and the agenda title should remain.

document.cookie = "agenda-preview=; Path=/; Max-Age=0";
location.reload();

The reload is deliberate. Editing the cookie in an already open document doesn't rerun its Server Component. In your app, use the normal session-change flow to request a fresh server render when a visitor signs in, signs out, or leaves a preview group.

Choose where the next flag should be evaluated

For a decision needed in the initial HTML, give the agent an observable requirement. Ask it to show the two HTTP responses, then click the interactive control in the preview. The first check catches an incorrect layout. The second catches correct HTML that never becomes interactive.

If a later feature depends on an action entirely within the browser, evaluate whether its flag belongs in the client tree. The one-shot local flags guide covers both placements. This agenda only needs one server decision. Updating its checked-in rule takes a deployment. Keep that tradeoff in view if the event organizer needs to pause a preview while attendees are already arriving. For that case, compare GrowthBook’s free options for changing flags between deploys.

Manage the agenda rollout in Cloud

Create a GrowthBook workspace when the organizer needs to adjust a preview audience while your Next.js app is serving attendees.

Get Started with GrowthBook

Ready to ship faster?

No credit card required. Start with feature flags, experimentation, and product analytics—free.

Simplified white illustration of a right angle ruler or carpenter's square tool.White checkmark symbol with a scattered pixelated effect around its edges on a transparent background.