Documentation Index
Fetch the complete documentation index at: https://docs.westyx.cloud/llms.txt
Use this file to discover all available pages before exploring further.
Installation
.npmrc
Setup
- Standalone (app.config.ts)
- NgModule (app.module.ts)
APP_INITIALIZER to block rendering until the initial sync completes - components always see a populated cache.
Reading values in a component
API
| Method | Returns | Description |
|---|---|---|
getConfig(key) | string | undefined | Config value |
getConfigAs<T>(key) | T | undefined | Typed config |
getFlag(key, default) | boolean | Flag value; default if not found |
evaluateAB(keys, userId, attrs) | Observable<Record<string,boolean>> | A/B evaluation |
Frontend (
pk_live_) services cannot access secrets. Calling getSecret on an Angular app is a compile-time error - the method does not exist on the browser SDK interface.SSE live updates
The SDK opens an SSE stream automatically after the initial sync. Value changes propagate within milliseconds and trigger Angular’s change detection viaNgZone.
The stream uses a 429-aware pre-flight fetch probe before opening EventSource, with exponential backoff (1→30 s) and a 3-strike circuit breaker.
