Skip to main content
The @westyx-nexus/openfeature-provider-react package bridges the Nexus React SDK into the OpenFeature Web SDK. It wraps an existing NexusClient and emits ConfigurationChanged on every cache update so OpenFeature clients re-evaluate flags automatically.

Installation

Configure the npm registry for the Westyx Nexus scope - see Installation.

Quick start

Evaluation mapping

All evaluations use the STATIC resolution reason. The provider does not perform per-user targeting - use client.evaluateAB() directly for that.

Live updates

The provider subscribes to the Nexus client on initialize(). Each time the client’s cache refreshes - via SSE push or TTL poll - the provider emits ProviderEvents.ConfigurationChanged. OpenFeature’s React bindings pick this up and trigger re-renders in components that consume the changed flags.

API reference

NexusReactProvider

createOpenFeatureProvider

Convenience factory equivalent to new NexusReactProvider(client).
Browser SDKs must use a wxp_... (public) key. Never embed secret keys (wxs_...) in browser code.