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
- Composition API (main.ts)
- Plugin
app.unmount().
Reading values
Composables
| Composable | Returns | Description |
|---|---|---|
useNexus() | client | Full client access |
useConfig(key) | Ref<string | undefined> | Reactive config value |
useFlag(key, default) | Ref<boolean> | Reactive flag value |
useEvaluateAB(keys, userId, attrs) | Ref<Record<string,boolean>> | A/B evaluation |
A/B rollout
SSE live updates
The SDK opens an SSE stream automatically after setup. Value changes propagate within milliseconds. Reactive refs update automatically, triggering Vue’s reactivity system. The stream uses a 429-aware pre-flightfetch probe with exponential backoff (1→30 s) and a 3-strike circuit breaker. The plugin teardown in both provideNexus and createNexusPlugin().install wraps app.unmount to call client.disconnectStream() - no leaked connections during HMR or SSR shutdown.
Fallback reasons
| Reason | Meaning |
|---|---|
'max-errors' | 3 consecutive transport errors |
'rate-limited' | Server returned 429 |
'transport' | Generic network failure |
