Flipswitch

SDKs Overview

Official Flipswitch SDKs with real-time SSE support

SDKs

Flipswitch provides official SDKs with real-time SSE support for instant flag updates. These wrap the standard OFREP protocol with automatic cache invalidation when flags change.

Official SDKs

Why Use Official SDKs?

FeatureOfficial SDKStandard OFREP
Real-time updates (SSE)YesNo
Automatic cache invalidationYesManual
Reconnection with backoffYesManual
Event handlersYesNo

Using Standard OFREP Providers

If you don't need real-time updates, you can use any standard OpenFeature OFREP provider:

// Standard OFREP provider (polling only, no SSE)
import { OFREPWebProvider } from '@openfeature/ofrep-web-provider';
 
const provider = new OFREPWebProvider({
  baseUrl: 'https://api.flipswitch.dev',
  headers: { 'X-API-Key': 'YOUR_API_KEY' }
});

Supported Languages

Any OpenFeature SDK with OFREP support works with Flipswitch:

  • JavaScript/TypeScript - Web and server
  • Java - Server-side
  • Go - Server-side
  • .NET - Server and client
  • Python - Server-side
  • PHP - Server-side
  • Ruby - Server-side

See the OpenFeature ecosystem for all available providers.

SDK Configuration

All SDKs share common configuration options:

OptionDescriptionDefault
apiKeyEnvironment API key from dashboardRequired
baseUrlFlipswitch server URLhttps://api.flipswitch.dev
enableRealtimeEnable SSE for live updatestrue
pollingIntervalCache TTL in milliseconds30000

On this page