Documentation Index
Fetch the complete documentation index at: https://docs.nexus.westyx.cloud/llms.txt
Use this file to discover all available pages before exploring further.
Installation
.npmrc
Setup
Wrap your app withNexusProvider:
Reading values
Hooks
| Hook | Returns | Description |
|---|---|---|
useConfig(key) | string | undefined | Config value; re-renders on change |
useFlag(key, default) | boolean | Flag value; re-renders on change |
useNexus() | client | Full client access |
useEvaluateAB(keys, userId, attrs) | Record<string,boolean> | A/B evaluation |
A/B rollout
SSE live updates
The SDK opens an SSE stream automatically. Value changes propagate within milliseconds and trigger React re-renders for any component that reads the changed key. The stream uses a 429-aware pre-flightfetch probe with exponential backoff and a 3-strike circuit breaker.
Fallback reasons
| Reason | Meaning |
|---|---|
'max-errors' | 3 consecutive transport errors |
'rate-limited' | Server returned 429 |
'transport' | Generic network failure |
