Skip to main content
This SDK is being phased out. For new integrations, we recommend using the JavaScript Server SDK with local resolve, which provides better performance and reliability. Only use this SDK when client-side context modifications are required that the local resolve SDK cannot support.
The Confidence JavaScript SDK provides feature flag evaluation for web browser applications. Flags resolve once according to the evaluation context, and values read from a local cache for fast access.

Features

  • Local caching: Flag values cached locally for instant access
  • OpenFeature compatible: Standard feature flag API through OpenFeature provider
  • Automatic apply events: Tracks flag usage
  • Managed context: Optional visitor ID and page context
  • Event tracking: Built-in analytics event tracking

Installation

Quickstart

With OpenFeature

React Integration

The standalone React SDK is being phased out. For new React integrations, we recommend using the JavaScript Server SDK with local resolve and its React hooks, which provides better performance and reliability.
The Confidence React SDK provides React hooks and components for feature flag evaluation. Built on top of the JavaScript SDK, it offers a React-native developer experience.

Installation

Usage with Confidence SDK

Usage with OpenFeature

Resources

GitHub repository

Source code, examples, and full documentation

OpenFeature Web SDK

OpenFeature documentation

OpenFeature React SDK

OpenFeature React documentation

Context

Configure evaluation context