Use flags anywhere on the server
The SDK fetches configuration lazily, evaluates locally, and returns your fallback on operational failures. Constructor errors still throw immediately for developer mistakes such as a missingsdk_ key or invalid endpoint.
Global flags
{ targetingKey: "server" }.
That is appropriate for global flags. A percentage rollout will assign the
whole service to one stable cohort.
Per-user or per-organization targeting
Typed remote configuration
Evaluation details
Framework pattern
Keep the client outside the request handler:Refresh and diagnostics
refresh() resolves with state instead of throwing.