The OctopusDeploy TypeScript/JavaScript OpenFeature provider for web clients, to be used with the OpenFeature web SDK
Octopus Deploy is a sophisticated, best-of-breed continuous delivery (CD) platform for modern software teams. Octopus offers powerful release orchestration, deployment automation, and runbook automation, while handling the scale, complexity and governance expectations of even the largest organizations with the most complex deployment challenges.
npm i @octopusdeploy/openfeature
const provider = new OctopusFeatureProvider({ clientIdentifier: "YourClientIdentifier" });
await OpenFeature.setProviderAndWait(provider);
await OpenFeature.setContext({ userid: "bob@octopus.com" });
const client = OpenFeature.getClient();
if (client.getBooleanValue("to-the-moon-feature", false, {})) {
console.log('🚀🚀🚀');
}