Skip to main content

SDK Overview

Replane provides official SDKs for all major languages and frameworks. Each SDK connects to your Replane server via Server-Sent Events (SSE) for real-time configuration updates.

Available SDKs

SDKPackageRuntime
JavaScript/TypeScript@replanejs/sdkNode.js 18+, Browsers, Deno, Bun
React@replanejs/reactReact 18+
Next.js@replanejs/nextNext.js 13+ (App Router)
Svelte@replanejs/svelteSvelte 5+, SvelteKit
PythonreplanePython 3.9+
.NETReplane.NET 8+

Core Concepts

All Replane SDKs share the same core concepts:

Connection

Connect to your Replane server using an SDK key:

await replane.connect({
baseUrl: 'https://replane.example.com',
sdkKey: process.env.REPLANE_SDK_KEY
})

Getting Config Values

Retrieve configuration values by name:

const value = replane.get('config-name')

Real-time Updates

Subscribe to configuration changes for instant updates:

replane.subscribe('config-name', (config) => {
console.log('Config changed:', config.value)
})

Context for Overrides

Pass context for override rule evaluation:

const value = replane.get('config-name', {
context: { userId: 'user-123', plan: 'premium' }
})

Choosing an SDK

Features

All official SDKs include:

  • Type safety - Full TypeScript/type hint support
  • Real-time updates - Server-Sent Events for instant propagation
  • Local caching - Configs cached locally for resilience
  • Override rules - Context-based value resolution
  • Connection recovery - Automatic reconnection on network issues

Getting Started

  1. Install the SDK for your platform
  2. Get your SDK key from the Replane dashboard
  3. Connect and start using config values

See the individual SDK pages for detailed installation and usage instructions.