Skip to content

@nestarc/feature-flag import paths ​

Published 0.6.0 API. For targeting, tenant-context, and custom-provider usage, read the agent guide and upgrade guidance. Signatures and source links describe this published release.

API reference for @nestarc/feature-flag 0.6.0. DB-backed feature flags with cache adapters, Admin API, rollouts, and tenant overrides.

Start here ​

Install the documented release with npm install @nestarc/[email protected]. Follow Installation for peer dependencies and application setup, then read Agent guide and upgrade guidance for usage decisions and examples.

Choose an import path below to find its exported signatures and types. The root package contains the main application APIs; named subpaths group the additional integrations and utilities. The reference is generated from the published release, with source links pinned to its commit.

Modules ​

  • @nestarc/feature-flag — Register FeatureFlagModule with Prisma or a custom repository and tenant context, then use the service, guards, registry bucketing, and admin APIs. Review the 0.6 rollout changes when upgrading.
  • @nestarc/feature-flag/openfeature — Create the Boolean evaluation provider with createOpenFeatureBooleanProvider. This subpath documents its evaluation context and resolution details; it is not a reference for other OpenFeature value types.
  • @nestarc/feature-flag/testing — Configure TestFeatureFlagModule and its controller with flag defaults and overrides for deterministic application tests.

Documentation site: MIT License. Check each package for its license.