---
title: "Now you see me, now you don't: feature-flagging with LaunchDarkly at incident.io"
description: "incident.io ships to production many times a day and uses feature flags to merge large features like Announcement Rules incrementally while hiding them from customers until launch."
url: "https://swe.quest/articles/now-you-see-me-now-you-don-t-feature-flagging-with-launchdarkly-at-incident-io-cb6cda92c3363bee"
canonical: "https://incident.io/blog/feature-flagging-launch-darkly"
source: "incident.io"
published: "2021-11-09"
difficulty: "medium"
kind: "Case study"
reading_minutes: 6
tags: ["deployment","go","react","testing"]
---

# Now you see me, now you don't: feature-flagging with LaunchDarkly at incident.io

A post on [incident.io](https://swe.quest/sources/incident-io.md), published 2021-11-09, 6 min read, Case study. Original: [https://incident.io/blog/feature-flagging-launch-darkly](https://incident.io/blog/feature-flagging-launch-darkly)

## Summary

incident.io ships to production many times a day and uses feature flags to merge large features like Announcement Rules incrementally while hiding them from customers until launch. The team chose LaunchDarkly over building its own system because feature flagging isn't a differentiator, and integrated it across backend and frontend in a day. On the backend, the Go SDK is wrapped in a featureflags package that centralizes flag names as constants, initializes a singleton client, returns clients scoped to user and organization IDs, and supports injecting mocks so tests cover both flag states. On the frontend, the React SDK hook gates UI, and flags are mostly targeted per organization to run beta tests.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Deployment](https://swe.quest/tags/deployment.md) (Reliability & operations)
- [Go](https://swe.quest/tags/go.md) (Languages)
- [React](https://swe.quest/tags/react.md) (Web & mobile)
- [Testing](https://swe.quest/tags/testing.md) (Engineering practices)

## Prerequisites

- feature flags ([easy posts on Deployment](https://swe.quest/tags/deployment.md?difficulty=easy))
- continuous deployment ([easy posts on Deployment](https://swe.quest/tags/deployment.md?difficulty=easy))

## Keywords

LaunchDarkly, incident.io, CircleCI, Announcement Rules

## Related posts

- [Roll it out, roll it back, never redeploy](https://swe.quest/articles/roll-it-out-roll-it-back-never-redeploy-c13aa355b1437d78.md): Railway · 2026-07-17 · Medium · 7 min read · Deployment, Configuration management, AI agents, Developer tools
  Railway now offers feature flags across its dashboard, CLI, TypeScript SDK and MCP server, so code can ship dark behind a default-off flag and be rolled out to a team, a percentage of users, or targeted segments without redeploying.
- [How we ship code faster and safer with feature flags](https://swe.quest/articles/how-we-ship-code-faster-and-safer-with-feature-flags-49a97b8efaf60044.md): GitHub Engineering · 2021-04-27 · Medium · 9 min read · Deployment, CI/CD, Testing, Refactoring & migrations, Ruby
  GitHub puts risky changes and in-progress features behind feature flags so it can deploy continuously and disable problems in seconds instead of rolling back a deployment over several minutes.
- [Implementing Feature Flags from Scratch](https://swe.quest/articles/implementing-feature-flags-from-scratch-71e3ff66bd030a0e.md): Railway · 2024-12-13 · Medium · 24 min read · Deployment, JavaScript, PostgreSQL, React
  Feature flags can be built in-house on a Next.js Twitter clone, using Postgres for app data and Redis for flag state, then deployed to Railway.
- [Rolling out Roles](https://swe.quest/articles/rolling-out-roles-feb5c6f49f33b701.md): incident.io · 2022-03-11 · Medium · 6 min read · Identity & auth, Deployment, Product engineering, Go, TypeScript
  incident.io added role-based access control by mapping a fixed set of customer-facing roles (owner, admin, etc.) to granular internal scopes.
- [Organizing ownership: How we assign errors in our monolith](https://swe.quest/articles/organizing-ownership-how-we-assign-errors-in-our-monolith-a4731f02c7358da3.md): incident.io · 2024-11-18 · Medium · 7 min read · Observability, Incidents & postmortems, Go, CI/CD
  incident.io assigns error ownership inside its monolith by dividing the codebase into team-owned units (apps, backend feature packages, integrations), each with a required jsonnet module file declaring owner, criticality and customer-facing features.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
