Bucket
The Bucket provider contains support for Bucket's feature management tools.
Currently only feature toggling is supported. Remote Config, Adoption tracking and automatic feedback surveys are currently not supported in the Bucket Flags SDK provider.
Bucket is feature flagging for teams that want to move fast.
The @flags-sdk/bucket
provider package exports
- An adapter for flags from Bucket.
- A getProviderData function for use with the Flags Explorer.
Learn more about Adapters
Learn more about the Flags Explorer
Deploy the Bucket template
Setup
The Bucket provider is available in the @flags-sdk/bucket
module. Install it with
Provider Instance
Import the default adapter instance bucketAdapter
from @flags-sdk/bucket
:
If you need a customized setup, you can import createBucketAdapter
from @flags-sdk/bucket
and create an adapter instance with your settings:
See the Bucket NodeSDK documentation for the full list of options.
Identify Users and Companies
The Bucket provider uses the identify
property to identify users and companies. The identify
function is called for every request to determine the user and company context.
Bucket relies on a setting a user/company to evaluate flags for a given request.
Set the identify
property to a function which returns a Bucket Context
containing user/company properties:
Learn more about dedupe
Learn more about identify
Methods
Feature toggling
Through the featureIsEnabled
method, the Bucket provider supports determining if features are enabled/disabled.
Remote Config, Adoption tracking and automatic feedback surveys are currently not supported in the Bucket Flags SDK provider.
"Checks" events
Check events are used to log when a user is exposed to a feature. Because middleware and server components are evaluated when routes are prefetched, check events are not supported in the Bucket Provider.
See the Bucket React SDK documentation for more information on how to use check events in the client.
Flags Explorer
View and override your Bucket feature toggles using the Flags Explorer.
To make Flags Explorer aware of your Bucket features, you need to provide a route which Flags Explorer will load your experiment metadata from.
Use the getProviderData
function in your Flags API endpoint to load and emit your Bucket data.
getProviderData
takes a BucketClient
in the options
object:
Read More
Read more about Bucket, Flags SDK, and the Bucket adapter.