SDK
SDK Overview
OpenFeature-compatible feature flag SDKs for every major language.
The TrustyGorilla SDKs let you evaluate feature flags in your application with a single, consistent API. Every SDK is an OpenFeature provider — you use the standard OpenFeature client to read flag values, and TrustyGorilla supplies them behind the scenes.
How it works
- You create a
TrustyGorillaConfigwith your environment API key. - You register a
TrustyGorillaProviderwith the OpenFeature SDK. - The provider polls
GET /v1/flagson an interval and keeps an in-memory cache, so flag evaluations are local and synchronous — no network call per lookup. - You evaluate flags through the OpenFeature client (
getBooleanValue,getStringValue, and so on), passing a targeting key for gradual rollouts and segment targeting.
Because everything is built on OpenFeature, the flag keys, evaluation methods, and targeting semantics are identical across languages.
Supported languages
| Language | Package | Registry |
|---|---|---|
| JavaScript / TypeScript | @trustygorilla/js-sdk | npm |
| Python | trustygorilla-sdk | PyPI |
| Go | github.com/trustygorilla/go-sdk | Go modules |
| Java | com.trustygorilla:tg-java-sdk | Maven Central |
| Kotlin | com.trustygorilla:trustygorilla-kotlin-sdk | Maven Central |
| .NET (C#) | TrustyGorilla.SDK | NuGet |
| PHP | trustygorilla/sdk | Packagist |
| Ruby | trustygorilla_sdk | RubyGems |
| Swift | TrustyGorillaSDK | Swift Package Manager |
Each SDK depends on the OpenFeature SDK for its language (for example
@openfeature/server-sdk for Node.js or dev.openfeature:sdk for the JVM).
Sections
- Installation — add the SDK to your project
- Quickstart — evaluate your first flag
- Reference — configuration, evaluation, and targeting