Enterprise Demo
The enterprise checkout-service demo shows a fictional mid-sized SaaS company standardizing several Node.js services on OpenFeature while keeping LaunchDarkly as the provider.
Source: examples/enterprise-checkout-service
What It Demonstrates
Section titled “What It Demonstrates”boolVariation,stringVariation,numberVariation, andjsonVariation.- Shared OpenFeature client imports.
- Dynamic keys requiring manual review.
- Detail evaluations requiring manual review.
- Provider/bootstrap files excluded from policy enforcement.
- Completed-state validation that scans real files and passes.
Contributor-Mode Commands
Section titled “Contributor-Mode Commands”From the repository root:
npm installnpm run buildGenerate inventory:
node ./dist/bin/flaglint.js scan \ ./examples/enterprise-checkout-service/src \ --config ./examples/enterprise-checkout-service/.flaglintrc \ --format html \ --output report.htmlPreview migration:
node ./dist/bin/flaglint.js migrate \ ./examples/enterprise-checkout-service/src \ --config ./examples/enterprise-checkout-service/.flaglintrc \ --dry-runValidate the completed state:
node ./dist/bin/flaglint.js validate \ ./examples/enterprise-checkout-service/after-complete \ --no-direct-launchdarkly \ --config ./examples/enterprise-checkout-service/.flaglintrcExpected output:
- Scanning ./examples/enterprise-checkout-service/after-complete...✓ validate --no-direct-launchdarkly: no direct LaunchDarkly evaluation calls found. Scanned 5 file(s).Production Use
Section titled “Production Use”Use the published package after the release that contains the documented capability:
npx flaglint scan ./srcnpx flaglint migrate ./src --dry-runnpx flaglint validate ./src --no-direct-launchdarkly