Repository avatar
Other Tools
v1.0.1
active

flagbearer

dev.flagbearer/flagbearer

Feature flags for coding agents: create flags, roll them out gradually and write the flag code.

Documentation

Flagbearer SDKs

mcptry

Official SDKs for Flagbearer feature flags. Server SDKs download an environment's rules once and check flags locally, so a flag check never waits on the network. Docs for each are at docs.flagbearer.dev.

SDKDirectoryPackage
Browserjs/web@flagbearer/web (npm)
React Nativejs/react-native@flagbearer/react-native (npm)
iOSswiftSwift Package Manager, from this repository
Androidandroiddev.flagbearer:flagbearer-android (Maven Central)
Node.jsjs/node@flagbearer/node (npm)
Pythonpythonflagbearer-dev (PyPI)
Gogogithub.com/flagbearer-dev/sdks/go
Java and Kotlinjavadev.flagbearer:flagbearer (Maven Central)
.NETdotnetFlagbearer (NuGet)
Rubyrubyflagbearer (RubyGems)
Rustrustflagbearer (crates.io)
C++cppCMake, from a git tag
PHPflagbearer-dev/php-sdkflagbearer/flagbearer (Packagist)

The PHP SDK lives in its own repository, since Packagist publishes from a repository's root. Go, C++ and iOS install straight from this repository's tags. Swift Package Manager also reads a package only from a repository's root, which is why Package.swift sits here beside the code in swift/.

How the SDKs stay consistent

  • fixtures/evaluation.json holds rollout buckets and evaluation cases that every SDK's tests must reproduce exactly.
  • testing/servers/ has a small HTTP server per SDK with the same routes (GET /flags, GET /flush), which Flagbearer's integration tests run against the real backend.
  • js/core and js/evaluator are internal packages the JavaScript SDKs bundle.

Each SDK's README covers how to build, test and release it.

License

MIT

No installation packages available.

Remote