Skip to main content

Install

The package is published to the GitLab npm Package Registry and is public - no auth token is required to install.

Requirements

  • Node.js 18+ or a modern browser environment with fetch streaming support (Chrome, Firefox, Safari, Edge).
  • TypeScript 4.7 or later for full type compatibility.
  • @openfeature/web-sdk ^1.3.0 (installed as a peer dependency).

Use a public API key

The apiKey must be a wxp_... public (browser) key. Secret (wxs_...) backend keys are not accepted by the browser-facing API endpoints and must never be embedded in browser code.
The API key is sent in the X-Nexus-API-Key request header on every fetch - it never appears in the URL or browser history.

TypeScript

Type declarations are bundled with the package. No @types/ package is needed.