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
- Host: GitHub
- URL: https://github.com/octopusdeploy/openfeature-provider-ts-web
- Owner: OctopusDeploy
- License: apache-2.0
- Created: 2024-06-12T00:01:00.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-06-04T22:20:06.000Z (10 months ago)
- Last Synced: 2025-06-14T13:06:40.623Z (10 months ago)
- Language: TypeScript
- Homepage:
- Size: 245 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Octopus Deploy OpenFeature Provider for TypeScript/JavaScript (web clients)
[](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('🚀🚀🚀');
}
```