Introducing a new way to review your PRs.

Read the announcement

thomaspoignant / go-feature-flag

GO Feature Flag is a simple, complete and lightweight self-hosted cloud native feature flag solution 100% Open Source — built on OpenFeature 🎛️

View on GitHub

18 documents · Updated Nov 23, 2026

overview

Knowledge Base updated: 2026-11-22

go-feature-flag knowledge base

Orientation

go-feature-flag is a Go feature-flag SDK and service ecosystem. Its SDK loads flag configuration through retrievers, evaluates flags against contexts, and optionally emits events and change notifications.

Core evaluation state is held by the SDK’s flag store and evaluation models. Configuration arrives through retrievers; exporter and notifier managers process resulting events and configuration diffs.

The repository also ships a relay proxy for remote evaluation, CLI workflows for configuration operations, OpenFeature providers, and a separately versioned core evaluation module.

flowchart TD
  Config[Flag configuration] --> Retrievers[Retriever integrations]
  Retrievers --> SDK[Feature flag SDK]
  SDK --> Context[Evaluation contexts]
  Context --> Evaluation[Flag evaluation]
  Evaluation --> Events[Event export pipeline]
  Events --> Exporters[Exporter integrations]
  Retrievers --> Diffs[Configuration diffs]
  Diffs --> Notifiers[Change notifications]
  SDK --> OF[OpenFeature providers]
  SDK --> Relay[Relay proxy service]
  Relay --> RelayAPI[Relay evaluation API]
  Relay --> Deploy[Relay deployment]
  CLI[CLI tools] --> SDK
  Core[Core evaluation module] --> SDK
  WASM[WASM evaluation runtime] --> Core

Glossary

  • Retriever: a source adapter that supplies feature-flag configuration to the SDK.
  • Evaluation context: the attributes about an entity used for targeting and variation resolution.
  • Exporter: an event-delivery adapter managed by the SDK’s export pipeline.
  • Relay proxy: the HTTP service that exposes remotely consumable flag evaluation and management behavior.
  • Core module: the separately versioned reusable evaluation foundation within the repository.

Invariants

  • Flag definitions must be validated against the configuration schema and domain models before they can be safely evaluated; see config/** and model/**.
  • Targeting decisions are driven by evaluation contexts rather than application-specific request objects; see ffcontext/** and evaluation/**.
  • Retriever implementations share a common integration contract so the SDK can manage updates consistently; see retriever/**.
  • Exporter delivery is mediated through event and exporter management rather than individual callers sending directly to destinations; see exporter/feature_event.go and exporter/**.
  • Relay proxy configuration is validated before serving its API surface; see cmd/…/config_validator.go and cmd/…/server.go.

Routing table