A Bun example demonstrating how to use @replanejs/sdk for dynamic configuration with real-time updates.
- Bun v1.0.0 or later
bun installSet the required environment variables and run:
REPLANE_SDK_KEY=your-sdk-key \
REPLANE_BASE_URL=https://replane.example.com \
bun start- Creating a type-safe Replane client with Bun
- Getting config values with TypeScript inference
- Using context for user-specific config evaluation
- Subscribing to real-time config updates
- Graceful shutdown handling
Bun provides native TypeScript support without transpilation, making it ideal for running @replanejs/sdk examples directly. The SDK works seamlessly with Bun's runtime.