Skip to main content
The @westyx-nexus/openfeature-provider-vue package bridges the Nexus Vue 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

provideNexus returns the initialised NexusClient; pass it directly to createOpenFeatureProvider.

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 Vue bindings pick this up and trigger reactive updates in components that consume the changed flags.

API reference

NexusVueProvider

createOpenFeatureProvider

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