7 Statsig alternatives for startups

The best Statsig alternative for a startup is the one that removes more work than it creates. A generous free tier is irrelevant if one engineer spends every Friday repairing event schemas, operating a control plane, or explaining why experiment revenue does not match billing data.
Statsig bundles feature gates, dynamic configuration, experimentation, product analytics, and session replay. Startups evaluating alternatives should first decide which of those jobs are real today. A team may need a production kill switch long before it has enough traffic for a trustworthy A/B test. Another may need funnels and replay immediately but only one release flag. Buying or operating the entire surface too early can slow the search for product-market fit.
The vendor context changed as well. OpenAI acquired Statsig in 2025, and Amplitude said it would maintain and develop the Statsig platform across cloud and warehouse deployments while supporting existing customers. A startup can reasonably include roadmap continuity, contract portability, and future pricing in its decision without assuming the current product will disappear.
This guide compares GrowthBook, PostHog, LaunchDarkly, DevCycle, ConfigCat, Flagsmith, and Unleash. GrowthBook is the strongest overall option for a startup that wants to begin simply and grow into governed experimentation. The other tools are credible when analytics breadth, release infrastructure, minimal flag complexity, open-source control, or a particular cost meter matters more.
Statsig alternatives for startups at a glance
| Alternative | Best startup fit | Free starting point | Main tradeoff |
|---|---|---|---|
| GrowthBook | One platform for flags, experiments, and warehouse or managed analytics | Three cloud users; unlimited flags, experiments, and traffic; free self-hosted edition | Advanced methods and governance require paid tiers |
| PostHog | Engineering-led startup wanting analytics, replay, flags, and tests together | Monthly allowances across analytics events, flag requests, and recordings | Many product meters and an event model that needs ownership |
| LaunchDarkly | Startup treating feature delivery as production infrastructure | Unlimited seats and flags, five service connections, limited client MAU and experiments | Costs can expand across several usage dimensions |
| DevCycle | Small engineering team wanting OpenFeature-native flags and simple experiments | Unlimited seats, projects, environments, flags, and low usage allowances | Free-to-Business price step is substantial |
| ConfigCat | Team that wants reliable flags and remote config with simple billing | Ten flags per product and five million config downloads | No integrated product analytics or rigorous experiment engine |
| Flagsmith | Startup wanting flexible cloud or open-source flags | One cloud member, 50,000 requests, or free open-source core | Team seats and request limits arrive early in cloud; analysis is external |
| Unleash | Team willing to operate open-source feature management | Free open-source server | Managed Enterprise starts with per-seat pricing; analytics needs another layer |
The alternatives are not identical products. GrowthBook and PostHog can replace a broad Statsig workflow. LaunchDarkly and DevCycle combine release management with experiments. ConfigCat, Flagsmith, and Unleash are primarily feature-management systems; pair them with an analytics and statistics layer if causal product decisions are part of the requirement.
What startups should evaluate before choosing
Start with the next twelve months, not an imagined enterprise
Map the next three product decisions, the next two delivery risks, and the current data stack. If the team needs to disable a risky integration without redeploying, prioritize SDK behavior and failure handling. If onboarding drop-off is unknown, prioritize analytics quality. If a pricing or ranking decision could materially affect the company, prioritize experiment design and metric governance.
Research on analytics in software startups describes a gap between the data-driven ideal and how young companies actually use analytics. A broader mapping study of startup software development also emphasizes the distinctive speed and uncertainty of this environment. A tool cannot close those gaps by itself. Name one owner for instrumentation, one for release controls, and one for experiment decisions—even if the same founder wears all three hats.
Do not pay for governance features that no current process can use. Also avoid an architecture that must be replaced the moment the startup adds a second product, mobile client, business-account model, or data warehouse. The useful planning horizon is usually one funding or growth stage, not “forever.”
Count engineering time as cash
Cloud pricing is visible; internal operation is not. A self-hosted flag or analytics service needs deployment, database management, backups, upgrades, vulnerability response, monitoring, secret rotation, and incident ownership. At startup salaries, a few engineering hours per month can exceed the subscription the team hoped to avoid.
The reverse is also true. An event-priced platform can become expensive after one viral feature, an aggressive autocapture rollout, or a logging bug. A per-seat platform becomes costly as product, support, growth, and engineering all need access. A client-MAU model punishes consumer scale; a server-connection model can surprise teams using serverless or many environments.
Build a spreadsheet for the current month, 10x usage, and a plausible twelve-month scenario. Include analytics events, identified versus anonymous events, client users, server connections, config downloads, flag requests, replay volume, seats, projects, environments, warehouse compute, support, and required add-ons. Record what happens at the limit: hard stop, read-only mode, overage bill, grace period, or sales conversation.
Decide whether the startup is event-native or warehouse-native
An event-native product can start quickly. Install one SDK, send product events, create a funnel, attach metrics to an experiment, and inspect sessions. The tradeoff is that the platform's identity and event model becomes foundational. Naming mistakes, duplicate events, anonymous-user merges, and missing server events affect multiple workflows. Apply schema checks and the OWASP logging guidance so useful product telemetry does not become an accidental secret or personal-data sink.
A warehouse-native platform can analyze the data the startup already trusts for subscriptions, revenue, and retention. That avoids rebuilding business logic in another SaaS silo, but it requires a usable warehouse and modeled tables. Query cost, freshness, identity joins, and data ownership become part of the experiment platform.
If the startup has no warehouse, choose a managed path that works today and preserves a migration route. If it already reconciles revenue in a warehouse, require the proof of concept to reproduce that definition. A dashboard result should never be accepted because it has more decimal places than the source of truth.
Check whether A/B testing is statistically possible
Many early startups do not have enough eligible participants to detect the effects they care about. A test with 10,000 total site visitors may have far fewer exposed, independent subjects after authentication, account-level randomization, and conversion-window rules. Low baseline conversion or small expected lift can require a sample the startup will not reach in a useful time.
Use a power calculator before implementation. Define the randomization unit, baseline rate or variance, minimum effect worth shipping, significance threshold, and desired power. The NIST statistics handbook is a vendor-neutral reference, while the research review of online controlled experiment challenges explains why power, sensitivity, stopping, and interference are connected. When the required sample is impractical, use qualitative research, guarded rollouts, or a larger product change instead of calling an underpowered chart a win.
When experiments are viable, run an A/A test first. Microsoft's guidance on sample ratio mismatch shows why unexpected allocation can reveal logging, filtering, or identity faults that invalidate later results.
Preserve a practical exit
Keep flag calls behind a small internal interface or provider abstraction. Define typed attributes and consistent identifiers instead of scattering vendor-specific context objects across the codebase. Store flag purpose, owner, creation date, cleanup condition, and expected lifetime in version control. Martin Fowler's feature-toggle taxonomy is a useful model because release, experiment, operational, and permission toggles have different lifetimes and owners.
The OpenFeature specification can reduce SDK-level coupling across compatible providers. It does not make control-plane models, targeting rules, hashes, experiments, or historical results portable automatically. Export configurations and completed experiment reports, then rehearse replacing one noncritical flag.
Open source offers a stronger fallback only if the needed server, UI, SDKs, and deployment assets have acceptable licenses and can actually be operated. Use the Open Source Definition as a starting point, inspect component licenses, and separate source availability from supported self-hosting.
1. GrowthBook: Best overall for startups
Best for
GrowthBook is the best overall Statsig alternative for technical startups that want one path from a first release flag to rigorous experimentation and product analytics. It can start with a managed warehouse, connect to an existing warehouse, or run as a self-hosted open-source platform.
That flexibility matters during rapid change. A startup can avoid creating a data platform before it needs one, then move analysis to Snowflake, BigQuery, Databricks, Redshift, ClickHouse, or Postgres without replacing the feature-delivery model.
Key strengths
GrowthBook combines feature flags, experimentation, and product analytics. Flags evaluate through SDKs with deterministic hashing and can support targeting, percentage rollouts, remote configuration, and kill switches. Experiments can use managed events or warehouse tables, which lets the startup align results with the data model it actually trusts.
The free statistical surface is substantial: Bayesian and frequentist analysis, SRM detection, multiple-testing corrections, guardrails, and shareable results. Pro adds sequential testing, CUPED variance reduction, sticky bucketing, a power calculator, visual editing, and decision workflows. This means a startup can use a valid basic method without upgrading simply to run more traffic or experiments.
The open-source core provides inspectability and a self-hosting option. More importantly, the cloud and self-hosted paths use the same product model, so starting managed does not close the door to infrastructure control later. Startups with privacy, data-residency, or acquisition-diligence concerns can evaluate that option before it becomes urgent.
Watchouts
Warehouse-native analysis is not automatic data governance. Someone still owns identity joins, assignment tables, metrics, query performance, and late-arriving data. Very early teams without a data owner should start with the managed warehouse and a narrow event plan rather than connecting every operational database.
The Cloud Starter plan allows only three users and one project. Product, growth, data, and engineering collaboration can hit that limit before end-user traffic is meaningful. Advanced statistics, greater project capacity, and enterprise governance sit on paid tiers.
Pricing and implementation notes
The current GrowthBook pricing lists Cloud Starter at $0 for up to three users, one project, unlimited flags, unlimited experiments, and unlimited traffic. Pro is $40 per seat per month for up to 50 users and three projects. Enterprise is custom. The free self-hosted edition includes unlimited users, flags, experiments, and traffic, while supported enterprise self-hosting is custom.
Start with one SDK, one kill-switch flag, one remotely configurable value, and one completed experiment replay or small A/A test. Verify how user identity reaches assignments and metrics. Then model CDN and managed-warehouse usage at 10x growth. The free GrowthBook starting path is strong because the startup can validate the architecture without a contract.
2. PostHog: Best all-in-one analytics stack
Best for
PostHog is best for an engineering-led startup that wants product analytics, web analytics, session replay, feature flags, experiments, surveys, error tracking, and warehouse connections in one product. It can replace more of Statsig's broad suite than a flag specialist and has a self-serve path that works before procurement exists.
It is particularly useful during product discovery. A founder can see funnel movement, inspect recordings, create cohorts, release behind a flag, and attach an experiment without reconciling several user identities across vendors.
Key strengths
PostHog offers one event and identity model across its products. Experiments attach to feature flags and can use funnel, mean, ratio, and other saved metrics. Bayesian analysis is the default, with frequentist analysis available. The surrounding analytics, replay, and error context can help a small team understand why a treatment changed a metric rather than stopping at “B won.”
The PostHog pricing page is detailed and self-serve. Free accounts get one project, one-year retention, unlimited team members, and monthly allowances across products. Billing limits can be set per product, which is a useful safety control for a startup with unpredictable traffic.
PostHog exposes APIs and an MIT-licensed core. It fits teams that prefer an engineering-oriented interface and want to automate product workflows. A single implementation can also reduce the number of consent integrations, data exports, and vendor reviews required during the earliest stage.
Watchouts
One shared event model amplifies instrumentation mistakes. Define canonical IDs, event names, property types, bot handling, and anonymous-to-identified behavior. Autocapture can accelerate discovery, but decision-critical metrics should have explicit definitions and tests.
The platform has many meters. Product-analytics events, feature-flag requests, recordings, warehouse rows, exceptions, surveys, and other products are priced independently. A startup that enables everything can cross several allowances in the same growth month. The startup discount is worth asking about, but the normal pricing curve should still work without credits.
PostHog's supported production path is cloud. Its self-hosting documentation describes the public option as officially unsupported, without paid support or guarantees, and paid-plan features are cloud-only. Do not treat the repository as an equivalent supported on-premises product.
Pricing and implementation notes
Current free monthly allowances include one million analytics events, one million feature-flag requests, 5,000 recordings, and one million managed-warehouse rows. Experiments are billed with feature flags. After the allowance, product analytics starts at $0.00005 per event and flags at $0.0001 per request, with lower rates at volume.
Install PostHog in one product surface and track a deliberately small event taxonomy. Run a flag experiment, inspect the related funnel and recordings, and export raw assignments and outcomes. Use the pricing calculator with 10x events and flags plus expected replay. The strongest all-in-one experience is a benefit only if one owner keeps the data coherent.
Start small without replatforming
Use feature flags, experiments, and product analytics now, with a path to your own warehouse as the startup grows.
Try GrowthBook free3. LaunchDarkly: Best for production release infrastructure
Best for
LaunchDarkly fits a startup that views feature flags as critical delivery infrastructure and expects complex web, mobile, server, edge, or AI release workflows. It provides a mature SDK ecosystem and a free developer tier that is much broader than its older entry plans.
Choose it when the main Statsig job is controlling releases and experimentation is attached to those releases. If product analytics and replay are central, compare the expanded LaunchDarkly platform carefully or retain a separate analytics system.
Key strengths
The Developer tier includes unlimited seats and flags, a broad SDK set, A/B tests, Bayesian and frequentist analysis, CUPED, sequential testing, SRM detection, A/A tests, and bandits. A startup can therefore validate serious experiment workflows without immediately buying an add-on.
Release operations are the core strength. Targeting, percentage rollouts, server and client evaluation, audit history, integrations, and fast kill switches can support trunk-based delivery before the engineering organization has a platform team. Foundation removes project limits and scales usage; Enterprise adds roles, teams, approvals, workflows, SCIM, and advanced targeting.
LaunchDarkly also publishes its billing definitions in detail. Knowing how a service connection, client-side MAU, experimentation MAU, or experiment key is counted makes it possible to instrument a realistic trial rather than guess from a pricing calculator.
Watchouts
The free tier has multiple capacity limits. The current plan includes five service connections, 1,000 client-side MAU, one project, and 100,000 experimentation MAU. A consumer startup can cross the client limit quickly; a server-heavy architecture can create connections across services and environments.
The paid model spans service connections, client users, experiments, observability, and other product capabilities. LaunchDarkly documents that accounts exceeding free entitlements may become read-only after warnings. Test the operational behavior and budget alerts before a launch depends on the control plane.
Pricing and implementation notes
The LaunchDarkly pricing page lists Developer at $0. Foundation has no seat or platform fee and, when billed annually, charges $10 per service connection per month and $8.33 per 1,000 client-side MAU after included usage. Enterprise and Guardian are custom.
Run the proof of concept in the startup's real topology, not a single browser. Count server connections per environment, client identities, flag requests, and experimental subjects for one week. Test cached behavior and a control-plane outage, then project the bill after a viral month.
4. DevCycle: Best OpenFeature-native startup workflow
Best for
DevCycle is a strong option for a developer-led startup that wants unlimited collaboration, feature flags, experiments, good debugging, and explicit alignment with OpenFeature. It is more focused than Statsig or PostHog, so it suits teams that already have analytics or only need lightweight experiment metrics.
DevCycle became part of Dynatrace in 2026. That can strengthen observability integration and long-term backing, while also making roadmap and product convergence reasonable questions during evaluation.
Key strengths
The free tier includes unlimited seats, flags, projects, environments, integrations, A/B testing, OpenFeature support, schemas, a CLI, a REST API, debugging tools, and an MCP server. That combination is attractive when every engineer needs access but traffic is still small.
Its product model connects features, variables, variations, targeting, rollouts, and metrics. Custom events can create reusable metrics that attach to multiple features. Tooling includes code references, importers, webhooks, a VS Code extension, pipeline integrations, and stale-flag workflows, helping a small team keep temporary flags from becoming permanent architecture.
OpenFeature compatibility provides a standardized evaluation API and hooks. It does not eliminate control-plane migration work, but it can keep vendor imports out of much application code. DevCycle's focus on schemas is also useful for remote configuration, where an unexpected type can break more than a boolean flag.
Watchouts
The free usage allowances are modest: 1,000 client-side MAU, 10,000 cloud config requests, 100,000 server config requests, and 5,000 custom events per month. Measure actual SDK behavior because initialization, identification, polling, and cloud bucketing affect different meters.
The jump to Business is large for a bootstrapped team. Advanced permissions, audit logs, stored properties, and higher allowances start there, while approvals, full RBAC, SSO, SCIM, SLA, and premium support are Enterprise. Also verify the depth of statistical analysis if experiments—not release metrics—are the primary reason for leaving Statsig.
Pricing and implementation notes
Current DevCycle pricing lists Free at $0 and Business at $500 per month billed annually, including 100,000 client MAU and 500,000 events. The detailed table shows a $625 monthly base when not using the annual discount. Enterprise is custom. Overage rates differ across MAU, cloud config, server config, and events.
Implement one flag through the OpenFeature provider and one directly through a DevCycle SDK. Compare debugging, evaluation reasons, offline behavior, and portability. Send a real conversion and a latency metric, then calculate whether Free, annual Business, or another tool matches the next twelve months.
5. ConfigCat: Best simple flag service with predictable delivery
Best for
ConfigCat is best for a startup that needs reliable feature flags and remote configuration without adopting a complete analytics or experimentation suite. Its billing is based on configuration downloads rather than every local evaluation, seat, or monthly active user.
That model can be attractive for products with many local flag reads but a manageable number of SDK configuration refreshes. It is also easy to explain in a budget review: applications download a config JSON, cache it, and evaluate flags locally.
Key strengths
The free plan has the same core feature set as paid plans, with ten flags, two environments, two products, five million config downloads, 20 GB of traffic, unlimited seats, unlimited service connections, unlimited MAU, and unlimited local flag evaluations. The public API is included.
ConfigCat supports percentage rollouts, targeting, webhooks, audit history, integrations, and stale-flag tooling. Its simple control plane can be easier for a small engineering team to reason about than a broad product-data suite. Paid self-service tiers raise flags, environments, products, download volume, and service commitments without introducing per-seat pricing.
Local caching also provides a clear runtime model. The application does not contact the vendor for each flag read, reducing latency and request-based cost. Teams can choose refresh strategies appropriate to mobile, browser, or server workloads.
Watchouts
ConfigCat is not a full Statsig replacement. It can assign percentage variants, but rigorous A/B analysis, product analytics, session replay, and governed business metrics need other systems. That is acceptable when the startup deliberately wants a composable stack; it is a hidden cost if “experimentation” was assumed from percentage rollouts.
The free plan's ten-flag and two-environment limits can arrive before the download quota. A normal dev, staging, and production workflow needs the Pro tier or a different organization model. Dedicated and on-premises deployment are high-end products, not an open-source fallback.
Pricing and implementation notes
The current ConfigCat pricing lists Forever Free at $0, Pro at $110 per month, Smart at $325, Enterprise at $900, and Dedicated at $4,500. Annual pricing is lower. Pro includes 100 flags, three environments, three products, and 25 million config downloads.
Test refresh frequency and cache behavior in every runtime. Simulate stale configuration, no network, a bad targeting attribute, and a rollback. If experiments are needed, send the assigned variant to the chosen analytics system and prove that exposures are deduplicated and metrics use the same subject ID.
6. Flagsmith: Best for deployment flexibility on a startup budget
Best for
Flagsmith suits a startup that wants cloud feature flags now and a credible open-source or private deployment path later. It combines flags, remote configuration, identities, segments, percentage splits, and multivariate values without forcing an analytics suite.
It is especially relevant when customer requirements may eventually demand a private cloud, a selected region, or self-hosting. The startup can evaluate the open-source core before those requirements become a sales blocker.
Key strengths
The cloud product provides unlimited flags, environments, identities, and segments across its plans. The Start-Up tier adds multiple projects, three members, scheduling, integrations, and A/B or multivariate testing. Local evaluation can download rules and decide in-process, reducing runtime dependency on a remote API.
The open-source edition can be self-hosted at no software cost with unlimited users, flags, and environments. The managed product offers SaaS, private cloud, and supported self-hosted deployments. That range is useful for a startup selling into customers with different infrastructure or data-residency expectations.
Flagsmith's focus also makes responsibilities clearer. It owns delivery and targeting; an external analytics platform owns behavior and statistical analysis. A small team can integrate only the components it needs instead of enabling a large suite by default.
Watchouts
The free cloud plan allows one team member and 50,000 requests per month. Collaboration and normal production traffic can force an upgrade quickly. Start-Up includes one million requests and three members, but governance features such as SSO, roles, permissions, change requests, and longer audit controls are higher-tier capabilities.
The phrase “A/B testing” refers to traffic allocation and integrations, not a Statsig-equivalent statistics and product-analytics system. The startup must log assignment or exposure into another system, define metrics, choose an analysis method, and investigate data-quality failures.
Self-hosting shifts operational ownership to the startup. The open-source core does not include every enterprise management feature, so compare the exact repository and deployment with the supported commercial offer.
Pricing and implementation notes
Current Flagsmith pricing lists Free at $0 for 50,000 monthly requests and one member. Start-Up is $45 per month with one million requests and three members; Scale-Up is $300 per month with at least five million requests and five included members. Annual pricing is discounted, and Enterprise is custom.
Measure one web or mobile session and one server request path to understand request counts. Then implement a percentage split and send exposure to the existing analytics system. Compare the combined Flagsmith-plus-analysis cost and ownership with a unified platform rather than comparing the flag subscription alone.
7. Unleash: Best for an open-source feature-management foundation
Best for
Unleash is best for a startup that wants a mature open-source feature-management control plane and is prepared to operate it. It supports gradual rollouts, flexible activation strategies, variants, stickiness, projects, environments, and a broad SDK ecosystem.
It is a stronger fit for engineering infrastructure than for a founder seeking one analytics, replay, and experimentation application. Startups can pair it with their warehouse or analytics provider when composability is a deliberate architectural choice.
Key strengths
The open-source server can be started without procurement, and the official deployment path includes containers and documentation. The project has a large public community and more than 25 SDKs. A team can inspect evaluation behavior, keep the control plane inside its network, and retain a fallback if commercial priorities change.
Managed Unleash Enterprise adds hosting, collaboration, approvals, roles, SSO, audit logs, support, SLAs, impact metrics, automated progression, and safeguards. The current plan also includes unlimited flags, projects, environments, experiments, client MAU, and service connections, which can simplify scale modeling once the seat minimum is acceptable.
Unleash supports A/B/n allocation through flag variants and can connect to analytics. Its strategy and stickiness model is flexible enough for account-based or custom rollout logic, valuable for B2B startups whose experimental unit is not an individual browser.
Watchouts
Self-hosting has an operational cost and a current license boundary. Unleash documentation says source from version 8 is AGPL-3.0, while earlier source used Apache 2.0; official open-source Docker images remain Apache-2.0. Review the exact artifacts and obligations with counsel rather than relying on an older blog post.
Unleash is not a complete product-analytics or experiment-analysis replacement for Statsig. Impact metrics and A/B/n delivery are useful, but a rigorous program may need exposure storage, warehouse metrics, statistical analysis, replay, and experiment reporting elsewhere.
The hosted entry point is built for teams beyond the smallest startup. Per-seat cost and a five-seat minimum for self-hosted Enterprise can make the managed product materially more expensive than its open-source origin suggests.
Pricing and implementation notes
The Unleash pricing page lists pay-as-you-go Enterprise at $75 per seat per month, with 53 million monthly API requests in cloud and a five-seat minimum for self-hosted deployments. Custom Enterprise supports cloud, self-hosted, or hybrid deployment. The open-source edition is free to run.
Start with the open-source container only if the team has named an operator and documented backups, upgrades, monitoring, and failure behavior. Test the same targeting fixture in every required SDK. If experiment decisions are needed, connect one analytics path and reproduce the result independently before standardizing.
Which alternative fits each startup stage?
Pre-product-market fit
Use the smallest reliable stack. GrowthBook is a good default when flags and measured product learning both matter. PostHog is strong when behavioral analytics and replay dominate discovery. ConfigCat, DevCycle, or a small managed flag tier may be enough when the immediate need is a kill switch or remote configuration.
Do not self-host merely because the software is free. Do not launch ten concurrent tests because the product says experiments are unlimited. Maintain a short event taxonomy, remove flags promptly, and use qualitative research when traffic cannot support inference.
Early growth
At this stage, identity, account structure, mobile clients, and multiple environments become real. Recalculate costs with actual usage and implement billing caps or alerts. Formalize metric definitions and assign owners. Start using A/A tests, power planning, guardrails, and a lightweight experiment review.
GrowthBook offers a clean path into warehouse metrics and advanced statistics. PostHog can keep several product workflows unified. LaunchDarkly or DevCycle may become the delivery backbone when deployment control is the larger risk.
Scaling toward enterprise customers
Customer security reviews introduce SSO, SCIM, audit export, roles, approvals, data residency, support terms, and uptime commitments. Compare those paid boundaries early. An inexpensive developer tier may jump to a custom enterprise contract; a self-hosted core may require commercial governance modules.
Run an exit test before renewing. Export flags, environments, targeting, metrics, assignments, and completed decisions. Prove that the startup can keep serving safe defaults if the vendor or network is unavailable. Apply the same graceful-degradation thinking used in the Google SRE guidance on overload: a failing control path should not consume the product's last healthy resources.
A startup proof-of-concept checklist
Use one week of real traffic and a common scorecard:
- Create a kill switch, percentage rollout, and typed remote configuration.
- Evaluate each from the real web, mobile, server, or edge runtimes in scope.
- Test offline startup, cached values, a vendor outage, and an emergency rollback.
- Verify stable assignment across authentication, sessions, devices, and services.
- Send one exposure and one conversion; reconcile raw subject and event counts.
- Run an A/A test or replay a completed experiment when statistical analysis is required.
- Invite every real operator and note which permissions or seats require an upgrade.
- Measure the billable units produced, then model current, 10x, and twelve-month usage.
- Export the configuration and replace one noncritical flag through an internal interface.
- Record the owner, cleanup date, support path, and failure default for each production flag.
Score time-to-safe-production, not time-to-first-toggle. A five-minute quickstart can hide identity, outage, billing, and cleanup work that appears only after launch.
The best Statsig alternative for startups
GrowthBook is the best overall choice for a technical startup because it covers feature delivery, experimentation, and product analytics without charging by experiment count or end-user traffic. A team can start with the managed service, connect an existing warehouse, or retain an open-source self-hosted path. The free tier is useful, and the $40-per-seat Pro plan exposes a predictable upgrade before enterprise governance is needed.
PostHog is the best alternative when the startup wants the broadest discovery and analytics suite in one place. LaunchDarkly is the production-release specialist. DevCycle offers an attractive OpenFeature-native engineering workflow. ConfigCat is the clearest lightweight flag service. Flagsmith and Unleash are strong when open-source deployment or infrastructure control drives the decision.
The real startup advantage is reversibility. Choose a platform that supports today's learning loop, survives the next growth stage, and can be replaced without rewriting the product. Start with GrowthBook for free, then validate assignment, metrics, failure behavior, and costs using the proof of concept above. If the architecture or migration deserves a deeper review, book a GrowthBook demo.
Grow on a flexible foundation
Ship flags, run trustworthy experiments, and keep the freedom to use managed data, your warehouse, or self-hosting.
Start building freeRelated Articles
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.
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.
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.
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 GuideThe 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.
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.
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.
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.
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 GrowthBookTwo 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.
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.
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.
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 GuideCreate 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.
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.
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.
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 GrowthBookYour 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.
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.
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.
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 GuideThe 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.
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.
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.
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.
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.
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 GrowthBookReady to ship faster?
No credit card required. Start with feature flags, experimentation, and product analytics—free.




