An open API service indexing awesome lists of open source software.

https://github.com/octopusdeploy/openfeature-provider-ts-web

An OctopusDeploy TypeScript OpenFeature provider
https://github.com/octopusdeploy/openfeature-provider-ts-web

Last synced: 2 months ago
JSON representation

An OctopusDeploy TypeScript OpenFeature provider

Awesome Lists containing this project

README

          

# Octopus Deploy OpenFeature Provider for TypeScript/JavaScript (web clients)

[![Build test and release](https://github.com/OctopusDeploy/openfeature-provider-ts-web/actions/workflows/build-test-release.yml/badge.svg)](https://github.com/OctopusDeploy/openfeature-provider-ts-web/actions/workflows/build-test-release.yml)

The OctopusDeploy TypeScript/JavaScript [OpenFeature provider
](https://openfeature.dev/docs/reference/concepts/provider/) for web clients, to be used with the [OpenFeature web SDK](https://openfeature.dev/docs/reference/technologies/client/web/)

## About Octopus Deploy

[Octopus Deploy](https://octopus.com) 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.

## Getting Started

### Installation

```
npm i @octopusdeploy/openfeature
```

### Usage

```ts
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('🚀🚀🚀');
}
```