Shared Client Architecture
Mid-sized Node.js codebases usually initialize OpenFeature once and import a shared client into service files.
platform/feature-flags.ts exports openFeatureClient
src/checkout.ts imports openFeatureClient calls openFeatureClient.getBooleanValue(...)Supported Binding Patterns
Section titled “Supported Binding Patterns”import { openFeatureClient } from "../platform/feature-flags.js";import { openFeatureClient as flags } from "../platform/feature-flags.js";const openFeatureClient = OpenFeature.getClient();Aliased imports preserve the local identifier in dry-run and apply output.
Configuration
Section titled “Configuration”{ "openFeatureClientBindings": [ { "importName": "openFeatureClient", "modulePatterns": ["**/platform/feature-flags"] } ]}Ambiguous or unconfigured bindings are skipped. FlagLint does not guess that an arbitrary imported identifier is an OpenFeature client.