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
| SDK | Package | Runtime |
|---|---|---|
| JavaScript/TypeScript | @replanejs/sdk | Node.js 18+, Browsers, Deno, Bun |
| React | @replanejs/react | React 18+ |
| Next.js | @replanejs/next | Next.js 13+ (App Router) |
| Svelte | @replanejs/svelte | Svelte 5+, SvelteKit |
| Python | replane | Python 3.9+ |
| .NET | Replane | .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
- Backend services: Use the JavaScript, Python, or .NET SDK
- React apps: Use the React SDK for hooks and provider
- Next.js apps: Use the Next.js SDK for server components and App Router support
- Svelte/SvelteKit: Use the Svelte SDK for stores and context
- Other languages: Check out our Building an SDK guide
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
- Install the SDK for your platform
- Get your SDK key from the Replane dashboard
- Connect and start using config values
See the individual SDK pages for detailed installation and usage instructions.