Skip to content

Latest commit

 

History

History
27 lines (19 loc) · 590 Bytes

File metadata and controls

27 lines (19 loc) · 590 Bytes

@replanejs/sdk - Node.js Example

A Node.js example demonstrating how to use @replanejs/sdk for dynamic configuration with real-time updates.

Setup

npm install

Running

Set the required environment variables and run:

REPLANE_SDK_KEY=your-sdk-key \
REPLANE_BASE_URL=https://replane.example.com \
npm start

What this example demonstrates

  • Creating a type-safe Replane client
  • Getting config values with TypeScript inference
  • Using context for user-specific config evaluation
  • Subscribing to real-time config updates
  • Graceful shutdown handling