Skip to main content
The Node.js SDK (@clubedge/feature-flags-node) wraps the core FeatureFlagsClient for server-side evaluation in any Node.js runtime. It’s a thin re-export of @clubedge/feature-flags-sdk-core with no framework-specific code — works with Express, Fastify, NestJS controllers, or plain Node.js.

Requirements

Installation

Quick start

Evaluate in a request handler

The context argument (userId, tenantId, etc.) is accepted but not used by the SDK for evaluation. See SDK evaluation model for why targeting rules and rollouts are pre-evaluated at config-fetch time with empty context. For per-user evaluation, use Direct HTTP.

Graceful shutdown

Full example: Express middleware

Configuration reference

See SDK configuration for the complete options table, lifecycle methods, event model, and cache behavior.

Next steps