From 40573fb07ec74a8ecc17ea8f289130664b0d3d41 Mon Sep 17 00:00:00 2001 From: Ron Cohen <744+roncohen@users.noreply.github.com> Date: Tue, 1 Dec 2026 09:34:16 +0000 Subject: [PATCH 1/3] docs: point links at the section anchors in the v1-based SDK READMEs --- guides/toggle-toolbar-with-a-flag.md | 2 +- integrations/overview.md | 2 +- product-handbook/service-resiliency.md | 14 +++++++------- supported-languages/migrating-from-v1.md | 2 +- supported-languages/next.js.md | 2 +- 5 files changed, 11 insertions(+), 11 deletions(-) diff --git a/guides/toggle-toolbar-with-a-flag.md b/guides/toggle-toolbar-with-a-flag.md index cb6545f..34a2f52 100644 --- a/guides/toggle-toolbar-with-a-flag.md +++ b/guides/toggle-toolbar-with-a-flag.md @@ -27,4 +27,4 @@ export function ToolbarFlagControl() { Now you can turn the toolbar on or off for anyone by changing who the `toolbar` flag is enabled for. Turning it off takes effect the next time the page loads, because the toolbar stays open once it's shown. -The toolbar only overrides flags in the user's own browser, so it isn't a security control. See the [Browser SDK](../supported-languages/browser-sdk/README.md#overrides-and-toolbar) for more toolbar options. +The toolbar only overrides flags in the user's own browser, so it isn't a security control. See the [Browser SDK](../supported-languages/browser-sdk/README.md#toolbar) for more toolbar options. diff --git a/integrations/overview.md b/integrations/overview.md index fb87c32..6ee5902 100644 --- a/integrations/overview.md +++ b/integrations/overview.md @@ -14,7 +14,7 @@ These integrations are crafted and maintained by the Reflag team. To build your own integrations with Reflag, you can use: -* [Event listeners](../supported-languages/browser-sdk/README.md#events) +* [Event listeners](../supported-languages/browser-sdk/README.md#event-listeners) * [Runtime API](../api/public-api/) **To request support for more integrations,** [**please fill out this form**](https://share-eu1.hsforms.com/14DktM5t6T229b5Bg8KPDBg2b6w1x) **— Thanks!** diff --git a/product-handbook/service-resiliency.md b/product-handbook/service-resiliency.md index 69e8cc0..a56ff53 100644 --- a/product-handbook/service-resiliency.md +++ b/product-handbook/service-resiliency.md @@ -58,8 +58,8 @@ flowchart LR ## Recommended production setup 1. Evaluate flags on the server with the [Node.js SDK](../supported-languages/node-sdk/README.md). -2. Configure a [`flagsFallbackProvider`](../supported-languages/node-sdk/README.md#fallback-providers) so fresh server processes can initialize from saved flag definitions when Reflag cannot be reached. -3. Use [`getFlagsForBootstrap()`](../supported-languages/node-sdk/README.md#bootstrap-the-browser) on the server and a bootstrapped client provider in React, Vue, or the Browser SDK. +2. Configure a [`flagsFallbackProvider`](../supported-languages/node-sdk/README.md#fallback-provider) so fresh server processes can initialize from saved flag definitions when Reflag cannot be reached. +3. Use [`getFlagsForBootstrap()`](../supported-languages/node-sdk/README.md#bootstrapping-client-side-applications) on the server and a bootstrapped client provider in React, Vue, or the Browser SDK. 4. If your client SDK supports caching, tune it based on how long your app can tolerate stale flags. 5. Test the disruption path in staging: block access to Reflag, start a fresh server process, and confirm it initializes from fallback storage and the client renders from bootstrapped flags. @@ -90,17 +90,17 @@ Use the file provider for single-server deployments only when the disk persists Choose fallback storage based on where your application runs. The storage should be reachable whenever your application is reachable, so prefer storage in the same cloud provider, region, or network as the application deployment that will use it. If an outage affects Reflag's infrastructure but your application is still running elsewhere, your application can still load the saved snapshot. If the same provider or region outage also takes down your application, fallback storage cannot help until your application environment is available again. -See the [fallback provider docs](../supported-languages/node-sdk/README.md#fallback-providers) for the built-in storage options. +See the [fallback provider docs](../supported-languages/node-sdk/README.md#fallback-provider) for the built-in storage options. ## Bootstrapped flags Bootstrapping lets your server evaluate flags and pass the server-evaluated state to your client-side application. The client can render immediately from that state instead of depending on an initial request to Reflag. -Use [`getFlagsForBootstrap()`](../supported-languages/node-sdk/README.md#bootstrap-the-browser) in the Node.js SDK together with your client SDK's bootstrapping API: +Use [`getFlagsForBootstrap()`](../supported-languages/node-sdk/README.md#bootstrapping-client-side-applications) in the Node.js SDK together with your client SDK's bootstrapping API: -* [React SDK](../supported-languages/react-sdk/README.md#bootstrap-and-ssr): `ReflagBootstrappedProvider` -* [Vue SDK](../supported-languages/vue-sdk/README.md#bootstrap): `ReflagBootstrappedProvider` -* [Browser SDK](../supported-languages/browser-sdk/README.md#server-bootstrap): `bootstrappedState` +* [React SDK](../supported-languages/react-sdk/README.md#server-side-rendering-and-bootstrapping): `ReflagBootstrappedProvider` +* [Vue SDK](../supported-languages/vue-sdk/README.md#reflagbootstrappedprovider-component): `ReflagBootstrappedProvider` +* [Browser SDK](../supported-languages/browser-sdk/README.md#server-side-rendering-and-bootstrapping): `bootstrappedState` Pass the whole object returned by `getFlagsForBootstrap()`. React Native and OpenFeature have their own compatibility requirements; follow their SDK documentation. diff --git a/supported-languages/migrating-from-v1.md b/supported-languages/migrating-from-v1.md index ed698f8..ac874d6 100644 --- a/supported-languages/migrating-from-v1.md +++ b/supported-languages/migrating-from-v1.md @@ -198,7 +198,7 @@ reflag.getFlag("huddles", true); useFlag("huddles", true); ``` -On the server, use a [fallback provider](node-sdk/README.md#fallback-providers) to keep evaluating flags when Reflag can't be reached. +On the server, use a [fallback provider](node-sdk/README.md#fallback-provider) to keep evaluating flags when Reflag can't be reached. ## React Native diff --git a/supported-languages/next.js.md b/supported-languages/next.js.md index 3a47c44..a585daa 100644 --- a/supported-languages/next.js.md +++ b/supported-languages/next.js.md @@ -122,6 +122,6 @@ Replace the example IDs with your signed-in user and company. For a loading UI, ## Server-to-client bootstrap -To render flags on the client immediately, evaluate them on the server with the Node.js SDK's `getFlagsForBootstrap()` and pass the result to the React SDK's `ReflagBootstrappedProvider`. See [Bootstrap and SSR](react-sdk/README.md#bootstrap-and-ssr) in the React SDK guide. +To render flags on the client immediately, evaluate them on the server with the Node.js SDK's `getFlagsForBootstrap()` and pass the result to the React SDK's `ReflagBootstrappedProvider`. See [Bootstrap and SSR](react-sdk/README.md#server-side-rendering-and-bootstrapping) in the React SDK guide. Using v1? [Legacy docs](../legacy/v1/README.md) · [Upgrade guide](migrating-from-v1.md). From 1558b079477838d15176baa619aa7b4453073557 Mon Sep 17 00:00:00 2001 From: Ron Cohen <744+roncohen@users.noreply.github.com> Date: Tue, 1 Dec 2026 09:53:48 +0000 Subject: [PATCH 2/3] docs: import the v1-based v2 SDK READMEs --- .generated/sdk-docs/browser-sdk/v2.json | 10 +- .generated/sdk-docs/node-sdk/v2.json | 7 +- .generated/sdk-docs/react-native-sdk/v2.json | 12 +- .generated/sdk-docs/react-sdk/v2.json | 8 +- .generated/sdk-docs/vue-sdk/v2.json | 6 +- sdk/@reflag/browser-sdk/README.md | 624 +++++++-- sdk/@reflag/node-sdk/README.md | 1185 +++++++++++++++-- sdk/@reflag/react-native-sdk/README.md | 213 ++- sdk/@reflag/react-native-sdk/globals.md | 4 +- sdk/@reflag/react-sdk/README.md | 989 ++++++++++++-- sdk/@reflag/vue-sdk/README.md | 724 +++++++++- sdk/documents/browser-sdk/FEEDBACK.md | 6 +- sdk/documents/react-native-sdk/README.md | 213 ++- sdk/documents/react-sdk/README.md | 989 ++++++++++++-- .../_media/type-check-failed.png | Bin 0 -> 105925 bytes supported-languages/browser-sdk/README.md | 624 +++++++-- supported-languages/browser-sdk/feedback.md | 6 +- supported-languages/node-sdk/README.md | 1185 +++++++++++++++-- .../react-native-sdk/README.md | 213 ++- .../react-native-sdk/globals.md | 4 +- supported-languages/react-sdk/README.md | 989 ++++++++++++-- supported-languages/vue-sdk/README.md | 724 +++++++++- 22 files changed, 7460 insertions(+), 1275 deletions(-) create mode 100644 supported-languages/_media/type-check-failed.png diff --git a/.generated/sdk-docs/browser-sdk/v2.json b/.generated/sdk-docs/browser-sdk/v2.json index 373ea55..2ddeb02 100644 --- a/.generated/sdk-docs/browser-sdk/v2.json +++ b/.generated/sdk-docs/browser-sdk/v2.json @@ -1,14 +1,14 @@ { "sourceRepository": "https://github.com/reflagcom/javascript", - "sourceCommit": "f42b3b8e4bdb954cbb8835eecdcb355edea96b84", + "sourceCommit": "77027aca6454feb7d5c7c41cde65838ccd06acf3", "package": "@reflag/browser-sdk", "version": "2.0.0", "files": { - "supported-languages/browser-sdk/README.md": "818b4d310c45056493d5bb37ea86c599c165185de59b8850591a0a2c7fca2412", - "sdk/@reflag/browser-sdk/README.md": "417d99038c714822ba109b4fe3a500dbc338cb47c794d9b543d61a9817796734", + "supported-languages/browser-sdk/README.md": "d7303314ecad4fdcba9a5bfd9cdf01714dd932e92a645210c4972988af4a2b00", + "sdk/@reflag/browser-sdk/README.md": "ab530af1c50f10d7d1531da37db7eadb5d87df77c4c8bb3b9b69f5dd3aa6a2e2", "supported-languages/browser-sdk/globals.md": "6883659c1e05df302a1b9409233fcb27c328e242f79a7df99593ab2a91c8a0bf", "sdk/@reflag/browser-sdk/globals.md": "49ac1629f1418cdd8c3457b982a5f9a1b4beb1eab36fac8ba1cfeca9a351e29d", - "supported-languages/browser-sdk/feedback.md": "13b63cc58b2a48ace49299660f0534ad551fed1be51ddcd72ecfa4cbcc2140bf", - "sdk/documents/browser-sdk/FEEDBACK.md": "167b9714b198769c80fb5f8345137ff095abbbdbbace67ca505aa088db26d96e" + "supported-languages/browser-sdk/feedback.md": "cf9feeadfcaefa69396e8fd9c6d34e415be2b0bd4e0911f847d83497d23fae81", + "sdk/documents/browser-sdk/FEEDBACK.md": "0b73e47fec523de1d94c151cfb94cfef4d7102a7dbe1803ddc91cc8a0ac7576f" } } diff --git a/.generated/sdk-docs/node-sdk/v2.json b/.generated/sdk-docs/node-sdk/v2.json index 473bb64..47041c9 100644 --- a/.generated/sdk-docs/node-sdk/v2.json +++ b/.generated/sdk-docs/node-sdk/v2.json @@ -1,11 +1,12 @@ { "sourceRepository": "https://github.com/reflagcom/javascript", - "sourceCommit": "f42b3b8e4bdb954cbb8835eecdcb355edea96b84", + "sourceCommit": "77027aca6454feb7d5c7c41cde65838ccd06acf3", "package": "@reflag/node-sdk", "version": "2.0.0", "files": { - "supported-languages/node-sdk/README.md": "0b709dac1ed54553db7800619a51e055870698ac6cd06d0bf702539410a76db2", - "sdk/@reflag/node-sdk/README.md": "6c14a535771011aa81c5bbc4c2810856194b9c9dff9987bc7ed6df52acfb3eea", + "supported-languages/_media/type-check-failed.png": "f04547c0bf0425bcf554aa1a1dddec56096ca9967d120bdca7737562327d4db8", + "supported-languages/node-sdk/README.md": "5cd824c8a58fa38d37255d1cad80af365779a14bd82c6c98887309083d9dc766", + "sdk/@reflag/node-sdk/README.md": "454ebc31dc48e71919aaf02ca92cea367cc1193f06052b802726eabe3cf3251a", "supported-languages/node-sdk/globals.md": "bae8f76e3d334badeffa0bdf95760ab311956b9e76ee54d1db721186d911485a", "sdk/@reflag/node-sdk/globals.md": "cc640d76599ed1fde917dba0a9264bc4c5c4a254424b5a22506151b420208ff0" } diff --git a/.generated/sdk-docs/react-native-sdk/v2.json b/.generated/sdk-docs/react-native-sdk/v2.json index 1dade84..9bbc4e8 100644 --- a/.generated/sdk-docs/react-native-sdk/v2.json +++ b/.generated/sdk-docs/react-native-sdk/v2.json @@ -1,13 +1,13 @@ { "sourceRepository": "https://github.com/reflagcom/javascript", - "sourceCommit": "f42b3b8e4bdb954cbb8835eecdcb355edea96b84", + "sourceCommit": "77027aca6454feb7d5c7c41cde65838ccd06acf3", "package": "@reflag/react-native-sdk", "version": "2.0.0", "files": { - "supported-languages/react-native-sdk/README.md": "387eef7aad318ebcc61b5b631cb5ee4013531733d7b73e4494a016bbe71ee616", - "sdk/@reflag/react-native-sdk/README.md": "2e4c96aaa19918bc9b3d16a75fef0bf7df4d0f6546781242a52839e6ee402e59", - "sdk/documents/react-native-sdk/README.md": "2e4c96aaa19918bc9b3d16a75fef0bf7df4d0f6546781242a52839e6ee402e59", - "supported-languages/react-native-sdk/globals.md": "65da514b04c2383d21667c5f779236db943f87db634f9c36632a16e76c3882c9", - "sdk/@reflag/react-native-sdk/globals.md": "5510640228036ad5af4eefa27525ac8a04b202bd281de711308296dc71a26a39" + "supported-languages/react-native-sdk/README.md": "b6ad794fd79e1a9f705298db21e9b753ce6a99f33938bdb6c75667cb2e505031", + "sdk/@reflag/react-native-sdk/README.md": "4723239712dec26cf9efd51f6dcc398e160af5852b8a07426fe0f5de5a28430a", + "sdk/documents/react-native-sdk/README.md": "4723239712dec26cf9efd51f6dcc398e160af5852b8a07426fe0f5de5a28430a", + "supported-languages/react-native-sdk/globals.md": "10fd14a25ae48463339c5576c732d4fb86deb095b189294e86d893d954c3d4ff", + "sdk/@reflag/react-native-sdk/globals.md": "08ab491ad4251b5fa29c731f8ea31a2a717f6f4c9a364d8e91656e23525be882" } } diff --git a/.generated/sdk-docs/react-sdk/v2.json b/.generated/sdk-docs/react-sdk/v2.json index 3c65414..b91f8cb 100644 --- a/.generated/sdk-docs/react-sdk/v2.json +++ b/.generated/sdk-docs/react-sdk/v2.json @@ -1,12 +1,12 @@ { "sourceRepository": "https://github.com/reflagcom/javascript", - "sourceCommit": "f42b3b8e4bdb954cbb8835eecdcb355edea96b84", + "sourceCommit": "77027aca6454feb7d5c7c41cde65838ccd06acf3", "package": "@reflag/react-sdk", "version": "2.0.0", "files": { - "supported-languages/react-sdk/README.md": "6a0089ad1e9bb4a76a3bf82dcb38b8e35d94c68e692ebe97ce8c89d33c6387ef", - "sdk/@reflag/react-sdk/README.md": "c616cfb783b35ea9c56ac283c01ec0dd88b19e4d62054b217c5b60f8a98824a7", - "sdk/documents/react-sdk/README.md": "c616cfb783b35ea9c56ac283c01ec0dd88b19e4d62054b217c5b60f8a98824a7", + "supported-languages/react-sdk/README.md": "e946271f083774c41aebc97801bf3d67738c8934e1c1c58d736681d114cc80ef", + "sdk/@reflag/react-sdk/README.md": "03d0bc9edbbc766a4d0f28dc1cf72dca9a83ae1745213d2b6b2e62bbd9450d9b", + "sdk/documents/react-sdk/README.md": "03d0bc9edbbc766a4d0f28dc1cf72dca9a83ae1745213d2b6b2e62bbd9450d9b", "supported-languages/react-sdk/globals.md": "ab1a82258a51f04195a6d1c5f10bdf2d2de8c949327ed8d0fa54b9e853f72cb5", "sdk/@reflag/react-sdk/globals.md": "7a99a3b2f41705ac655a5d8ebdad33242af8d10e389e7c21a10b9353e7853c43" } diff --git a/.generated/sdk-docs/vue-sdk/v2.json b/.generated/sdk-docs/vue-sdk/v2.json index ffa58d8..4a343f8 100644 --- a/.generated/sdk-docs/vue-sdk/v2.json +++ b/.generated/sdk-docs/vue-sdk/v2.json @@ -1,11 +1,11 @@ { "sourceRepository": "https://github.com/reflagcom/javascript", - "sourceCommit": "f42b3b8e4bdb954cbb8835eecdcb355edea96b84", + "sourceCommit": "77027aca6454feb7d5c7c41cde65838ccd06acf3", "package": "@reflag/vue-sdk", "version": "2.0.0", "files": { - "supported-languages/vue-sdk/README.md": "0812e2906a53e820bbd95adc675879fecfe0ab78feb4e9cc2206d7ee59cb63b5", - "sdk/@reflag/vue-sdk/README.md": "d4ed944effe9fdd47a6edfbd22955455299562ea2c4ee299b934a7aa9d9f3b76", + "supported-languages/vue-sdk/README.md": "53219fa7465dbee457c4ff1ebd21f7801865d87aa078cb3dd8cded7fc9670d59", + "sdk/@reflag/vue-sdk/README.md": "83303a568a93a767c27fae24710d8887f7662422e703591d3db8d27a0f31c985", "supported-languages/vue-sdk/globals.md": "e09ad5ac406491add483a83f7f25c5360aae898f23cdafa2c917ad766bffaf3d", "sdk/@reflag/vue-sdk/globals.md": "89e723c295657eb75b91412c62bda8288a818aff429e33297276be81899eb90d" } diff --git a/sdk/@reflag/browser-sdk/README.md b/sdk/@reflag/browser-sdk/README.md index ad5f5b9..4a92425 100644 --- a/sdk/@reflag/browser-sdk/README.md +++ b/sdk/@reflag/browser-sdk/README.md @@ -13,152 +13,596 @@ pagination: visible: true --- -# Reflag Browser SDK v2 +# Reflag Browser SDK -Client-side feature flags for [Reflag](https://reflag.com). +Basic client for [Reflag.com](https://reflag.com). If you're using React, you'll be better off with the Reflag React SDK. + +Reflag supports flag toggling, tracking flag usage, [collecting feedback](#qualitative-feedback-on-beta-flags) on flags, and [multivariate flags](#multivariate-flags) that return strings, numbers or JSON objects. This page covers SDK v2. -## Get started +## Install -```ts +First find your `publishableKey` under [environment settings](https://app.reflag.com/env-current/settings/app-environments) in Reflag. + +The package can be imported or used directly in a HTML script tag: + +A. Import module: + +```typescript import { ReflagClient } from "@reflag/browser-sdk"; -const reflag = new ReflagClient({ - publishableKey: "your-publishable-key", - user: { id: "alice", role: "manager" }, - company: { id: "acme", plan: "enterprise" }, +const user = { + id: 42, + role: "manager", +}; + +const company = { + id: 99, + plan: "enterprise", +}; + +const reflagClient = new ReflagClient({ publishableKey, user, company }); + +await reflagClient.initialize(); + +// `getFlag` returns `true` or `false`. Reading a flag automatically +// sends a "check" event for the "huddle" flag which is shown in the +// Reflag UI. +const isEnabled = reflagClient.getFlag("huddle"); + +if (isEnabled) { + // On usage, call `track` to let Reflag know that a user interacted with the flag. + // By default Reflag expects event names to align with the flag keys. + reflagClient.track("huddle"); + + // A multivariate flag returns a value that is configured in Reflag and + // dynamically picked out depending on the user/company. The default is + // used while flags load, or if the flag is missing or has a different type. + const { question } = reflagClient.getFlag("huddle-feedback", { + question: "Tell us what you think of Huddles", + }); + + // Use `requestFeedback` to create "Send feedback" buttons easily for specific + // flags. This is not related to `track` and you can call them individually. + reflagClient.requestFeedback({ flagKey: "huddle", title: question }); +} +``` + +B. Script tag (client-side directly in html) + +See [example/browser.html](https://github.com/reflagcom/javascript/tree/77027aca6454feb7d5c7c41cde65838ccd06acf3/packages/browser-sdk/example/browser.html) for a working example: + +```html + + +Loading... + +``` + +### Init options + +Supply these to the constructor call: + +```typescript +type Configuration = { + logger: console; // by default only logs warn/error, by passing `console` you'll log everything + apiBaseUrl?: "https://front.reflag.com"; + credentials?: "include" | "same-origin" | "omit"; // forwarded to fetch requests; "include" also enables credentials for the default EventSource transport + feedback?: undefined; // See FEEDBACK.md + enableTracking?: true; // set to `false` to stop sending track events and user/company updates to Reflag servers. Useful when you're impersonating a user + enableLiveFlagUpdates?: false; // Set to `true` to keep flags up to date over SSE (browser SDK default: false) + eventSourceFactory?: (url: string) => { + // Advanced: provide a custom EventSource-compatible transport + addEventListener: (type: string, cb: (event: any) => void) => void; + close: () => void; + }; + timeoutMs?: number; // Timeout for fetching flags (default: 5000ms) + staleWhileRevalidate?: boolean; // Revalidate in the background when cached flags turn stale to avoid latency in the UI (default: false) + staleTimeMs?: number; // at initialization time flags are loaded from the cache unless they have gone stale. Defaults to 0 which means the cache is disabled. Increase this in the case of a non-SPA + expireTimeMs?: number; // In case we're unable to fetch flags from Reflag, cached/stale flags will be used instead until they expire after `expireTimeMs`. Default is 30 days + offline?: boolean; // Use the SDK in offline mode. Offline mode is useful during testing and local development +}; +``` + +## Migrating from v1 + +- `getFlag()` returns the flag's value: replace `getFlag(key).isEnabled` with `getFlag(key)`. +- Move remote config to a multivariate flag and read it with a default, such as `getFlag("model", "quick")`. Existing remote config isn't converted automatically. +- Use the client's `track()` and `requestFeedback()` instead of the flag's. +- `setFlagOverride(key, value)` takes the value directly; pass `undefined` to remove an override. +- `getFlags()` returns all flag values and records a check for each. Use `getFlagResults()` to inspect flags without recording checks. Replace `getFeatures()` and `getFeature(key)` with `getFlags()` and `getFlag(key)`; the feature-named methods are removed. +- Opt-in entries from `getOptInFlags()` have a Boolean `value` instead of `isEnabled`. +- Remove `fallbackFlags` and pass a default to each read instead, such as `getFlag("huddle", true)`. +- If you bootstrap from the server, upgrade the Node SDK that produces the bootstrap data to v2 at the same time, and mark the flags the browser needs as not secret. Replace `bootstrappedFlags` with `bootstrappedState`. +- If you generate type declarations, regenerate them with the v2 CLI. + +See the [migration guide](https://docs.reflag.com/supported-languages/migrating-from-v1) for the full steps. + +## Migrating from Bucket SDK + +If you have been using the Bucket SDKs, the following list will help you migrate to Reflag SDK: + +- `Bucket*` classes, and types have been renamed to `Reflag*` (e.g. `BucketClient` is now `ReflagClient`) +- `Feature*` classes, and types have been renamed to `Feature*` (e.g. `Feature` is now `Flag`, `RawFeatures` is now `RawFlags`) +- All methods that contained `feature` in the name have been renamed to use the `flag` terminology (e.g. `getFeature` is `getFlag`) +- The `fallbackFeatures` property has been removed; pass a default to each `getFlag()` read instead +- `featureKey` has been renamed to `flagKey` in all methods that accepts that argument +- The new cookies that are stored in the client's browser are now `reflag-*` prefixed instead og `bucket-*` +- The `featuresUpdated` hook has been renamed to `flagsUpdated` +- The `checkIsEnabled` and `checkConfig` hooks have been removed, use `check` from now on + +To ease in transition to Reflag SDK, the `featuresUpdated` hook has been preserved as an alias for `flagsUpdated`. The `getFeature` and `getFeatures` aliases have been removed; use `getFlag` and `getFlags` instead. + +If you are running with strict Content Security Policies active on your website, you will need change them as follows: + +- `connect-src https://front.bucket.co` to `connect-src https://front.reflag.com` + +Finally, if you have customized the look & feel of the Feedback component, update `--bucket-feedback-*` CSS classes to `--reflag-feedback-*` + +## Flag toggles + +Reflag determines which flags are active for a given user/company. The user/company is given in the ReflagClient constructor. + +If you supply `user` or `company` objects, they must include at least the `id` property otherwise they will be ignored in their entirety. +In addition to the `id`, you must also supply anything additional that you want to be able to evaluate flag targeting rules against. + +Attributes cannot be nested (multiple levels) and must be either strings, integers or booleans. +Some attributes are special and used in Reflag UI: + +- `name` -- display name for `user`/`company`, +- `email` -- is accepted for `user`s and will be highlighted in the Reflag UI if available, +- `avatar` -- can be provided for both `user` and `company` and should be an URL to an image. + +```ts +const reflagClient = new ReflagClient({ + publishableKey, + user: { + id: "user_123", + name: "John Doe", + email: "john@acme.com", + avatar: "https://example.com/images/udsy6363", + }, + company: { + id: "company_123", + name: "Acme, Inc", + avatar: "https://example.com/images/31232ds", + }, }); -await reflag.initialize(); +``` -const enabled = reflag.getFlag("huddles"); // boolean, implicit false -const settings = reflag.getFlag("assistant-settings", { model: "quick" }); -// settings: { model: string } +To retrieve a flag's value, use `getFlag(key: string)`: + +```ts +const huddle = reflagClient.getFlag("huddle"); +// true +``` + +Without a default, `getFlag()` expects a Boolean and returns `false` if the flag is missing or isn't a Boolean. To read a [multivariate flag](#multivariate-flags), pass a default as the second argument. + +You can use `getFlags()` to retrieve the values of all flags currently. + +```ts +const flags = reflagClient.getFlags(); +// { +// huddle: true, +// "huddle-settings": { maxParticipants: 10 } +// } +``` -if (enabled) { - // Application usage tracking is separate from reading the flag. - await reflag.track("Started huddle"); +`getFlags()` is meant to be more low-level than `getFlag()` and it typically used +by down-stream clients. + +Note that each `getFlag()` read automatically generates a `check` event, and `getFlags()` generates a `check` event for every flag it returns. To inspect the evaluated flags without generating `check` events, for example for debugging, use `getFlagResults()`. + +## End-user opt-in + +If a flag has end-user opt-in enabled in Reflag, you can list the opt-in options for the current context and set or cancel opt-in for the current user or company. + +```ts +const optInFlags = reflagClient.getOptInFlags(); +// [{ key, name, description, value, userOptedIn, companyOptedIn, isOptedIn }] +// `value` is a Boolean that says whether the flag is on for the current context + +try { + const response = await reflagClient.setOptIn("huddle", { + optedIn: true, // Use false to cancel this scope's opt-in. + scope: "user", // Use "company" to change the current company's opt-in. + }); + if (!response?.ok) { + console.error("Could not update opt-in"); + } +} catch (error) { + console.error("Could not update opt-in", error); } ``` -Use only a **publishable** key in a browser. Secret keys belong on your server. +By default, `setOptIn()` changes the opt-in for the current user, so the current context must include a `user.id`. To manage the current company's opt-in instead, pass `scope: "company"`; the context must then include a `company.id`. -## Read flags +User and company opt-ins are managed independently. Setting `optedIn` to `false` removes the opt-in only for the selected scope. For example, cancelling a user's opt-in does not change the company's opt-in for the same flag. + +`setOptIn` returns a promise so you can wait for the new membership state to be synchronized. On success, it resolves after the refreshed flag state has been applied locally, the requested membership change has been confirmed, and `flagsUpdated` listeners have been notified when flags change. + +The promise resolves to a `Response`, or `undefined` if skipped due to invalid input, offline mode etc. Check `response?.ok` for success. + +The `description` comes from the dedicated SDK-facing opt-in description configured in Reflag. + +When using bootstrapped flags, the first `getOptInFlags()` or `getIsLoadingOptInFlags()` call requests a flags refresh. The list call returns the currently available list synchronously, and the loading getter returns `true` until that refresh succeeds or fails. Normal initialization also exposes loading through the client's state. + +Listen for `optInFlagsLoadingUpdated` to update UI when this loading state changes. `flagsUpdated` is emitted when a successful refresh updates the list. + +If fetching opt-in metadata fails, loading ends without exposing an error. Call `reflagClient.refresh()` to retry. + +## Multivariate flags + +Multivariate flags are a dynamic and flexible approach to configuring flag behavior outside of your app – without needing to re-deploy it. + +Instead of a Boolean, a multivariate flag returns one of several values, which can be strings, numbers or JSON objects. The values are managed from within Reflag, similar to the way access to flags is managed, and different users/companies can get different values. + +Read a multivariate flag by passing a default. The default sets the return type: ```ts -reflag.getFlag("huddles"); // true or false -reflag.getFlag("model", "quick"); // string -reflag.getFlag("limit", 10); // number -reflag.getFlag("settings", { model: "quick" }); // { model: string } -reflag.getFlag("anything", null); // any JSON value +reflagClient.getFlag("model", "quick"); // string +reflagClient.getFlag("limit", 10); // number +reflagClient.getFlag("assistant", { maxTokens: 1000, model: "gpt-3.5" }); +// { maxTokens: 10000, model: "gpt-3.5-beta1" } +reflagClient.getFlag("anything", null); // any JSON value ``` -Without a default, a read expects a Boolean and returns `false` if the flag is missing or isn't a Boolean. With a default, the read returns the default while flags load, or if the flag is missing or has a different JSON type. Pass `null` to accept any JSON value, then check its type before using it. +`getFlag()` returns the default while flags load, or if the flag is missing or has a different JSON type, so make sure your default is a value your application can use. Pass `null` to accept any JSON value, then check its type before using it. The SDK doesn't check object fields or fill in missing fields from your default. -The SDK doesn't check object fields or fill in missing fields from your default. +Just as Boolean flags, each `getFlag()` read of a multivariate flag automatically generates a `check` event. -`getFlags()` returns all flag values as an object. +Remote config from v1 isn't converted automatically. Move each remote config to a multivariate flag; see [Migrating from v1](#migrating-from-v1). -## Checks +## Server-side rendering and bootstrapping -Each read records a check. Reflag uses checks for exposure counts, and they show up in the Event Log, which helps with debugging. `getFlags()` records a check for every flag it returns. +For server-side rendered applications, you can render immediately with pre-fetched flag data by bootstrapping the client. -Set `enableTracking: false` to stop sending checks and events, or `offline: true` to skip all requests. `await reflag.stop()` sends pending events and closes the client's connections. +### Init options bootstrapped -## Context, refresh and cache +```typescript +type Configuration = { + logger: console; // by default only logs warn/error, by passing `console` you'll log everything + apiBaseUrl?: "https://front.reflag.com"; + credentials?: "include" | "same-origin" | "omit"; // forwarded to fetch requests; "include" also enables credentials for the default EventSource transport + feedback?: undefined; // See FEEDBACK.md + enableTracking?: true; // set to `false` to stop sending track events and user/company updates to Reflag servers. Useful when you're impersonating a user + offline?: boolean; // Use the SDK in offline mode. Offline mode is useful during testing and local development + bootstrappedState?: { + protocolVersion: 2; + context: ReflagContext; + flags: RawFlags; + flagStateVersion?: number; + }; // Pre-fetched evaluated state from server-side (see Server-side rendering section) +}; +``` + +### Using `bootstrappedState` + +Use the Node SDK's `getFlagsForBootstrap()` method to pre-fetch evaluated state server-side, then pass the returned object directly to the browser client: + +```typescript +// Server-side: Get bootstrapped state using Node SDK +import { ReflagClient as ReflagNodeClient } from "@reflag/node-sdk"; + +const serverClient = new ReflagNodeClient({ secretKey: "your-secret-key" }); +await serverClient.initialize(); + +// Pass the bootstrapped state to the client using your framework's preferred method. +// Evaluate flags for each request, so pages get the current flags for the current user. +// Escape `<` so flag values or attributes can't close the script tag. +app.get("/", (req, res) => { + const bootstrappedState = serverClient.getFlagsForBootstrap({ + user: { id: "user123", name: "John Doe", email: "john@acme.com" }, + company: { id: "company456", name: "Acme Inc", plan: "enterprise" }, + }); + const serialized = JSON.stringify(bootstrappedState).replace(/var bootstrappedState = ${serialized}; +
`, + ), + ); +}); + +// Client-side: Initialize with pre-fetched evaluated state +import { ReflagClient } from "@reflag/browser-sdk"; + +const reflagClient = new ReflagClient({ + publishableKey: "your-publishable-key", + bootstrappedState, // Contains context, flags, and optional flagStateVersion +}); + +await reflagClient.initialize(); +const isEnabled = reflagClient.getFlag("huddle"); +``` + +The `bootstrappedState` object contains: + +- `protocolVersion`: the bootstrap format version +- `context`: the evaluation context used on the server +- `flags`: the evaluated raw flags +- `flagStateVersion`: an optional version used to avoid redundant live-update refreshes immediately after bootstrapping + +`getFlagsForBootstrap()` only includes flags that are marked as not secret (`secret: false`). Secret flags can still be read on the server. Because the browser can read the bootstrapped context, include only browser-safe attributes in it. + +Use `@reflag/node-sdk` v2 to produce the bootstrap data. The Browser SDK v2 doesn't accept bootstrap data from Node SDK v1. + +If a bootstrapped application requests opt-in flags, the browser SDK performs one flags refresh. Applications that do not request opt-in data do not make this request. + +The `bootstrappedFlags` option has been removed. If you previously used it, migrate like this: + +```typescript +// Before +const { flags } = serverClient.getFlagsForBootstrap(context); +const client = new ReflagClient({ + publishableKey, + user: context.user, + company: context.company, + other: context.other, + bootstrappedFlags: flags, +}); + +// After +const bootstrappedState = serverClient.getFlagsForBootstrap(context); +const client = new ReflagClient({ + publishableKey, + bootstrappedState, +}); +``` + +{% hint style="info" %} +After bootstrapping, any live flag updates are fetched directly by the browser SDK from Reflag using the browser-visible context. If your bootstrapped snapshot depends on server-only or secret context that is not available in the browser, later live refreshes may differ. In that case, keep `enableLiveFlagUpdates` disabled. + +Requesting opt-in flags also triggers a browser-side refresh, even when `enableLiveFlagUpdates` is disabled. +{% endhint %} + +This eliminates loading states and removes the initial render's dependency on the flags API. + +## Context management + +### Updating user/company/other context + +Attributes given for the user/company/other context in the ReflagClient constructor can be updated for use in flag targeting evaluation with the `updateUser()`, `updateCompany()` and `updateOtherContext()` methods. +They return a promise which resolves once the flags have been re-evaluated follow the update of the attributes. + +{% hint style="info" %} +{% endhint %} + +### setContext() + +The `setContext()` method allows you to replace the entire context (user, company, and other attributes) at once. This method is useful when you need to completely change the context, such as when a user logs in or switches between different accounts. ```ts -await reflag.updateUser({ role: "admin" }); -await reflag.updateCompany({ plan: "enterprise" }); -await reflag.updateOtherContext({ region: "eu" }); -await reflag.setContext({ - user: { id: "bob" }, - company: { id: "other-company" }, +await reflagClient.setContext({ + user: { + id: "new-user-123", + name: "Jane Doe", + email: "jane@example.com", + role: "admin", + }, + company: { + id: "company-456", + name: "New Company Inc", + plan: "enterprise", + }, + other: { + feature: "beta", + locale: "en-US", + }, }); -await reflag.refresh(); ``` -`setContext()` replaces the whole context. The update methods merge new attributes into the user, company or other context. Users and companies need an `id`. While flags for a new context load, reads return their defaults. +The method will: + +- Replace the entire context with the new values +- Re-evaluate all flags based on the new context +- Update the user and company information on Reflag servers +- Return a promise that resolves once the flags have been re-evaluated + +### getContext() + +The `getContext()` method returns the current context being used for flag evaluation. This is useful for debugging or when you need to inspect the current user, company, and other attributes. + +```ts +const currentContext = reflagClient.getContext(); +console.log(currentContext); +// { +// user: { id: "user-123", name: "John Doe", email: "john@example.com" }, +// company: { id: "company-456", name: "Acme Inc", plan: "enterprise" }, +// other: { locale: "en-US", feature: "beta" } +// } +``` + +The returned context object contains: + +- `user`: Current user attributes (if any) +- `company`: Current company attributes (if any) +- `other`: Additional context attributes not related to user or company + +## Toolbar + +The Reflag Toolbar is great for toggling flags on/off for yourself to ensure that everything works both when a flag is on and when it's off. + +Toolbar screenshot + +The toolbar will automatically appear on `localhost`. However, it can also be incredibly useful in production. +You have full control over when it appears through the `toolbar` configuration option passed to the `ReflagClient`. + +You can pass a simple boolean to force the toolbar to appear/disappear: + +```typescript +const client = new ReflagClient({ + // show the toolbar even in production if the user is an internal/admin user + toolbar: user?.isInternal, + ... +}); +``` + +You can also configure the position of the toolbar on the screen: + +```typescript +const client = new ReflagClient({ + toolbar: { + show: true; + position: { + placement: "bottom-left", + offset: {x: "1rem", y: "1rem"} + } + } + ... +}) +``` + +See [the reference](../../../supported-languages/browser-sdk/globals.md#toolbaroptions) for details. + +## Qualitative feedback on beta flags -Constructor options include: +Reflag can collect qualitative feedback from your users in the form of a [Customer Satisfaction Score](https://en.wikipedia.org/wiki/Customer_satisfaction) and a comment. -| Option | Behavior | -| ------------------------------- | -------------------------------------------------------------------------------------------------- | -| `apiBaseUrl`, `appBaseUrl` | API origin and toolbar/feedback links | -| `credentials` | Fetch credentials mode | -| `timeoutMs` | Flag request timeout; default 5,000 ms | -| `staleTimeMs` | Fresh-cache duration; default 0 | -| `staleWhileRevalidate` | Serve stale cached state while revalidating; default false | -| `expireTimeMs` | Cache expiry; default 30 days | -| `storage` | Optional async storage adapter | -| `enableLiveFlagUpdates` | Update flags as soon as they change in Reflag; default `false` in Browser, `true` in React and Vue | -| `eventSourceFactory` | Custom EventSource implementation for live updates | -| `trackingQueue` | How long to batch events (`flushDelayMs`) and the batch size (`maxSize`) | -| `logger`, `toolbar`, `feedback` | Logging, toolbar and feedback options | +### Automated feedback collection -Flags are cached in the browser. If a refresh fails, the client keeps the last values it received. +The Reflag Browser SDK comes with automated feedback collection mode enabled by default, which lets the Reflag service ask your users for feedback for relevant flags just after they've used them. -## Overrides and toolbar +{% hint style="info" %} +To get started with automatic feedback collection, make sure you've set `user` in the `ReflagClient` constructor. +{% endhint %} + +Automated feedback surveys work even if you're not using the SDK to send events to Reflag. +It works because the Reflag Browser SDK maintains a live connection to Reflag's servers and can automatically show a feedback prompt whenever the Reflag servers determines that an event should trigger a prompt - regardless of how this event is sent to Reflag. + +You can find all the options to make changes to the default behavior in the [Reflag feedback documentation](../../../supported-languages/browser-sdk/feedback.md). + +### Reflag feedback UI + +Reflag can assist you with collecting your user's feedback by offering a pre-built UI, allowing you to get started with minimal code and effort. + +[Read the Reflag feedback UI documentation](../../../supported-languages/browser-sdk/feedback.md) + +### Reflag feedback SDK + +Feedback can be submitted to Reflag using the SDK: ```ts -reflag.setFlagOverride("release", true); -reflag.setFlagOverride("settings", { model: "local" }); -reflag.setFlagOverride("nullable-settings", null); // override with null -reflag.setFlagOverride("release", undefined); // remove the override +reflagClient.feedback({ + flagKey: "my-flag-key", // String (required), copy from Flag feedback tab + score: 5, // Number: 1-5 (optional) + comment: "Absolutely stellar work!", // String (optional) +}); ``` -Overrides apply on top of the values from Reflag and are saved in the browser. The toolbar appears on localhost by default and lets you override Boolean flags. Opening it doesn't record checks. +### Reflag feedback API + +If you are not using the Reflag Browser SDK, you can still submit feedback using the HTTP API. -## Server bootstrap +See details in [Feedback HTTP API](https://docs.reflag.com/api/http-api#post-feedback) -Get the bootstrap data from the Node.js SDK on your server: +## Tracking flag usage + +The `track` function lets you send events to Reflag to denote flag usage. +By default Reflag expects event names to align with the flag keys, but +you can customize it as you wish. ```ts -const bootstrappedState = serverClient.getFlagsForBootstrap(context); -// Serialize this into the page with your framework's usual mechanism. +reflagClient.track("huddle", { voiceHuddle: true }); ``` +## Event listeners + +Event listeners allow for capturing various events occurring in the `ReflagClient`. This is useful to build integrations with other system or for various debugging purposes. The available events are: + +- `check`: Your code read a flag with `getFlag()` or `getFlags()` +- `flagsUpdated`: Flags were updated. Either because they were loaded as part of initialization or because the user/company updated +- `optInFlagsLoadingUpdated`: The opt-in flag loading state changed +- `user`: User information updated (similar to the `identify` call used in tracking terminology) +- `company`: Company information updated (sometimes to the `group` call used in tracking terminology) +- `track`: Track event occurred. + +Use the `on()` method to add an event listener to respond to certain events. See the API reference for details on each hook. + ```ts -const reflag = new ReflagClient({ publishableKey, bootstrappedState }); -await reflag.initialize(); -const enabled = reflag.getFlag("release"); +import { ReflagClient, CheckEvent, RawFlags } from "@reflag/browser-sdk"; + +const client = new ReflagClient({ + // options +}); + +// or add the hooks after construction: +const unsub = client.on("check", (check: CheckEvent) => + console.log(`Check event ${check}`), +); +// use the returned function to unsubscribe, or call `off()` with the same arguments again +unsub(); ``` -Pass the whole object, not just its `flags`. Flags are then available immediately, without a network request. With live updates on, later refreshes evaluate flags using the browser's context, so values that depend on server-only attributes can change. Set `enableLiveFlagUpdates: false` if they must not. +## Zero PII -## End-user opt-in +The Reflag Browser SDK doesn't collect any metadata and HTTP IP addresses are _not_ being stored. + +For tracking individual users, we recommend using something like database ID as userId, as it's unique and doesn't include any PII (personal identifiable information). If, however, you're using e.g. email address as userId, but prefer not to send any PII to Reflag, you can hash the sensitive data before sending it to Reflag: ```ts -const options = reflag.getOptInFlags(); -const loading = reflag.getIsLoadingOptInFlags(); -try { - const response = await reflag.setOptIn("huddles", { optedIn: true }); - if (!response?.ok) console.error("Could not update opt-in"); -} catch (error) { - console.error("Could not update opt-in", error); -} +import { ReflagClient } from "@reflag/browser-sdk"; +import { sha256 } from "crypto-hash"; + +const reflagClient = new ReflagClient({ + publishableKey, + user: { id: await sha256("john_doe") }, +}); +await reflagClient.initialize(); ``` -Each entry includes the flag's `key`, `name`, `description`, a Boolean `value`, and whether the user or company has opted in. User and company opt-ins are independent, and the user or company you opt in must have an `id`. `setOptIn()` resolves once the new flag values have loaded. Check `response.ok` and catch errors, as in the example. If the list fails to load, it stays empty; call `reflag.refresh()` to retry. +## Use of cookies -## Tracking, feedback and events +The Reflag Browser SDK uses a couple of cookies to support automated feedback surveys. These cookies are not used for tracking purposes and thus should not need to appear in cookie consent forms. -Use `track(eventName, attributes?)`, `feedback(payload)` and `requestFeedback({ flagKey, ... })` on the client. See [FEEDBACK.md](../../../supported-languages/browser-sdk/feedback.md) for the feedback UI and prompting configuration. +The two cookies are: -`on(event, handler)` returns an unsubscribe function. Events include `stateUpdated`, `flagsUpdated`, `check`, `track`, `user`, `company` and `optInFlagsLoadingUpdated`. +- `reflag-prompt-${userId}`: store the last automated feedback prompt message ID received to avoid repeating surveys +- `reflag-token-${userId}`: caching a token used to connect to Reflag's live messaging infrastructure that is used to deliver automated feedback surveys in real time. -## Migrating from v1 +## TypeScript -- `getFlag()` returns the flag's value: replace `getFlag(key).isEnabled` with `getFlag(key)`. -- Move remote config to a multivariate flag and read it with a default, such as `getFlag("model", "quick")`. Existing remote config isn't converted automatically. -- Use the client's `track()` and `requestFeedback()` instead of the flag's. -- `setFlagOverride(key, value)` takes the value directly; pass `undefined` to remove an override. -- `getFlags()` returns all flag values and records a check for each. Replace `getFeatures()` and `getFeature(key)` with `getFlags()` and `getFlag(key)`; the feature-named methods are removed. -- Opt-in entries from `getOptInFlags()` have a Boolean `value` instead of `isEnabled`. -- Remove `fallbackFlags` and pass a default to each read instead, such as `getFlag("huddles", true)`. -- If you bootstrap from the server, upgrade the Node SDK that produces the bootstrap data to v2 at the same time. -- If you generate type declarations, regenerate them with the v2 CLI. +Types are bundled together with the library and exposed automatically when importing through a package manager. -See the [migration guide](https://docs.reflag.com/supported-languages/migrating-from-v1) for the full steps. +## Content Security Policy (CSP) + +If you are running with strict Content Security Policies active on your website, you will need to enable these directives in order to use the SDK: + +| Directive | Values | Reason | +| ----------- | ---------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | +| connect-src | [https://front.reflag.com](https://front.reflag.com) | API requests plus Server-Sent Events for live flag updates and automated feedback surveys. | +| style-src | 'unsafe-inline' | The feedback UI is styled with inline styles. Not having this directive results unstyled HTML elements. | + +If you are including the Reflag tracking SDK with a ` ``` -Provider options forward Browser settings, including cache/storage, offline/tracking, feedback, toolbar, credentials and API origins. `logger` takes precedence over `debug`. Live updates default to true; disable with `:enable-live-flag-updates="false"`. For an ordinary client-only Nuxt provider, wrap it in ``. +If using Nuxt, wrap `` in ``. `` only renders client-side currently. -## `useFlag(key, defaultValue?)` +### 2. Use `useFlag` to get flag status ```vue ``` -`useFlag()` returns a ref. Vue unwraps it in templates; use `.value` in script. +`useFlag()` returns a ref. Vue unwraps it in templates; use `.value` in script. See [useFlag()](#useflag) for a full example + +## Setting context + +Reflag determines which flags are active for a given `user`, `company`, or `other` context. +You can pass these to the `ReflagProvider` using the `context` prop. + +### Using the `context` prop + +```vue + + + +``` + +### Legacy individual props (deprecated) + +For backward compatibility, you can still use individual props, but these are deprecated and will be removed in the next major version: + +```vue + + + +``` + +> [!Important] +> The `user`, `company`, and `otherContext` props are deprecated. Use the `context` prop instead, which provides the same functionality in a more structured way. + +### Context requirements + +If you supply `user` or `company` objects, they must include at least the `id` property otherwise they will be ignored in their entirety. +In addition to the `id`, you must also supply anything additional that you want to be able to evaluate flag targeting rules against. +Attributes which are not properties of the `user` or `company` can be supplied using the `other` property. + +Attributes cannot be nested (multiple levels) and must be either strings, numbers or booleans. +A number of special attributes exist: + +- `name` -- display name for `user`/`company`, +- `email` -- the email of the user, +- `avatar` -- the URL for `user`/`company` avatar image. + +To retrieve a flag's value, use the `useFlag(key: string)` hook (described in a section below). + +Note that each `useFlag()` read automatically generates a `check` event. + +## Multivariate flags + +Multivariate flags are a dynamic and flexible approach to configuring flag behavior outside of your app – without needing to re-deploy it. + +Instead of a Boolean, a multivariate flag returns one of several values, which can be strings, numbers or JSON objects. The values are managed from within Reflag, similar to the way access to flags is managed, and different users/companies can get different values. + +### Get started with multivariate flags + +Read a multivariate flag by passing a default. The default sets the type of the returned ref: ```ts -useFlag("release"); // ShallowRef +const settings = useFlag("huddle-settings", { + maxTokens: 1000, + model: "gpt-3.5", +}); + +// settings.value: { maxTokens: 10000, model: "gpt-3.5-beta1" } + useFlag("model", "quick"); // ShallowRef useFlag("limit", 10); // ShallowRef -useFlag("settings", { model: "quick" }); // ShallowRef<{ model: string }> useFlag("anything", null); // ShallowRef, any JSON value ``` -Without a default, a read expects a Boolean and returns `false` if the flag is missing or isn't a Boolean. With a default, the read returns the default while flags load, or if the flag is missing or has a different JSON type. Pass `null` to accept any JSON value, then check its type before using it. +`useFlag()` returns the default while flags load, or if the flag is missing or has a different JSON type, so make sure your default is a value your application can use. Pass `null` to accept any JSON value, then check its type before using it. The SDK doesn't check object fields or fill in missing fields from your default. -The SDK doesn't check object fields or fill in missing fields from your default. +Without a default, `useFlag()` expects a Boolean and returns `false` if the flag is missing or isn't a Boolean. -The ref updates when flag values change. Each read records a check. Reflag uses checks for exposure counts, and they show up in the Event Log, which helps with debugging. +Note that, similar to Boolean flags, each read of a multivariate flag automatically generates a `check` event. -## Loading, context and client access +Remote config from v1 isn't converted automatically. Move each remote config to a multivariate flag; see [Migrating from v1](#migrating-from-v1). -- `useIsLoading()` returns a Boolean ref for provider loading; use the `#loading` slot or `initialLoading` to control what renders while flags load. -- `useUpdateUser()`, `useUpdateCompany()` and `useUpdateOtherContext()` return functions that merge new attributes into the current context. -- `useClient()` exposes the Browser client, including `setContext(context)`, `refresh()` and `setFlagOverride(key, value)`. Pass `undefined` to remove an override. -- `getFlags()` returns all flag values and records a check for each. -- `useOnEvent(type, handler, client?)` subscribes on mount and unsubscribes on unmount. An external client may be supplied explicitly. +## Type safety -While flags for a new context load, reads return their defaults. +You can register your flags to get autocompletion for their keys and type checks for the defaults you pass: -## Bootstrap +```ts +import "@reflag/vue-sdk"; -Get the bootstrap data from the Node.js SDK on your server, and serialize it into the page with your framework's usual mechanism: +declare module "@reflag/vue-sdk" { + interface Flags { + huddles: boolean; + "huddle-settings": { maxParticipants: number }; + } +} +``` -```ts -const flags = serverClient.getFlagsForBootstrap(context); +The checks happen at compile time only. To generate the declarations, run `npx reflag flags types` with the `vue` format. + +## `` component + +The `` initializes the Reflag SDK, fetches flags and starts listening for automated feedback survey events. The component can be configured using a number of props: + +- `publishableKey` is used to connect the provider to an _environment_ on Reflag. Find your `publishableKey` under [environment settings](https://app.reflag.com/env-current/settings/app-environments) in Reflag, +- `context`: An object containing `user`, `company`, and `other` properties that make up the evaluation context used to determine if a flag is enabled or not. `company` and `user` contexts are automatically transmitted to Reflag servers so the Reflag app can show you which companies have access to which flags etc. +- `company`, `user` and `otherContext` (deprecated): Individual props for context. These are deprecated in favor of the `context` prop and will be removed in the next major version. + + > [!Note] + > If you specify `company` and/or `user` they must have at least the `id` property, otherwise they will be ignored in their entirety. You should also supply anything additional you want to be able to evaluate flag targeting against, + +- `timeoutMs`: Timeout in milliseconds when fetching flags from the server, +- `staleWhileRevalidate`: If set to `true`, stale flags will be returned while refetching flags in the background, +- `expireTimeMs`: If set, flags will be cached between page loads for this duration (in milliseconds), +- `staleTimeMs`: Maximum time (in milliseconds) that stale flags will be returned if `staleWhileRevalidate` is true and new flags cannot be fetched. + +- `enableTracking`: Set to `false` to stop sending tracking events and user/company updates to Reflag. Useful when you're impersonating a user (defaults to `true`), +- `apiBaseUrl`: Optional base URL for the Reflag API. This also controls the SSE origin used for live flag updates and automated feedback, +- `credentials`: Optional fetch credentials mode. Set to `"include"` when proxying through your backend and authenticating with cookies; this also enables credentials for live-update SSE connections. +- `appBaseUrl`: Optional base URL for the Reflag application. Use this to override the default app URL, + +- `debug`: Set to `true` to enable debug logging to the console. If both `logger` and `debug` are provided, `logger` takes precedence, +- `logger`: Optional custom logger implementation (`debug`, `info`, `warn`, `error`) used by the underlying client, +- `toolbar`: Optional [configuration](../../../supported-languages/browser-sdk/globals.md#toolbaroptions) for the Reflag toolbar, +- `feedback`: Optional configuration for feedback collection + +### Loading states + +ReflagProvider lets you define a template to be shown while ReflagProvider is initializing: + +```vue + ``` +If you want more control over loading screens, `useIsLoading()` returns a `Ref` which you can use to customize the loading experience. + +## `` component + +The `` component is a specialized version of `ReflagProvider` designed for server-side rendering and preloaded flag scenarios. It uses pre-fetched flags for the initial render, resulting in faster initial page loads and better SSR compatibility. + +### Usage + ```vue - - - + + + ``` -Pass the whole object to `ReflagBootstrappedProvider`. Flags are then available immediately, without a network request. With live updates on, later refreshes evaluate flags using the browser's context, so values that depend on server-only attributes can change. Set `:enable-live-flag-updates="false"` if they must not. +### Getting bootstrapped flags -To use a client you create yourself, pass it to `ReflagClientProvider`. Your app is then responsible for initializing and stopping it. +You'll typically generate the `bootstrappedFlags` object on your server using the Node.js SDK. Pass the full object returned by `getFlagsForBootstrap()` directly to ``. It contains: -## Opt-in, tracking and feedback +- `protocolVersion`: the bootstrap format version +- `context`: the evaluation context used on the server +- `flags`: the evaluated raw flags +- `flagStateVersion`: an optional version used to avoid redundant live-update refreshes immediately after bootstrapping -```ts -const { flags, isLoading, setOptIn } = useOptInFlags(); // flags and isLoading are refs -try { - const response = await setOptIn("huddles", { optedIn: true }); - if (!response?.ok) console.error("Could not update opt-in"); -} catch (error) { - console.error("Could not update opt-in", error); -} +`getFlagsForBootstrap()` only includes flags that are marked as not secret (`secret: false`). Secret flags can still be read on the server. Because the browser can read the bootstrapped context, include only browser-safe attributes in it. + +Use `@reflag/node-sdk` v2 to produce the bootstrap data. The Vue SDK v2 doesn't accept bootstrap data from Node SDK v1. + +With `ReflagBootstrappedProvider`, `useOptInFlags()` requests a flags refresh on first use. It reports `isLoading: true` until that refresh settles. + +Here's an example using the Node.js SDK: + +```js +// server.js (Node.js/SSR) +import { ReflagClient } from "@reflag/node-sdk"; + +const client = new ReflagClient({ + secretKey: "your-secret-key", // Use secret key on server +}); +await client.initialize(); + +// Fetch flags for specific context +const context = { + user: { id: "user123", name: "John Doe", email: "john@acme.com" }, + company: { id: "company456", name: "Acme Inc", plan: "enterprise" }, +}; + +const bootstrappedFlags = client.getFlagsForBootstrap(context); + +// Pass to your Vue app +``` + +### ReflagBootstrappedProvider Props + +`ReflagBootstrappedProvider` accepts all the same props as `ReflagProvider` except: + +- `flags`: The pre-fetched bootstrapped state object containing `protocolVersion`, `context`, evaluated `flags`, and an optional `flagStateVersion` +- All other props available in `ReflagProvider` are supported except `context`, `user`, `company`, and `otherContext` (which are extracted from `flags.context`) +If the `flags` prop is not provided or is undefined, the provider will not initialize the client and will render in a non-loading state. + +{% hint style="info" %} +After bootstrapping, any live flag updates are fetched directly by the browser SDK from Reflag using the browser-visible context. If your bootstrapped snapshot depends on server-only or secret context that is not available in the browser, later live refreshes may differ. In that case, keep `enableLiveFlagUpdates` disabled. + +Requesting opt-in flags also triggers a browser-side refresh, even when `enableLiveFlagUpdates` is disabled. +{% endhint %} + +## `` component + +The `` is a lower-level component that accepts a pre-initialized `ReflagClient` instance. This is useful for advanced use cases where you need full control over client initialization or want to share a client instance across multiple parts of your application. + +### ReflagClientProvider Usage + +```vue + + + +``` + +### ReflagClientProvider Props + +The `ReflagClientProvider` accepts the following props: + +- `client`: A pre-initialized `ReflagClient` instance + +### Slots + +- `loading`: Optional slot to show while the client is initializing (same as `ReflagProvider`) + +> [!Note] +> Most applications should use `ReflagProvider` or `ReflagBootstrappedProvider` instead of `ReflagClientProvider`. Only use this component when you need the advanced control it provides. + +## Hooks + +### `useFlag()` + +Returns the value of a given flag for the current context as a ref. The composable provides access to flags and their values. + +`useFlag(key)` returns a `ShallowRef`. With a default, `useFlag(key, defaultValue)` returns a ref whose type comes from the default; see [Multivariate flags](#multivariate-flags). The ref updates when flag values change. Use `useTrack()` to send a track event when the flag is used, `useRequestFeedback()` to open up a feedback dialog, and `useIsLoading()` to manage loading state. + +Example: + +```vue + + + ``` -Each entry includes the flag's `key`, `name`, `description`, a Boolean `value`, and whether the user or company has opted in. User and company opt-ins are independent, and the user or company you opt in must have an `id`. `setOptIn()` resolves once the new flag values have loaded. Check `response.ok` and catch errors, as in the example. If the list fails to load, it stays empty; call `useClient().refresh()` to retry. +See the reference docs for details. -Set `enableTracking: false` to stop sending checks and events, or `offline` to skip all requests. See [Browser feedback documentation](../../../supported-languages/browser-sdk/feedback.md) for prompting/UI options. +### `useOptInFlags()` -## Optional key registration +Use this composable to build an end-user opt-in UI for flags where opt-in is enabled in Reflag. It returns the opt-in flags, their loading state and a `setOptIn` function. -```ts -import "@reflag/vue-sdk"; -declare module "@reflag/vue-sdk" { - interface Flags { - huddles: boolean; - "huddle-settings": { maxParticipants: number }; +```vue + + + ``` -Registered flags get autocompletion for their keys and type checks for the defaults you pass. The checks happen at compile time only. To generate the declarations, run `npx reflag flags types` with the `vue` format. +Each entry includes the flag's `key`, `name`, `description`, a Boolean `value` that says whether the flag is on, and whether the user (`userOptedIn`) or company (`companyOptedIn`) has opted in. + +By default, `setOptIn` changes the opt-in for the current user, so the current context must include a `user.id`. To manage the current company's opt-in instead, pass `scope: "company"`; the context must then include a `company.id`. + +User and company opt-ins are managed independently. Setting `optedIn` to `false` removes the opt-in only for the selected scope. For example, cancelling a user's opt-in does not change the company's opt-in for the same flag. + +`setOptIn` returns a promise so you can wait for the new membership state to be synchronized. On success, it resolves after the refreshed flag state has been applied locally, the requested membership change has been confirmed, and subscribers have been notified when flags change. Vue may not have committed the resulting render yet. + +The promise resolves to a `Response`, or `undefined` if skipped due to invalid input, offline mode etc. Check `response?.ok` for success. + +`useOptInFlags()` returns `{ flags, isLoading, setOptIn }`, where `flags` and `isLoading` are computed refs. The separate `useSetOptIn()` composable still works but is deprecated. With `ReflagBootstrappedProvider`, it fetches opt-in metadata on first use and reports `isLoading: true` until that refresh succeeds or fails. + +If fetching opt-in metadata fails, loading ends without exposing an error. Call `client.refresh()` on the client returned by `useClient()` to retry. + +With a regular `ReflagProvider`, opt-in metadata arrives as part of the normal initial flags request, so `useOptInFlags().isLoading` remains `false`. Use the general `useIsLoading()` composable or the provider's loading slot for that initial loading state. + +### `useTrack()` + +`useTrack()` returns a function which lets you send custom events to Reflag. It takes a string argument with the event name and optionally an object with properties to attach the event. + +By default Reflag expects event names to align with the flag keys, so to track usage of a flag, call `track` with the flag key as the event name. + +```vue + + + +``` + +### `useRequestFeedback()` + +Returns a function that lets you open up a dialog to ask for feedback on a specific feature. This is useful for collecting targeted feedback about specific features. + +See [Automated Feedback Surveys](https://docs.reflag.com/product-handbook/live-satisfaction) for how to do this automatically, without code. + +When using the `useRequestFeedback` you must pass the flag key to `requestFeedback`. +The example below shows how to use `position` to ensure the popover appears next to the "Give feedback!" button. + +```vue + + + +``` + +See the [Feedback Documentation](https://github.com/reflagcom/javascript/blob/77027aca6454feb7d5c7c41cde65838ccd06acf3/packages/browser-sdk/FEEDBACK.md#manual-feedback-collection) for more information on `requestFeedback` options. + +### `useSendFeedback()` + +Returns a function that lets you send feedback to Reflag. This is useful if you've manually collected feedback through your own UI and want to send it to Reflag. + +```vue + + + +``` + +### `useUpdateUser()`, `useUpdateCompany()` and `useUpdateOtherContext()` + +These composables return functions that let you update the attributes for the currently set user, company, or other context. Updates to user/company are stored remotely and affect flag targeting, while "other" context updates only affect the current session. + +```vue + + + +``` + +Note: To change the `user.id` or `company.id`, you need to update the props passed to `ReflagProvider` instead of using these composables. + +### `useClient()` + +Returns the `ReflagClient` used by the `ReflagProvider`. The client offers more functionality that +is not directly accessible through the other composables. + +```vue + + + +``` + +### `useIsLoading()` + +Returns a `Ref` to indicate if Reflag has finished loading. +Initially, the value will be `true` if no bootstrap flags have been provided and the client has not be initialized. + +```vue + + + +``` + +### `useOnEvent()` + +Vue composable for listening to Reflag client events. This composable automatically handles mounting and unmounting of event listeners. + +Available events include: + +- `flagsUpdated`: Triggered when flags are updated +- `track`: Triggered when tracking events are sent + +```vue + + + +``` + +You can also provide a specific client instance if needed: + +```vue + + + +``` ## Migrating from v1 -- `useFlag()` returns the flag's value: replace `const { isEnabled } = useFlag(key)` with `const enabled = useFlag(key)`. Use `.value` in script. +- `useFlag()` returns the flag's value as a ref: replace `const { isEnabled } = useFlag(key)` with `const isEnabled = useFlag(key)`. Use `.value` in script. - Move remote config to a multivariate flag and read it with a default, such as `useFlag("model", "quick")`. Existing remote config isn't converted automatically. -- Use `useTrack()` and `useRequestFeedback()` instead of the flag's `track()` and `requestFeedback()`. +- Use `useTrack()` and `useRequestFeedback()` instead of the flag's `track()` and `requestFeedback()`, and `useIsLoading()` instead of the flag's `isLoading`. - Use the `setOptIn` function returned by `useOptInFlags()`. `useSetOptIn()` still works but is deprecated. - Opt-in entries have a Boolean `value` instead of `isEnabled`. - Remove `fallbackFlags` and pass a default to each read instead, such as `useFlag("huddles", true)`. -- If you bootstrap from the server, upgrade the Node SDK that produces the bootstrap data to v2 at the same time. +- If you bootstrap from the server, upgrade the Node SDK that produces the bootstrap data to v2 at the same time, and mark the flags the browser needs as not secret. - If you generate type declarations, regenerate them with the v2 CLI. See the [migration guide](https://docs.reflag.com/supported-languages/migrating-from-v1) for the full steps. +## Content Security Policy (CSP) + +See [CSP](https://github.com/reflagcom/javascript/blob/77027aca6454feb7d5c7c41cde65838ccd06acf3/packages/browser-sdk/README.md#content-security-policy-csp) for info on using Reflag React SDK with CSP + +## License + +MIT License + +Copyright (c) 2025 Bucket ApS + Using v1? [Legacy docs](../../../legacy/v1/vue-sdk/README.md) · [Upgrade guide](../../../supported-languages/migrating-from-v1.md). diff --git a/sdk/documents/browser-sdk/FEEDBACK.md b/sdk/documents/browser-sdk/FEEDBACK.md index c9e3286..44fe7dd 100644 --- a/sdk/documents/browser-sdk/FEEDBACK.md +++ b/sdk/documents/browser-sdk/FEEDBACK.md @@ -284,7 +284,7 @@ See examples below. ![image](https://github.com/reflagcom/javascript/assets/331790/68805b38-e9f6-4de5-9f55-188216983e3c) -See [default English localization keys](https://github.com/reflagcom/javascript/tree/f42b3b8e4bdb954cbb8835eecdcb355edea96b84/packages/browser-sdk/src/feedback/ui/config/defaultTranslations.tsx) +See [default English localization keys](https://github.com/reflagcom/javascript/tree/77027aca6454feb7d5c7c41cde65838ccd06acf3/packages/browser-sdk/src/feedback/ui/config/defaultTranslations.tsx) for a reference of what translation keys can be supplied. ### Static language configuration @@ -398,7 +398,7 @@ For example, a dark mode theme might look like this: } ``` -Other examples of custom styling can be found in our [development example style-sheet](https://github.com/reflagcom/javascript/tree/f42b3b8e4bdb954cbb8835eecdcb355edea96b84/packages/browser-sdk/src/feedback/ui/index.css). +Other examples of custom styling can be found in our [development example style-sheet](https://github.com/reflagcom/javascript/tree/77027aca6454feb7d5c7c41cde65838ccd06acf3/packages/browser-sdk/src/feedback/ui/index.css). ## Using your own UI to collect feedback @@ -423,7 +423,7 @@ Reflag API. ### Manual feedback collection with custom UI Examples of a HTML-form that collects the relevant data can be found -in [feedback.html](https://github.com/reflagcom/javascript/tree/f42b3b8e4bdb954cbb8835eecdcb355edea96b84/packages/browser-sdk/example/feedback/feedback.html) and [feedback.jsx](https://github.com/reflagcom/javascript/tree/f42b3b8e4bdb954cbb8835eecdcb355edea96b84/packages/browser-sdk/example/feedback/Feedback.jsx). +in [feedback.html](https://github.com/reflagcom/javascript/tree/77027aca6454feb7d5c7c41cde65838ccd06acf3/packages/browser-sdk/example/feedback/feedback.html) and [feedback.jsx](https://github.com/reflagcom/javascript/tree/77027aca6454feb7d5c7c41cde65838ccd06acf3/packages/browser-sdk/example/feedback/Feedback.jsx). Once you have collected the feedback data, pass it along to `reflagClient.feedback()`: diff --git a/sdk/documents/react-native-sdk/README.md b/sdk/documents/react-native-sdk/README.md index 71e99eb..2b2fa71 100644 --- a/sdk/documents/react-native-sdk/README.md +++ b/sdk/documents/react-native-sdk/README.md @@ -13,213 +13,160 @@ pagination: visible: true --- -# Reflag React Native SDK v2 +# Reflag React Native SDK -Feature flags for React Native, built on the [React SDK](../../../supported-languages/react-sdk/README.md). +A thin React Native wrapper around `@reflag/react-sdk`. -## Setup +For more usage details, see the [React SDK README](../../../supported-languages/react-sdk/README.md). -```sh -npm install @reflag/react-native-sdk +An Expo example app lives in [packages/react-native-sdk/dev/expo](https://github.com/reflagcom/javascript/tree/77027aca6454feb7d5c7c41cde65838ccd06acf3/packages/react-native-sdk/dev/expo). + +## Get started + +### Install + +```shell +npm i @reflag/react-native-sdk ``` -The SDK requires React 17 or later. Wrap your app in `ReflagProvider`: +### 1. Add the ReflagProvider + +Wrap your app with the provider from `@reflag/react-native-sdk`: ```tsx import { ReflagProvider } from "@reflag/react-native-sdk"; - + {/* children here are shown when loading finishes */} ; ``` -Use your publishable key in the app. Keep secret keys on your server. - -The provider takes the same props as the React SDK's provider. In React Native, live updates are on by default and flags are cached in AsyncStorage. Use `enableLiveFlagUpdates`, `storage` and `eventSourceFactory` to change this. - -## `useFlag(key, defaultValue?)` +### 2. Use `useFlag()` ```tsx import { Button } from "react-native"; import { useFlag, useTrack } from "@reflag/react-native-sdk"; function StartHuddleButton() { - const enabled = useFlag("huddles"); // true or false - const settings = useFlag("huddle-settings", { maxParticipants: 10 }); + const isEnabled = useFlag("huddle"); // true or false const track = useTrack(); - if (!enabled) return null; - return ( - ; +} +``` + +`useFlag` can help you do much more. See a full example for `useFlag` [see below](#useflag). + +## Setting context + +Reflag determines which flags are active for a given `user`, `company`, or `other` context. +You can pass these to the `ReflagProvider` using the `context` prop. + +### Using the `context` prop + +```tsx + + + {/* children here are shown when loading finishes */} + + +``` + +### Legacy individual props (deprecated) + +For backward compatibility, you can still use individual props, but these are deprecated and will be removed in the next major version: + +```tsx + + + {/* children here are shown when loading finishes */} + + +``` + +> [!Important] +> The `user`, `company`, and `otherContext` props are deprecated. Use the `context` prop instead, which provides the same functionality in a more structured way. + +### Context requirements + +If you supply `user` or `company` objects, they must include at least the `id` property otherwise they will be ignored in their entirety. +In addition to the `id`, you must also supply anything additional that you want to be able to evaluate flag targeting rules against. +Attributes which are not properties of the `user` or `company` can be supplied using the `other` property. + +Attributes cannot be nested (multiple levels) and must be either strings, numbers or booleans. +A number of special attributes exist: + +- `name` -- display name for `user`/`company`, +- `email` -- the email of the user, +- `avatar` -- the URL for `user`/`company` avatar image. + +To retrieve a flag's value, use the `useFlag(key: string)` hook (described in a section below). + +Note that each `useFlag()` read automatically generates a `check` event. + +## React Native + +For React Native, use `@reflag/react-native-sdk`, which is a thin wrapper around +`@reflag/react-sdk` and wires up AsyncStorage by default. + +An Expo example app lives at `packages/react-native-sdk/dev/expo`. + +## Multivariate flags + +Multivariate flags are a dynamic and flexible approach to configuring flag behavior outside of your app – without needing to re-deploy it. + +Instead of a Boolean, a multivariate flag returns one of several values, which can be strings, numbers or JSON objects. The values are managed from within Reflag, similar to the way access to flags is managed, and different users/companies can get different values. + +### Get started with multivariate flags + +1. Update your flag definitions: + +```typescript +import "@reflag/react-sdk"; + +// Define your flags by extending the `Flags` interface in @reflag/react-sdk +declare module "@reflag/react-sdk" { + interface Flags { + huddle: boolean; + // a multivariate flag whose values are objects + "huddle-settings": { + maxTokens: number; + model: string; + }; + } +} +``` + +2. Read the flag with a default: + +```ts +const settings = useFlag("huddle-settings", { + maxTokens: 1000, + model: "gpt-3.5", +}); + +// settings: { maxTokens: 10000, model: "gpt-3.5-beta1" } +``` + +The default sets the return type. `useFlag()` returns the default while flags load, or if the flag is missing or has a different JSON type, so make sure your default is a value your application can use. Pass `null` as the default to accept any JSON value, then check its type before using it. The SDK doesn't check object fields or fill in missing fields from your default. + +Without a default, `useFlag()` expects a Boolean and returns `false` if the flag is missing or isn't a Boolean. + +Note that, similar to Boolean flags, each read of a multivariate flag automatically generates a `check` event. + +Remote config from v1 isn't converted automatically. Move each remote config to a multivariate flag; see [Migrating from v1](#migrating-from-v1). + +## Toolbar + +The Reflag Toolbar is great for toggling flags on/off for yourself to ensure that everything works both when a flag is on and when it's off. + +Toolbar + +The toolbar will automatically appear on `localhost`. However, it can also be incredibly useful in production. You have full control over when it appears through the `toolbar` configuration option passed to the ReflagProvider. + +You can pass a simple boolean to force the toolbar to appear/disappear: + +```ts + + +For server-side rendered applications, you can render immediately with pre-fetched flag data using the `ReflagBootstrappedProvider`. + +Bootstrapping is also the recommended setup if you want the most resilient feature flag architecture in React. The client renders immediately from flags provided by your server instead of making its initial render depend on a request to Reflag. + +If you want "bullet proof feature flags" in a React application, use React bootstrapping together with `flagsFallbackProvider` in the Node SDK. The fallback provider helps your server start with the latest saved snapshot if it cannot reach Reflag during initialization, and bootstrapping gives the React client server-provided flags for its first render. + +### Using `ReflagBootstrappedProvider` + +The `` component is a specialized version of `ReflagProvider` designed for server-side rendering, preloaded flag scenarios, and high-reliability setups. It uses pre-fetched evaluated state for the initial render, resulting in faster initial page loads, better SSR compatibility, and a more resilient startup path for React applications. + +```tsx +import { useState, useEffect } from "react"; +import { BootstrappedFlags } from "@reflag/react-sdk"; + +interface BootstrapData { + user: User; + flags: BootstrappedFlags; +} + +function useBootstrap() { + const [data, setData] = useState(null); + + useEffect(() => { + fetch("/bootstrap") + .then((res) => res.json()) + .then(setData); + }, []); + + return data; +} + +// Usage in your app +function App() { + const data = useBootstrap(); + + if (!data) return ; + + return ( + + + + + + ); +} +``` + +### Server-side endpoint setup + +Create an endpoint that provides bootstrap data to your client application: + +```typescript +// server.js or your Express app +import { ReflagClient as ReflagNodeClient } from "@reflag/node-sdk"; + +const reflagClient = new ReflagNodeClient({ + secretKey: process.env.REFLAG_SECRET_KEY, +}); +await reflagClient.initialize(); + +app.get("/bootstrap", (req, res) => { + const user = getUser(req); // Get user from your auth system + const company = getCompany(req); // Get company from your auth system + + // Include only attributes the browser may see + const flags = reflagClient.getFlagsForBootstrap({ + user: { id: user.id, name: user.name, email: user.email }, + company: { id: company.id, name: company.name, plan: company.plan }, + other: { source: "web" }, + }); + + res.status(200).json({ + user, + flags, + }); +}); +``` + +The `flags` object returned by `getFlagsForBootstrap()` contains the full bootstrapped state package: + +- `protocolVersion`: the bootstrap format version +- `context`: the evaluation context used on the server +- `flags`: the evaluated raw flags +- `flagStateVersion`: an optional version used to avoid redundant live-update refreshes immediately after bootstrapping + +`getFlagsForBootstrap()` only includes flags that are marked as not secret (`secret: false`). Secret flags can still be read on the server. Because the browser can read the bootstrapped context, include only browser-safe attributes in it. + +Use `@reflag/node-sdk` v2 to produce the bootstrap data. The React SDK v2 doesn't accept bootstrap data from Node SDK v1. + +### Next.js Page Router SSR example + +For Next.js applications using server-side rendering, you can pre-fetch flags in `getServerSideProps`: + +```typescript +// pages/index.tsx +import { GetServerSideProps } from "next"; +import { ReflagClient as ReflagNodeClient } from "@reflag/node-sdk"; +import { ReflagBootstrappedProvider, BootstrappedFlags, useFlag, useTrack } from "@reflag/react-sdk"; + +interface PageProps { + bootstrapData: BootstrappedFlags; +} + +// Create one client per server process and reuse it across requests +const serverClient = new ReflagNodeClient({ + secretKey: process.env.REFLAG_SECRET_KEY +}); +const serverClientReady = serverClient.initialize(); + +export const getServerSideProps: GetServerSideProps = async (context) => { + await serverClientReady; + + const user = await getUserFromSession(context.req); + const company = await getCompanyFromUser(user); + + // Include only attributes the browser may see + const bootstrapData = serverClient.getFlagsForBootstrap({ + user: { id: user.id, name: user.name, email: user.email }, + company: { id: company.id, name: company.name, plan: company.plan }, + other: { page: "homepage" } + }); + + return { props: { bootstrapData } }; +}; + +export default function HomePage({ bootstrapData }: PageProps) { + return ( + + + + ); +} + +function HuddleFeature() { + const isEnabled = useFlag("huddle"); + const settings = useFlag("huddle-settings", { + maxParticipants: 10, + videoQuality: "standard", + }); const track = useTrack(); - if (!enabled) return null; + + if (!isEnabled) return null; + return ( - +
+

Start a Huddle

+

Max participants: {settings.maxParticipants}

+

Video quality: {settings.videoQuality}

+ +
); } ``` -Pass a default to read other values. The default sets the return type: +This approach eliminates loading states and removes the initial render's dependency on the flags API. -```ts -useFlag("model", "quick"); // string -useFlag("limit", 10); // number -useFlag("settings", { model: "quick" }); // { model: string } -useFlag("anything", null); // any JSON value +### Next.js App Router example + +For Next.js applications using the App Router (Next.js 13+), you can pre-fetch flags in Server Components and pass them to client components: + +```typescript +// app/layout.tsx (Server Component) +import { ReflagClient as ReflagNodeClient } from "@reflag/node-sdk"; +import { ClientProviders } from "./providers"; + +// Create one client per server process and reuse it across requests +const serverClient = new ReflagNodeClient({ + secretKey: process.env.REFLAG_SECRET_KEY! +}); +const serverClientReady = serverClient.initialize(); + +async function getBootstrapData() { + await serverClientReady; + + // In a real app, you'd get user/company from your auth system + const bootstrapData = serverClient.getFlagsForBootstrap({ + user: { id: "user123", name: "John Doe", email: "john@acme.com" }, + company: { id: "company456", name: "Acme Inc", plan: "enterprise" }, + other: { source: "web" } + }); + + return bootstrapData; +} + +export default async function RootLayout({ + children, +}: { + children: React.ReactNode; +}) { + const bootstrapData = await getBootstrapData(); + + return ( + + + + {children} + + + + ); +} +``` + +```typescript +// app/providers.tsx (Client Component) +"use client"; + +import { ReflagBootstrappedProvider, BootstrappedFlags } from "@reflag/react-sdk"; + +interface ClientProvidersProps { + children: React.ReactNode; + bootstrapData: BootstrappedFlags; +} + +export function ClientProviders({ children, bootstrapData }: ClientProvidersProps) { + return ( + + {children} + + ); +} ``` -Without a default, a read expects a Boolean and returns `false` if the flag is missing or isn't a Boolean. With a default, the read returns the default while flags load, or if the flag is missing or has a different JSON type. Pass `null` to accept any JSON value, then check its type before using it. +```typescript +// app/page.tsx (Server Component) +import { HuddleFeature } from "./huddle-feature"; -The SDK doesn't check object fields or fill in missing fields from your default. +export default function HomePage() { + return ( +
+

My App

+ +
+ ); +} +``` -`useFlag()` never suspends. To wait for flags with Suspense, use `useFlagSuspense()`. For a loading UI, use `useIsLoading()` or the provider's `loadingComponent`. +```typescript +// app/huddle-feature.tsx (Client Component) +"use client"; -## `useFlagSuspense(key, defaultValue?)` +import { useFlag, useTrack } from "@reflag/react-sdk"; -```tsx -import { Suspense } from "react"; -import { useFlagSuspense } from "@reflag/react-sdk"; +export function HuddleFeature() { + const isEnabled = useFlag("huddle"); + const settings = useFlag("huddle-settings", { + maxParticipants: 10, + videoQuality: "standard", + }); + const track = useTrack(); + + if (!isEnabled) return null; -function Model() { - const model = useFlagSuspense("model", "quick"); - return {model}; + return ( +
+

Start a Huddle

+

Max participants: {settings.maxParticipants}

+

Video quality: {settings.videoQuality}

+ +
+ ); } +``` + +This App Router approach leverages Server Components for server-side flag fetching while using Client Components only where React state and hooks are needed. + +## `` component + +The `` is a lower-level component that accepts a `ReflagClient` instance. This is useful for advanced use cases where you need full control over client initialization or want to share a client instance across multiple parts of your application. + +In most cases you should initialize the client before rendering this provider. If you pass an idle client, a `useFlagSuspense()` call can initialize the client on demand; otherwise, you must initialize the client yourself. -Loading flags…}> - -; +### Usage + +```tsx +import { ReflagClient } from "@reflag/browser-sdk"; +import { ReflagClientProvider } from "@reflag/react-sdk"; + +// Initialize the client yourself +const client = new ReflagClient({ + publishableKey: "your-publishable-key", + user: { id: "user123", name: "John Doe" }, + company: { id: "company456", name: "Acme Inc" }, + // ... other configuration options +}); + +// Initialize the client +await client.initialize(); + +function App() { + return ( + }> + + + ); +} ``` -It takes the same arguments as `useFlag()` and suspends until flags have loaded. If a flag is missing once they have, it returns the default. +### Props -The provider's `suspense` prop applies only to `useOptInFlags()`. +The `ReflagClientProvider` accepts the following props: -## Checks and usage tracking +- `client`: A `ReflagClient` instance. Prefer passing an already-initialized client; idle clients are initialized on demand only by `useFlagSuspense()` calls. +- `loadingComponent`: Optional React component to show while the client is initializing (same as `ReflagProvider`) +- `suspense`: Optional. Set to `true` to make `useOptInFlags()` suspend while opt-in metadata is loading. To suspend flag reads, use `useFlagSuspense()`. -Each read records a check. Reflag uses checks for exposure counts, and they show up in the Event Log, which helps with debugging. +> [!Note] +> Most applications should use `ReflagProvider` or `ReflagBootstrappedProvider` instead of `ReflagClientProvider`. Only use this component when you need the advanced control it provides. -Track usage and collect feedback with separate hooks: +## `` component -```ts -const track = useTrack(); -await track("Started huddle", { button: "cta" }); -const requestFeedback = useRequestFeedback(); -requestFeedback({ flagKey: "huddles", title: "How did it go?" }); -const sendFeedback = useSendFeedback(); -await sendFeedback({ flagKey: "huddles", score: 5 }); +The `` initializes the Reflag SDK, fetches flags and starts listening for automated feedback survey events. The component can be configured using a number of props: + +- `publishableKey` is used to connect the provider to an _environment_ on Reflag. Find your `publishableKey` under [environment settings](https://app.reflag.com/env-current/settings/app-environments) in Reflag, +- `context` (recommended): An object containing `user`, `company`, and `other` properties that make up the evaluation context used to determine if a flag is enabled or not. `company` and `user` contexts are automatically transmitted to Reflag servers so the Reflag app can show you which companies have access to which flags etc. +- `company`, `user` and `other` (deprecated): Individual props for context. These are deprecated in favor of the `context` prop and will be removed in the next major version. + > [!Note] + > If you specify `company` and/or `user` they must have at least the `id` property, otherwise they will be ignored in their entirety. You should also supply anything additional you want to be able to evaluate flag targeting against, +- `timeoutMs`: Timeout in milliseconds when fetching flags from the server. +- `staleWhileRevalidate`: If set to `true`, stale flags will be returned while refetching flags in the background. +- `expireTimeMs`: If set, flags will be cached between page loads for this duration (in milliseconds). +- `staleTimeMs`: Maximum time (in milliseconds) that stale flags will be returned if `staleWhileRevalidate` is true and new flags cannot be fetched. +- `offline`: Provide this option when testing or in local development environments to avoid contacting Reflag servers. +- `loadingComponent` lets you specify an React component to be rendered instead of the children while the Reflag provider is initializing. If you want more control over loading screens, `useIsLoading()` returns `isLoading` which you can use to customize the loading experience. +- `suspense`: Set to `true` to make `useOptInFlags()` suspend while required opt-in metadata is loading. Flag reads with `useFlag()` never suspend; use `useFlagSuspense()` to suspend them. Wrap components that suspend in React `` boundaries and omit `loadingComponent` if you want Suspense fallbacks to control loading UI. +- `enableTracking`: Set to `false` to stop sending tracking events and user/company updates to Reflag. Useful when you're impersonating a user (defaults to `true`), +- `enableLiveFlagUpdates`: Enables live flag updates over SSE. Defaults to `true` in the React SDK. +- `apiBaseUrl`: Optional base URL for the Reflag API. This also controls the SSE origin used for live flag updates and automated feedback, +- `credentials`: Optional fetch credentials mode. Set to `"include"` when proxying through your backend and authenticating with cookies; this also enables credentials for live-update SSE connections. +- `appBaseUrl`: Optional base URL for the Reflag application. Use this to override the default app URL, + +- `logger`: Optional custom logger implementation (`debug`, `info`, `warn`, `error`) used by the underlying client, +- `debug`: Set to `true` to enable debug logging to the console. If both `logger` and `debug` are provided, `logger` takes precedence, +- `toolbar`: Optional [configuration](../../../supported-languages/browser-sdk/globals.md#toolbaroptions) for the Reflag toolbar, +- `feedback`: Optional configuration for feedback collection + +## `` component + +The `` is a specialized version of the `ReflagProvider` that uses pre-fetched flag data for the initial render. This is ideal for server-side rendering scenarios. + +The component accepts the following props: + +- `flags`: Pre-fetched bootstrapped state of type `BootstrappedFlags` obtained from the Node SDK's `getFlagsForBootstrap()` method. This contains the context (`flags.context`), the evaluated flags (`flags.flags`), and an optional `flags.flagStateVersion`. +- All other props available in [`ReflagProvider`](#reflagprovider-component) are supported except `context`, `user`, `company`, and `other` (which are extracted from `flags.context`). + +**Example:** + +```tsx +import { + ReflagBootstrappedProvider, + BootstrappedFlags, +} from "@reflag/react-sdk"; + +interface AppProps { + bootstrapData: BootstrappedFlags; +} + +function App({ bootstrapData }: AppProps) { + return ( + } + debug={process.env.NODE_ENV === "development"} + > + + + ); +} ``` -See [Browser feedback documentation](../../../supported-languages/browser-sdk/feedback.md) for UI/prompt configuration. +> [!Note] +> When using `ReflagBootstrappedProvider`, pass the entire object returned by `getFlagsForBootstrap()` directly as the `flags` prop. The context is extracted from `flags.context`, and `flags.flagStateVersion` is used when present. +> +> With `ReflagBootstrappedProvider`, `useOptInFlags()` requests a flags refresh on first use. It returns `isLoading: true` (or suspends) until that refresh settles. +> +> Use `@reflag/node-sdk` v2 to produce the bootstrap data. It only includes flags marked as not secret (`secret: false`). +> +> After bootstrapping, any live flag updates are fetched directly by the browser SDK from Reflag using the browser-visible context. If your bootstrapped snapshot depends on server-only or secret context that is not available in the browser, later live refreshes may differ. In that case, keep `enableLiveFlagUpdates` disabled. +> +> Requesting opt-in flags also triggers a browser-side refresh, even when `enableLiveFlagUpdates` is disabled. -## Optional key registration +## Hooks -```ts -import "@reflag/react-sdk"; -declare module "@reflag/react-sdk" { - interface Flags { - huddles: boolean; - "huddle-settings": { maxParticipants: number }; +### `useFlag()` + +Returns the value of a given flag for the current context. The hook provides type-safe access to flags and their values. + +```tsx +import { + useFlag, + useIsLoading, + useRequestFeedback, + useTrack, +} from "@reflag/react-sdk"; +import { Loading } from "./Loading"; + +function StartHuddleButton() { + const isLoading = useIsLoading(); // true while flags are being loaded + const isEnabled = useFlag("huddle"); // boolean indicating if the flag is enabled + const settings = useFlag("huddle-settings", { + question: "How do you like the Huddles feature?", + }); // value of a multivariate flag, or the default + const track = useTrack(); // function to track flag usage + const requestFeedback = useRequestFeedback(); // function to request feedback + + if (isLoading) { + return ; + } + + if (!isEnabled) { + return null; } + + return ( + <> + + + + ); } ``` -Registered flags get autocompletion for their keys and type checks for the defaults you pass, in both `useFlag()` and `useFlagSuspense()`. The checks happen at compile time only. To generate the declarations, run `npx reflag flags types` with the `react` format. +Without a default, `useFlag(key)` returns a Boolean, using `false` while flags load or if the flag is missing. Pass a default to read a [multivariate flag](#multivariate-flags), such as `useFlag("model", "quick")`; the default sets the return type. -## Bootstrap and SSR +#### Suspense loading -Get the bootstrap data from the Node.js SDK on your server: +`useFlag()` never suspends. Use `useFlagSuspense()` to suspend until flags are ready. It takes the same arguments as `useFlag()`, and the nearest `` boundary will render its fallback until flags are ready. If a flag is missing once they have loaded, it returns the default. -```ts -const flags = serverClient.getFlagsForBootstrap(context); +```tsx +import { Suspense } from "react"; +import { ReflagProvider, useFlagSuspense } from "@reflag/react-sdk"; + +function Huddles() { + const isEnabled = useFlagSuspense("huddle"); + return isEnabled ? : null; +} + + + }> + + +; ``` -Pass the whole object to `ReflagBootstrappedProvider`: +The provider's `suspense` prop doesn't affect `useFlag()` or `useFlagSuspense()`; it only applies to `useOptInFlags()`. + +### `useOptInFlags()` + +Use this hook to build an end-user opt-in UI for flags where opt-in is enabled in Reflag. It returns the opt-in flags, their loading state and a `setOptIn` function. ```tsx -import { ReflagBootstrappedProvider } from "@reflag/react-sdk"; +import { type OptInFlag, useIsLoading, useOptInFlags } from "@reflag/react-sdk"; + +function OptInList() { + const isProviderLoading = useIsLoading(); + const { flags, isLoading, setOptIn } = useOptInFlags(); + + async function toggleOptIn(flag: OptInFlag) { + try { + const response = await setOptIn(flag.key, { + optedIn: !flag.userOptedIn, + }); + if (!response?.ok) { + console.error("Could not update opt-in"); + } + } catch (error) { + console.error("Could not update opt-in", error); + } + } + + if (isProviderLoading || isLoading) { + return

Loading…

; + } + + return flags.map((flag) => ( + + )); +} +``` + +Each entry includes the flag's `key`, `name`, `description`, a Boolean `value` that says whether the flag is on, and whether the user (`userOptedIn`) or company (`companyOptedIn`) has opted in. - - +By default, `setOptIn` changes the opt-in for the current user, so the current context must include a `user.id`. To manage the current company's opt-in instead, pass `scope: "company"`; the context must then include a `company.id`. + +User and company opt-ins are managed independently. Setting `optedIn` to `false` removes the opt-in only for the selected scope. For example, cancelling a user's opt-in does not change the company's opt-in for the same flag. + +`setOptIn` returns a promise so you can wait for the new membership state to be synchronized. On success, it resolves after the refreshed flag state has been applied locally, the requested membership change has been confirmed, and subscribers have been notified when flags change. React may not have committed the resulting render yet. + +The promise resolves to a `Response`, or `undefined` if skipped due to invalid input, offline mode etc. Check `response?.ok` for success. + +`useOptInFlags()` returns `{ flags, isLoading, setOptIn }`. The separate `useSetOptIn()` hook still works but is deprecated. With `ReflagBootstrappedProvider`, it fetches opt-in metadata on first use and reports `isLoading: true` until that refresh succeeds or fails. + +If fetching opt-in metadata fails, loading ends without exposing an error. Call `client.refresh()` on the client returned by `useClient()` to retry. + +With a regular `ReflagProvider`, opt-in metadata arrives as part of the normal initial flags request, so `useOptInFlags().isLoading` remains `false`. Use the general `useIsLoading()` hook or the provider's `loadingComponent` for that initial loading state. + +`useOptInFlags()` also supports Suspense. It respects the provider-level `suspense` option, or you can enable it for only this hook with `useOptInFlags({ suspense: true })`. While required opt-in metadata is loading, the nearest `` boundary renders its fallback: + +```tsx +import { Suspense } from "react"; + + + }> + + ; ``` -Flags are then available immediately, without a network request. With live updates on, later refreshes evaluate flags using the browser's context, so values that depend on server-only attributes can change. Set `enableLiveFlagUpdates={false}` if they must not. +Opt-in metadata Suspense is primarily relevant with `ReflagBootstrappedProvider`. Use `useOptInFlags({ suspense: false })` to opt out for one call when Suspense is enabled on the provider. + +### `useTrack()` + +`useTrack()` lets you send custom events to Reflag. Use this whenever a user _uses_ a feature. These events can be used to analyze feature usage in Reflag. + +```tsx +import { useTrack } from "@reflag/react-sdk"; -To use a client you create yourself, pass it to `ReflagClientProvider`. Your app is then responsible for initializing and stopping it. +function StartHuddle() { + const track = useTrack(); + return ( +
+ +
+ ); +} +``` -## Context, loading and events +### `useRequestFeedback()` -- `useUpdateUser()`, `useUpdateCompany()` and `useUpdateOtherContext()` return functions that merge new attributes into the current context. `useClient().setContext(context)` replaces the whole context. -- While flags for a new context load, reads return their defaults. -- `useIsLoading()` returns provider loading state. Use `loadingComponent` or `initialLoading` to control what renders while flags load. -- `useClient()` returns the underlying Browser client. -- `useOnEvent(type, handler, client?)` subscribes and unsubscribes on unmount. A supplied external client works without a provider. +`useRequestFeedback()` returns a function that lets you open up a dialog to ask for feedback on a specific feature. This is useful for collecting targeted feedback about specific features as part of roll out. See [Automated Feedback Surveys](https://docs.reflag.com/product-handbook/live-satisfaction) for how to do this automatically, without code. -## Opt-in hooks +When using the `useRequestFeedback` you must pass the flag key to `requestFeedback`. +The example below shows how to use `position` to ensure the popover appears next to the "Give feedback!" button. ```tsx -const { flags, isLoading, setOptIn } = useOptInFlags(); -try { - const response = await setOptIn("huddles", { optedIn: true }); - if (!response?.ok) console.error("Could not update opt-in"); -} catch (error) { - console.error("Could not update opt-in", error); +import { useRequestFeedback } from "@reflag/react-sdk"; + +function FeedbackButton() { + const requestFeedback = useRequestFeedback(); + return ( + + ); } ``` -Each entry includes the flag's `key`, `name`, `description`, a Boolean `value`, and whether the user or company has opted in. User and company opt-ins are independent, and the user or company you opt in must have an `id`. `setOptIn()` resolves once the new flag values have loaded. Check `response.ok` and catch errors, as in the example. If the list fails to load, it stays empty; call `useClient().refresh()` to retry. +See the [Feedback Documentation](https://github.com/reflagcom/javascript/blob/77027aca6454feb7d5c7c41cde65838ccd06acf3/packages/browser-sdk/FEEDBACK.md#manual-feedback-collection) for more information on `requestFeedback` options. + +### `useSendFeedback()` + +Returns a function that lets you send feedback to Reflag. This is useful if you've manually collected feedback through your own UI and want to send it to Reflag. + +```tsx +import type { FormEvent } from "react"; +import { useSendFeedback } from "@reflag/react-sdk"; + +function CustomFeedbackForm() { + const sendFeedback = useSendFeedback(); + + const handleSubmit = async (event: FormEvent) => { + event.preventDefault(); + const data = new FormData(event.currentTarget); + await sendFeedback({ + flagKey: "reflag-flag-key", + score: parseInt(data.get("score") as string), + comment: data.get("comment") as string, + }); + }; + + return
...
; +} +``` + +### `useUpdateUser()`, `useUpdateCompany()` and `useUpdateOtherContext()` + +These hooks return functions that let you update the attributes for the currently set user, company, or other context. Updates to user/company are stored remotely and affect flag targeting, while "other" context updates only affect the current session. + +```tsx +import { + useUpdateUser, + useUpdateCompany, + useUpdateOtherContext, +} from "@reflag/react-sdk"; + +function FlagOptIn() { + const updateUser = useUpdateUser(); + const updateCompany = useUpdateCompany(); + const updateOtherContext = useUpdateOtherContext(); + + const handleUserUpdate = async () => { + await updateUser({ + role: "admin", + betaFlags: "enabled", + }); + }; + + const handleCompanyUpdate = async () => { + await updateCompany({ + plan: "enterprise", + employees: 500, + }); + }; + + const handleContextUpdate = async () => { + await updateOtherContext({ + currentWorkspace: "workspace-123", + theme: "dark", + }); + }; + + return ( +
+ + + +
+ ); +} +``` -Pass `{ suspense: true }` to `useOptInFlags()` to suspend until the list loads. It defaults to the provider's `suspense` prop. +### `useClient()` + +Returns the `ReflagClient` used by the `ReflagProvider`. The client offers more functionality that +is not directly accessible thorough the other hooks. + +```tsx +import { useClient } from "@reflag/react-sdk"; + +function LoggingWrapper({ children }: { children: ReactNode }) { + const client = useClient(); + + console.log(client.getContext()); + + return children; +} +``` + +### `useIsLoading()` + +Returns the loading state of the flags in the `ReflagClient`. +Initially, the value will be `true` if no bootstrap flags have been provided and the client has not be initialized. + +```tsx +import { useIsLoading } from "@reflag/react-sdk"; +import { Spinner } from "./Spinner"; + +function LoadingWrapper({ children }: { children: ReactNode }) { + const isLoading = useIsLoading(); + + if (isLoading) { + return ; + } + + return children; +} +``` + +### `useOnEvent()` + +Attach a callback handler to client events to act on changes. It automatically disposes itself on unmount. + +```tsx +import { useOnEvent } from "@reflag/react-sdk"; + +function LoggingWrapper({ children }: { children: ReactNode }) { + useOnEvent("flagsUpdated", (newFlags) => { + console.log(newFlags); + }); + + return children; +} +``` + +To listen to a client outside a provider, pass it as the third argument: `useOnEvent("flagsUpdated", handler, client)`. ## Migrating from v1 -- `useFlag()` returns the flag's value: replace `const { isEnabled } = useFlag(key)` with `const enabled = useFlag(key)`. +- `useFlag()` returns the flag's value: replace `const { isEnabled } = useFlag(key)` with `const isEnabled = useFlag(key)`. - Move remote config to a multivariate flag and read it with a default, such as `useFlag("model", "quick")`. Existing remote config isn't converted automatically. - Use `useTrack()` and `useRequestFeedback()` instead of the flag's `track()` and `requestFeedback()`. -- Replace `useFlag(key, { suspense: true })` with `useFlagSuspense(key)`, and the flag's loading property with `useIsLoading()`. +- Replace `useFlag(key, { suspense: true })` with `useFlagSuspense(key)`, and the flag's `isLoading` property with `useIsLoading()`. The provider's `suspense` prop now only applies to `useOptInFlags()`. - `useFeature()` is removed. Use `useFlag()` instead. - Use the `setOptIn` function returned by `useOptInFlags()`. `useSetOptIn()` still works but is deprecated. - Opt-in entries have a Boolean `value` instead of `isEnabled`. -- Remove `fallbackFlags` and pass a default to each read instead, such as `useFlag("huddles", true)`. -- If you bootstrap from the server, upgrade the Node SDK that produces the bootstrap data to v2 at the same time. +- Remove `fallbackFlags` and pass a default to each read instead, such as `useFlag("huddle", true)`. +- If you bootstrap from the server, upgrade the Node SDK that produces the bootstrap data to v2 at the same time, and mark the flags the browser needs as not secret. - If you generate type declarations, regenerate them with the v2 CLI. See the [migration guide](https://docs.reflag.com/supported-languages/migrating-from-v1) for the full steps. +## Migrating from Bucket SDK + +If you have been using the Bucket SDKs, the following list will help you migrate to Reflag SDK: + +- `Bucket*` classes, and types have been renamed to `Reflag*` (e.g. `BucketClient` is now `ReflagClient`) +- `Feature*` classes, and types have been renamed to `Flag*` (e.g. `Feature` is now `Flag`, `RawFeatures` is now `RawFlags`) +- When using strongly-typed flags, the new `Flags` interface replaced `Features` interface +- All methods that contained `feature` in the name have been renamed to use the `flag` terminology (e.g. `getFeature` is `getFlag`) +- The `fallbackFeatures` property has been removed; pass a default to each `useFlag()` read instead +- `featureKey` has been renamed to `flagKey` in all methods that accepts that argument +- The SDKs will not emit `evaluate` and `evaluate-config` events anymore +- The new cookies that are stored in the client's browser are now `reflag-*` prefixed instead of `bucket-*` +- The `featuresUpdated` hook has been renamed to `flagsUpdated` +- The `checkIsEnabled` and `checkConfig` hooks have been removed, use `check` from now on + +To ease in transition to Reflag SDK, the `featuresUpdated` hook has been preserved as an alias for `flagsUpdated`. The `getFeature`, `getFeatures` and `useFeature` aliases have been removed; use `getFlag`, `getFlags` and `useFlag` instead. + +If you are running with strict Content Security Policies active on your website, you will need change them as follows: + +- `connect-src https://front.bucket.co` to `connect-src https://front.reflag.com` + +## Content Security Policy (CSP) + +See [CSP](https://github.com/reflagcom/javascript/blob/77027aca6454feb7d5c7c41cde65838ccd06acf3/packages/browser-sdk/README.md#content-security-policy-csp) for info on using Reflag React SDK with CSP + +## License + +MIT License + +Copyright (c) 2025 Bucket ApS + Using v1? [Legacy docs](../../../legacy/v1/react-sdk/README.md) · [Upgrade guide](../../../supported-languages/migrating-from-v1.md). diff --git a/supported-languages/_media/type-check-failed.png b/supported-languages/_media/type-check-failed.png new file mode 100644 index 0000000000000000000000000000000000000000..4ffbd40ba63e3aa37f382746a20ec07e0d5ded1c GIT binary patch literal 105925 zcma&N1z20#)+maUAf-rw;$EOdgS%UCE$$NBiUlX7#k~|OR-6_s4#A2QcXxN!pf}xn zci;2gyYJjT-?y@6)|z8X8FTnZn5weuGYk?81O$XDkRNpy)Z0s!&5Z;7+PC`}v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V z@4$6XszuO$yl3y6--yq3)|CnGuh{#4x2pfME)Y`x3{L7pzk1wXk!f7nja}Uwz@DZN&GvV8Y8^_C#?EA*+Kko +# Reflag Browser SDK -Client-side feature flags for [Reflag](https://reflag.com). +Basic client for [Reflag.com](https://reflag.com). If you're using React, you'll be better off with the Reflag React SDK. + +Reflag supports flag toggling, tracking flag usage, [collecting feedback](#qualitative-feedback-on-beta-flags) on flags, and [multivariate flags](#multivariate-flags) that return strings, numbers or JSON objects. This page covers SDK v2. -## Get started +## Install -```ts +First find your `publishableKey` under [environment settings](https://app.reflag.com/env-current/settings/app-environments) in Reflag. + +The package can be imported or used directly in a HTML script tag: + +A. Import module: + +```typescript import { ReflagClient } from "@reflag/browser-sdk"; -const reflag = new ReflagClient({ - publishableKey: "your-publishable-key", - user: { id: "alice", role: "manager" }, - company: { id: "acme", plan: "enterprise" }, +const user = { + id: 42, + role: "manager", +}; + +const company = { + id: 99, + plan: "enterprise", +}; + +const reflagClient = new ReflagClient({ publishableKey, user, company }); + +await reflagClient.initialize(); + +// `getFlag` returns `true` or `false`. Reading a flag automatically +// sends a "check" event for the "huddle" flag which is shown in the +// Reflag UI. +const isEnabled = reflagClient.getFlag("huddle"); + +if (isEnabled) { + // On usage, call `track` to let Reflag know that a user interacted with the flag. + // By default Reflag expects event names to align with the flag keys. + reflagClient.track("huddle"); + + // A multivariate flag returns a value that is configured in Reflag and + // dynamically picked out depending on the user/company. The default is + // used while flags load, or if the flag is missing or has a different type. + const { question } = reflagClient.getFlag("huddle-feedback", { + question: "Tell us what you think of Huddles", + }); + + // Use `requestFeedback` to create "Send feedback" buttons easily for specific + // flags. This is not related to `track` and you can call them individually. + reflagClient.requestFeedback({ flagKey: "huddle", title: question }); +} +``` + +B. Script tag (client-side directly in html) + +See [example/browser.html](https://github.com/reflagcom/javascript/tree/77027aca6454feb7d5c7c41cde65838ccd06acf3/packages/browser-sdk/example/browser.html) for a working example: + +```html + + +Loading... + +``` + +### Init options + +Supply these to the constructor call: + +```typescript +type Configuration = { + logger: console; // by default only logs warn/error, by passing `console` you'll log everything + apiBaseUrl?: "https://front.reflag.com"; + credentials?: "include" | "same-origin" | "omit"; // forwarded to fetch requests; "include" also enables credentials for the default EventSource transport + feedback?: undefined; // See FEEDBACK.md + enableTracking?: true; // set to `false` to stop sending track events and user/company updates to Reflag servers. Useful when you're impersonating a user + enableLiveFlagUpdates?: false; // Set to `true` to keep flags up to date over SSE (browser SDK default: false) + eventSourceFactory?: (url: string) => { + // Advanced: provide a custom EventSource-compatible transport + addEventListener: (type: string, cb: (event: any) => void) => void; + close: () => void; + }; + timeoutMs?: number; // Timeout for fetching flags (default: 5000ms) + staleWhileRevalidate?: boolean; // Revalidate in the background when cached flags turn stale to avoid latency in the UI (default: false) + staleTimeMs?: number; // at initialization time flags are loaded from the cache unless they have gone stale. Defaults to 0 which means the cache is disabled. Increase this in the case of a non-SPA + expireTimeMs?: number; // In case we're unable to fetch flags from Reflag, cached/stale flags will be used instead until they expire after `expireTimeMs`. Default is 30 days + offline?: boolean; // Use the SDK in offline mode. Offline mode is useful during testing and local development +}; +``` + +## Migrating from v1 + +- `getFlag()` returns the flag's value: replace `getFlag(key).isEnabled` with `getFlag(key)`. +- Move remote config to a multivariate flag and read it with a default, such as `getFlag("model", "quick")`. Existing remote config isn't converted automatically. +- Use the client's `track()` and `requestFeedback()` instead of the flag's. +- `setFlagOverride(key, value)` takes the value directly; pass `undefined` to remove an override. +- `getFlags()` returns all flag values and records a check for each. Use `getFlagResults()` to inspect flags without recording checks. Replace `getFeatures()` and `getFeature(key)` with `getFlags()` and `getFlag(key)`; the feature-named methods are removed. +- Opt-in entries from `getOptInFlags()` have a Boolean `value` instead of `isEnabled`. +- Remove `fallbackFlags` and pass a default to each read instead, such as `getFlag("huddle", true)`. +- If you bootstrap from the server, upgrade the Node SDK that produces the bootstrap data to v2 at the same time, and mark the flags the browser needs as not secret. Replace `bootstrappedFlags` with `bootstrappedState`. +- If you generate type declarations, regenerate them with the v2 CLI. + +See the [migration guide](https://docs.reflag.com/supported-languages/migrating-from-v1) for the full steps. + +## Migrating from Bucket SDK + +If you have been using the Bucket SDKs, the following list will help you migrate to Reflag SDK: + +- `Bucket*` classes, and types have been renamed to `Reflag*` (e.g. `BucketClient` is now `ReflagClient`) +- `Feature*` classes, and types have been renamed to `Feature*` (e.g. `Feature` is now `Flag`, `RawFeatures` is now `RawFlags`) +- All methods that contained `feature` in the name have been renamed to use the `flag` terminology (e.g. `getFeature` is `getFlag`) +- The `fallbackFeatures` property has been removed; pass a default to each `getFlag()` read instead +- `featureKey` has been renamed to `flagKey` in all methods that accepts that argument +- The new cookies that are stored in the client's browser are now `reflag-*` prefixed instead og `bucket-*` +- The `featuresUpdated` hook has been renamed to `flagsUpdated` +- The `checkIsEnabled` and `checkConfig` hooks have been removed, use `check` from now on + +To ease in transition to Reflag SDK, the `featuresUpdated` hook has been preserved as an alias for `flagsUpdated`. The `getFeature` and `getFeatures` aliases have been removed; use `getFlag` and `getFlags` instead. + +If you are running with strict Content Security Policies active on your website, you will need change them as follows: + +- `connect-src https://front.bucket.co` to `connect-src https://front.reflag.com` + +Finally, if you have customized the look & feel of the Feedback component, update `--bucket-feedback-*` CSS classes to `--reflag-feedback-*` + +## Flag toggles + +Reflag determines which flags are active for a given user/company. The user/company is given in the ReflagClient constructor. + +If you supply `user` or `company` objects, they must include at least the `id` property otherwise they will be ignored in their entirety. +In addition to the `id`, you must also supply anything additional that you want to be able to evaluate flag targeting rules against. + +Attributes cannot be nested (multiple levels) and must be either strings, integers or booleans. +Some attributes are special and used in Reflag UI: + +- `name` -- display name for `user`/`company`, +- `email` -- is accepted for `user`s and will be highlighted in the Reflag UI if available, +- `avatar` -- can be provided for both `user` and `company` and should be an URL to an image. + +```ts +const reflagClient = new ReflagClient({ + publishableKey, + user: { + id: "user_123", + name: "John Doe", + email: "john@acme.com", + avatar: "https://example.com/images/udsy6363", + }, + company: { + id: "company_123", + name: "Acme, Inc", + avatar: "https://example.com/images/31232ds", + }, }); -await reflag.initialize(); +``` -const enabled = reflag.getFlag("huddles"); // boolean, implicit false -const settings = reflag.getFlag("assistant-settings", { model: "quick" }); -// settings: { model: string } +To retrieve a flag's value, use `getFlag(key: string)`: + +```ts +const huddle = reflagClient.getFlag("huddle"); +// true +``` + +Without a default, `getFlag()` expects a Boolean and returns `false` if the flag is missing or isn't a Boolean. To read a [multivariate flag](#multivariate-flags), pass a default as the second argument. + +You can use `getFlags()` to retrieve the values of all flags currently. + +```ts +const flags = reflagClient.getFlags(); +// { +// huddle: true, +// "huddle-settings": { maxParticipants: 10 } +// } +``` -if (enabled) { - // Application usage tracking is separate from reading the flag. - await reflag.track("Started huddle"); +`getFlags()` is meant to be more low-level than `getFlag()` and it typically used +by down-stream clients. + +Note that each `getFlag()` read automatically generates a `check` event, and `getFlags()` generates a `check` event for every flag it returns. To inspect the evaluated flags without generating `check` events, for example for debugging, use `getFlagResults()`. + +## End-user opt-in + +If a flag has end-user opt-in enabled in Reflag, you can list the opt-in options for the current context and set or cancel opt-in for the current user or company. + +```ts +const optInFlags = reflagClient.getOptInFlags(); +// [{ key, name, description, value, userOptedIn, companyOptedIn, isOptedIn }] +// `value` is a Boolean that says whether the flag is on for the current context + +try { + const response = await reflagClient.setOptIn("huddle", { + optedIn: true, // Use false to cancel this scope's opt-in. + scope: "user", // Use "company" to change the current company's opt-in. + }); + if (!response?.ok) { + console.error("Could not update opt-in"); + } +} catch (error) { + console.error("Could not update opt-in", error); } ``` -Use only a **publishable** key in a browser. Secret keys belong on your server. +By default, `setOptIn()` changes the opt-in for the current user, so the current context must include a `user.id`. To manage the current company's opt-in instead, pass `scope: "company"`; the context must then include a `company.id`. -## Read flags +User and company opt-ins are managed independently. Setting `optedIn` to `false` removes the opt-in only for the selected scope. For example, cancelling a user's opt-in does not change the company's opt-in for the same flag. + +`setOptIn` returns a promise so you can wait for the new membership state to be synchronized. On success, it resolves after the refreshed flag state has been applied locally, the requested membership change has been confirmed, and `flagsUpdated` listeners have been notified when flags change. + +The promise resolves to a `Response`, or `undefined` if skipped due to invalid input, offline mode etc. Check `response?.ok` for success. + +The `description` comes from the dedicated SDK-facing opt-in description configured in Reflag. + +When using bootstrapped flags, the first `getOptInFlags()` or `getIsLoadingOptInFlags()` call requests a flags refresh. The list call returns the currently available list synchronously, and the loading getter returns `true` until that refresh succeeds or fails. Normal initialization also exposes loading through the client's state. + +Listen for `optInFlagsLoadingUpdated` to update UI when this loading state changes. `flagsUpdated` is emitted when a successful refresh updates the list. + +If fetching opt-in metadata fails, loading ends without exposing an error. Call `reflagClient.refresh()` to retry. + +## Multivariate flags + +Multivariate flags are a dynamic and flexible approach to configuring flag behavior outside of your app – without needing to re-deploy it. + +Instead of a Boolean, a multivariate flag returns one of several values, which can be strings, numbers or JSON objects. The values are managed from within Reflag, similar to the way access to flags is managed, and different users/companies can get different values. + +Read a multivariate flag by passing a default. The default sets the return type: ```ts -reflag.getFlag("huddles"); // true or false -reflag.getFlag("model", "quick"); // string -reflag.getFlag("limit", 10); // number -reflag.getFlag("settings", { model: "quick" }); // { model: string } -reflag.getFlag("anything", null); // any JSON value +reflagClient.getFlag("model", "quick"); // string +reflagClient.getFlag("limit", 10); // number +reflagClient.getFlag("assistant", { maxTokens: 1000, model: "gpt-3.5" }); +// { maxTokens: 10000, model: "gpt-3.5-beta1" } +reflagClient.getFlag("anything", null); // any JSON value ``` -Without a default, a read expects a Boolean and returns `false` if the flag is missing or isn't a Boolean. With a default, the read returns the default while flags load, or if the flag is missing or has a different JSON type. Pass `null` to accept any JSON value, then check its type before using it. +`getFlag()` returns the default while flags load, or if the flag is missing or has a different JSON type, so make sure your default is a value your application can use. Pass `null` to accept any JSON value, then check its type before using it. The SDK doesn't check object fields or fill in missing fields from your default. -The SDK doesn't check object fields or fill in missing fields from your default. +Just as Boolean flags, each `getFlag()` read of a multivariate flag automatically generates a `check` event. -`getFlags()` returns all flag values as an object. +Remote config from v1 isn't converted automatically. Move each remote config to a multivariate flag; see [Migrating from v1](#migrating-from-v1). -## Checks +## Server-side rendering and bootstrapping -Each read records a check. Reflag uses checks for exposure counts, and they show up in the Event Log, which helps with debugging. `getFlags()` records a check for every flag it returns. +For server-side rendered applications, you can render immediately with pre-fetched flag data by bootstrapping the client. -Set `enableTracking: false` to stop sending checks and events, or `offline: true` to skip all requests. `await reflag.stop()` sends pending events and closes the client's connections. +### Init options bootstrapped -## Context, refresh and cache +```typescript +type Configuration = { + logger: console; // by default only logs warn/error, by passing `console` you'll log everything + apiBaseUrl?: "https://front.reflag.com"; + credentials?: "include" | "same-origin" | "omit"; // forwarded to fetch requests; "include" also enables credentials for the default EventSource transport + feedback?: undefined; // See FEEDBACK.md + enableTracking?: true; // set to `false` to stop sending track events and user/company updates to Reflag servers. Useful when you're impersonating a user + offline?: boolean; // Use the SDK in offline mode. Offline mode is useful during testing and local development + bootstrappedState?: { + protocolVersion: 2; + context: ReflagContext; + flags: RawFlags; + flagStateVersion?: number; + }; // Pre-fetched evaluated state from server-side (see Server-side rendering section) +}; +``` + +### Using `bootstrappedState` + +Use the Node SDK's `getFlagsForBootstrap()` method to pre-fetch evaluated state server-side, then pass the returned object directly to the browser client: + +```typescript +// Server-side: Get bootstrapped state using Node SDK +import { ReflagClient as ReflagNodeClient } from "@reflag/node-sdk"; + +const serverClient = new ReflagNodeClient({ secretKey: "your-secret-key" }); +await serverClient.initialize(); + +// Pass the bootstrapped state to the client using your framework's preferred method. +// Evaluate flags for each request, so pages get the current flags for the current user. +// Escape `<` so flag values or attributes can't close the script tag. +app.get("/", (req, res) => { + const bootstrappedState = serverClient.getFlagsForBootstrap({ + user: { id: "user123", name: "John Doe", email: "john@acme.com" }, + company: { id: "company456", name: "Acme Inc", plan: "enterprise" }, + }); + const serialized = JSON.stringify(bootstrappedState).replace(/var bootstrappedState = ${serialized}; +
`, + ), + ); +}); + +// Client-side: Initialize with pre-fetched evaluated state +import { ReflagClient } from "@reflag/browser-sdk"; + +const reflagClient = new ReflagClient({ + publishableKey: "your-publishable-key", + bootstrappedState, // Contains context, flags, and optional flagStateVersion +}); + +await reflagClient.initialize(); +const isEnabled = reflagClient.getFlag("huddle"); +``` + +The `bootstrappedState` object contains: + +- `protocolVersion`: the bootstrap format version +- `context`: the evaluation context used on the server +- `flags`: the evaluated raw flags +- `flagStateVersion`: an optional version used to avoid redundant live-update refreshes immediately after bootstrapping + +`getFlagsForBootstrap()` only includes flags that are marked as not secret (`secret: false`). Secret flags can still be read on the server. Because the browser can read the bootstrapped context, include only browser-safe attributes in it. + +Use `@reflag/node-sdk` v2 to produce the bootstrap data. The Browser SDK v2 doesn't accept bootstrap data from Node SDK v1. + +If a bootstrapped application requests opt-in flags, the browser SDK performs one flags refresh. Applications that do not request opt-in data do not make this request. + +The `bootstrappedFlags` option has been removed. If you previously used it, migrate like this: + +```typescript +// Before +const { flags } = serverClient.getFlagsForBootstrap(context); +const client = new ReflagClient({ + publishableKey, + user: context.user, + company: context.company, + other: context.other, + bootstrappedFlags: flags, +}); + +// After +const bootstrappedState = serverClient.getFlagsForBootstrap(context); +const client = new ReflagClient({ + publishableKey, + bootstrappedState, +}); +``` + +{% hint style="info" %} +After bootstrapping, any live flag updates are fetched directly by the browser SDK from Reflag using the browser-visible context. If your bootstrapped snapshot depends on server-only or secret context that is not available in the browser, later live refreshes may differ. In that case, keep `enableLiveFlagUpdates` disabled. + +Requesting opt-in flags also triggers a browser-side refresh, even when `enableLiveFlagUpdates` is disabled. +{% endhint %} + +This eliminates loading states and removes the initial render's dependency on the flags API. + +## Context management + +### Updating user/company/other context + +Attributes given for the user/company/other context in the ReflagClient constructor can be updated for use in flag targeting evaluation with the `updateUser()`, `updateCompany()` and `updateOtherContext()` methods. +They return a promise which resolves once the flags have been re-evaluated follow the update of the attributes. + +{% hint style="info" %} +{% endhint %} + +### setContext() + +The `setContext()` method allows you to replace the entire context (user, company, and other attributes) at once. This method is useful when you need to completely change the context, such as when a user logs in or switches between different accounts. ```ts -await reflag.updateUser({ role: "admin" }); -await reflag.updateCompany({ plan: "enterprise" }); -await reflag.updateOtherContext({ region: "eu" }); -await reflag.setContext({ - user: { id: "bob" }, - company: { id: "other-company" }, +await reflagClient.setContext({ + user: { + id: "new-user-123", + name: "Jane Doe", + email: "jane@example.com", + role: "admin", + }, + company: { + id: "company-456", + name: "New Company Inc", + plan: "enterprise", + }, + other: { + feature: "beta", + locale: "en-US", + }, }); -await reflag.refresh(); ``` -`setContext()` replaces the whole context. The update methods merge new attributes into the user, company or other context. Users and companies need an `id`. While flags for a new context load, reads return their defaults. +The method will: + +- Replace the entire context with the new values +- Re-evaluate all flags based on the new context +- Update the user and company information on Reflag servers +- Return a promise that resolves once the flags have been re-evaluated + +### getContext() + +The `getContext()` method returns the current context being used for flag evaluation. This is useful for debugging or when you need to inspect the current user, company, and other attributes. + +```ts +const currentContext = reflagClient.getContext(); +console.log(currentContext); +// { +// user: { id: "user-123", name: "John Doe", email: "john@example.com" }, +// company: { id: "company-456", name: "Acme Inc", plan: "enterprise" }, +// other: { locale: "en-US", feature: "beta" } +// } +``` + +The returned context object contains: + +- `user`: Current user attributes (if any) +- `company`: Current company attributes (if any) +- `other`: Additional context attributes not related to user or company + +## Toolbar + +The Reflag Toolbar is great for toggling flags on/off for yourself to ensure that everything works both when a flag is on and when it's off. + +Toolbar screenshot + +The toolbar will automatically appear on `localhost`. However, it can also be incredibly useful in production. +You have full control over when it appears through the `toolbar` configuration option passed to the `ReflagClient`. + +You can pass a simple boolean to force the toolbar to appear/disappear: + +```typescript +const client = new ReflagClient({ + // show the toolbar even in production if the user is an internal/admin user + toolbar: user?.isInternal, + ... +}); +``` + +You can also configure the position of the toolbar on the screen: + +```typescript +const client = new ReflagClient({ + toolbar: { + show: true; + position: { + placement: "bottom-left", + offset: {x: "1rem", y: "1rem"} + } + } + ... +}) +``` + +See [the reference](globals.md#toolbaroptions) for details. + +## Qualitative feedback on beta flags -Constructor options include: +Reflag can collect qualitative feedback from your users in the form of a [Customer Satisfaction Score](https://en.wikipedia.org/wiki/Customer_satisfaction) and a comment. -| Option | Behavior | -| ------------------------------- | -------------------------------------------------------------------------------------------------- | -| `apiBaseUrl`, `appBaseUrl` | API origin and toolbar/feedback links | -| `credentials` | Fetch credentials mode | -| `timeoutMs` | Flag request timeout; default 5,000 ms | -| `staleTimeMs` | Fresh-cache duration; default 0 | -| `staleWhileRevalidate` | Serve stale cached state while revalidating; default false | -| `expireTimeMs` | Cache expiry; default 30 days | -| `storage` | Optional async storage adapter | -| `enableLiveFlagUpdates` | Update flags as soon as they change in Reflag; default `false` in Browser, `true` in React and Vue | -| `eventSourceFactory` | Custom EventSource implementation for live updates | -| `trackingQueue` | How long to batch events (`flushDelayMs`) and the batch size (`maxSize`) | -| `logger`, `toolbar`, `feedback` | Logging, toolbar and feedback options | +### Automated feedback collection -Flags are cached in the browser. If a refresh fails, the client keeps the last values it received. +The Reflag Browser SDK comes with automated feedback collection mode enabled by default, which lets the Reflag service ask your users for feedback for relevant flags just after they've used them. -## Overrides and toolbar +{% hint style="info" %} +To get started with automatic feedback collection, make sure you've set `user` in the `ReflagClient` constructor. +{% endhint %} + +Automated feedback surveys work even if you're not using the SDK to send events to Reflag. +It works because the Reflag Browser SDK maintains a live connection to Reflag's servers and can automatically show a feedback prompt whenever the Reflag servers determines that an event should trigger a prompt - regardless of how this event is sent to Reflag. + +You can find all the options to make changes to the default behavior in the [Reflag feedback documentation](feedback.md). + +### Reflag feedback UI + +Reflag can assist you with collecting your user's feedback by offering a pre-built UI, allowing you to get started with minimal code and effort. + +[Read the Reflag feedback UI documentation](feedback.md) + +### Reflag feedback SDK + +Feedback can be submitted to Reflag using the SDK: ```ts -reflag.setFlagOverride("release", true); -reflag.setFlagOverride("settings", { model: "local" }); -reflag.setFlagOverride("nullable-settings", null); // override with null -reflag.setFlagOverride("release", undefined); // remove the override +reflagClient.feedback({ + flagKey: "my-flag-key", // String (required), copy from Flag feedback tab + score: 5, // Number: 1-5 (optional) + comment: "Absolutely stellar work!", // String (optional) +}); ``` -Overrides apply on top of the values from Reflag and are saved in the browser. The toolbar appears on localhost by default and lets you override Boolean flags. Opening it doesn't record checks. +### Reflag feedback API + +If you are not using the Reflag Browser SDK, you can still submit feedback using the HTTP API. -## Server bootstrap +See details in [Feedback HTTP API](https://docs.reflag.com/api/http-api#post-feedback) -Get the bootstrap data from the Node.js SDK on your server: +## Tracking flag usage + +The `track` function lets you send events to Reflag to denote flag usage. +By default Reflag expects event names to align with the flag keys, but +you can customize it as you wish. ```ts -const bootstrappedState = serverClient.getFlagsForBootstrap(context); -// Serialize this into the page with your framework's usual mechanism. +reflagClient.track("huddle", { voiceHuddle: true }); ``` +## Event listeners + +Event listeners allow for capturing various events occurring in the `ReflagClient`. This is useful to build integrations with other system or for various debugging purposes. The available events are: + +- `check`: Your code read a flag with `getFlag()` or `getFlags()` +- `flagsUpdated`: Flags were updated. Either because they were loaded as part of initialization or because the user/company updated +- `optInFlagsLoadingUpdated`: The opt-in flag loading state changed +- `user`: User information updated (similar to the `identify` call used in tracking terminology) +- `company`: Company information updated (sometimes to the `group` call used in tracking terminology) +- `track`: Track event occurred. + +Use the `on()` method to add an event listener to respond to certain events. See the API reference for details on each hook. + ```ts -const reflag = new ReflagClient({ publishableKey, bootstrappedState }); -await reflag.initialize(); -const enabled = reflag.getFlag("release"); +import { ReflagClient, CheckEvent, RawFlags } from "@reflag/browser-sdk"; + +const client = new ReflagClient({ + // options +}); + +// or add the hooks after construction: +const unsub = client.on("check", (check: CheckEvent) => + console.log(`Check event ${check}`), +); +// use the returned function to unsubscribe, or call `off()` with the same arguments again +unsub(); ``` -Pass the whole object, not just its `flags`. Flags are then available immediately, without a network request. With live updates on, later refreshes evaluate flags using the browser's context, so values that depend on server-only attributes can change. Set `enableLiveFlagUpdates: false` if they must not. +## Zero PII -## End-user opt-in +The Reflag Browser SDK doesn't collect any metadata and HTTP IP addresses are _not_ being stored. + +For tracking individual users, we recommend using something like database ID as userId, as it's unique and doesn't include any PII (personal identifiable information). If, however, you're using e.g. email address as userId, but prefer not to send any PII to Reflag, you can hash the sensitive data before sending it to Reflag: ```ts -const options = reflag.getOptInFlags(); -const loading = reflag.getIsLoadingOptInFlags(); -try { - const response = await reflag.setOptIn("huddles", { optedIn: true }); - if (!response?.ok) console.error("Could not update opt-in"); -} catch (error) { - console.error("Could not update opt-in", error); -} +import { ReflagClient } from "@reflag/browser-sdk"; +import { sha256 } from "crypto-hash"; + +const reflagClient = new ReflagClient({ + publishableKey, + user: { id: await sha256("john_doe") }, +}); +await reflagClient.initialize(); ``` -Each entry includes the flag's `key`, `name`, `description`, a Boolean `value`, and whether the user or company has opted in. User and company opt-ins are independent, and the user or company you opt in must have an `id`. `setOptIn()` resolves once the new flag values have loaded. Check `response.ok` and catch errors, as in the example. If the list fails to load, it stays empty; call `reflag.refresh()` to retry. +## Use of cookies -## Tracking, feedback and events +The Reflag Browser SDK uses a couple of cookies to support automated feedback surveys. These cookies are not used for tracking purposes and thus should not need to appear in cookie consent forms. -Use `track(eventName, attributes?)`, `feedback(payload)` and `requestFeedback({ flagKey, ... })` on the client. See [FEEDBACK.md](feedback.md) for the feedback UI and prompting configuration. +The two cookies are: -`on(event, handler)` returns an unsubscribe function. Events include `stateUpdated`, `flagsUpdated`, `check`, `track`, `user`, `company` and `optInFlagsLoadingUpdated`. +- `reflag-prompt-${userId}`: store the last automated feedback prompt message ID received to avoid repeating surveys +- `reflag-token-${userId}`: caching a token used to connect to Reflag's live messaging infrastructure that is used to deliver automated feedback surveys in real time. -## Migrating from v1 +## TypeScript -- `getFlag()` returns the flag's value: replace `getFlag(key).isEnabled` with `getFlag(key)`. -- Move remote config to a multivariate flag and read it with a default, such as `getFlag("model", "quick")`. Existing remote config isn't converted automatically. -- Use the client's `track()` and `requestFeedback()` instead of the flag's. -- `setFlagOverride(key, value)` takes the value directly; pass `undefined` to remove an override. -- `getFlags()` returns all flag values and records a check for each. Replace `getFeatures()` and `getFeature(key)` with `getFlags()` and `getFlag(key)`; the feature-named methods are removed. -- Opt-in entries from `getOptInFlags()` have a Boolean `value` instead of `isEnabled`. -- Remove `fallbackFlags` and pass a default to each read instead, such as `getFlag("huddles", true)`. -- If you bootstrap from the server, upgrade the Node SDK that produces the bootstrap data to v2 at the same time. -- If you generate type declarations, regenerate them with the v2 CLI. +Types are bundled together with the library and exposed automatically when importing through a package manager. -See the [migration guide](https://docs.reflag.com/supported-languages/migrating-from-v1) for the full steps. +## Content Security Policy (CSP) + +If you are running with strict Content Security Policies active on your website, you will need to enable these directives in order to use the SDK: + +| Directive | Values | Reason | +| ----------- | ---------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | +| connect-src | [https://front.reflag.com](https://front.reflag.com) | API requests plus Server-Sent Events for live flag updates and automated feedback surveys. | +| style-src | 'unsafe-inline' | The feedback UI is styled with inline styles. Not having this directive results unstyled HTML elements. | + +If you are including the Reflag tracking SDK with a ` ``` -Provider options forward Browser settings, including cache/storage, offline/tracking, feedback, toolbar, credentials and API origins. `logger` takes precedence over `debug`. Live updates default to true; disable with `:enable-live-flag-updates="false"`. For an ordinary client-only Nuxt provider, wrap it in ``. +If using Nuxt, wrap `` in ``. `` only renders client-side currently. -## `useFlag(key, defaultValue?)` +### 2. Use `useFlag` to get flag status ```vue ``` -`useFlag()` returns a ref. Vue unwraps it in templates; use `.value` in script. +`useFlag()` returns a ref. Vue unwraps it in templates; use `.value` in script. See [useFlag()](#useflag) for a full example + +## Setting context + +Reflag determines which flags are active for a given `user`, `company`, or `other` context. +You can pass these to the `ReflagProvider` using the `context` prop. + +### Using the `context` prop + +```vue + + + +``` + +### Legacy individual props (deprecated) + +For backward compatibility, you can still use individual props, but these are deprecated and will be removed in the next major version: + +```vue + + + +``` + +> [!Important] +> The `user`, `company`, and `otherContext` props are deprecated. Use the `context` prop instead, which provides the same functionality in a more structured way. + +### Context requirements + +If you supply `user` or `company` objects, they must include at least the `id` property otherwise they will be ignored in their entirety. +In addition to the `id`, you must also supply anything additional that you want to be able to evaluate flag targeting rules against. +Attributes which are not properties of the `user` or `company` can be supplied using the `other` property. + +Attributes cannot be nested (multiple levels) and must be either strings, numbers or booleans. +A number of special attributes exist: + +- `name` -- display name for `user`/`company`, +- `email` -- the email of the user, +- `avatar` -- the URL for `user`/`company` avatar image. + +To retrieve a flag's value, use the `useFlag(key: string)` hook (described in a section below). + +Note that each `useFlag()` read automatically generates a `check` event. + +## Multivariate flags + +Multivariate flags are a dynamic and flexible approach to configuring flag behavior outside of your app – without needing to re-deploy it. + +Instead of a Boolean, a multivariate flag returns one of several values, which can be strings, numbers or JSON objects. The values are managed from within Reflag, similar to the way access to flags is managed, and different users/companies can get different values. + +### Get started with multivariate flags + +Read a multivariate flag by passing a default. The default sets the type of the returned ref: ```ts -useFlag("release"); // ShallowRef +const settings = useFlag("huddle-settings", { + maxTokens: 1000, + model: "gpt-3.5", +}); + +// settings.value: { maxTokens: 10000, model: "gpt-3.5-beta1" } + useFlag("model", "quick"); // ShallowRef useFlag("limit", 10); // ShallowRef -useFlag("settings", { model: "quick" }); // ShallowRef<{ model: string }> useFlag("anything", null); // ShallowRef, any JSON value ``` -Without a default, a read expects a Boolean and returns `false` if the flag is missing or isn't a Boolean. With a default, the read returns the default while flags load, or if the flag is missing or has a different JSON type. Pass `null` to accept any JSON value, then check its type before using it. +`useFlag()` returns the default while flags load, or if the flag is missing or has a different JSON type, so make sure your default is a value your application can use. Pass `null` to accept any JSON value, then check its type before using it. The SDK doesn't check object fields or fill in missing fields from your default. -The SDK doesn't check object fields or fill in missing fields from your default. +Without a default, `useFlag()` expects a Boolean and returns `false` if the flag is missing or isn't a Boolean. -The ref updates when flag values change. Each read records a check. Reflag uses checks for exposure counts, and they show up in the Event Log, which helps with debugging. +Note that, similar to Boolean flags, each read of a multivariate flag automatically generates a `check` event. -## Loading, context and client access +Remote config from v1 isn't converted automatically. Move each remote config to a multivariate flag; see [Migrating from v1](#migrating-from-v1). -- `useIsLoading()` returns a Boolean ref for provider loading; use the `#loading` slot or `initialLoading` to control what renders while flags load. -- `useUpdateUser()`, `useUpdateCompany()` and `useUpdateOtherContext()` return functions that merge new attributes into the current context. -- `useClient()` exposes the Browser client, including `setContext(context)`, `refresh()` and `setFlagOverride(key, value)`. Pass `undefined` to remove an override. -- `getFlags()` returns all flag values and records a check for each. -- `useOnEvent(type, handler, client?)` subscribes on mount and unsubscribes on unmount. An external client may be supplied explicitly. +## Type safety -While flags for a new context load, reads return their defaults. +You can register your flags to get autocompletion for their keys and type checks for the defaults you pass: -## Bootstrap +```ts +import "@reflag/vue-sdk"; -Get the bootstrap data from the Node.js SDK on your server, and serialize it into the page with your framework's usual mechanism: +declare module "@reflag/vue-sdk" { + interface Flags { + huddles: boolean; + "huddle-settings": { maxParticipants: number }; + } +} +``` -```ts -const flags = serverClient.getFlagsForBootstrap(context); +The checks happen at compile time only. To generate the declarations, run `npx reflag flags types` with the `vue` format. + +## `` component + +The `` initializes the Reflag SDK, fetches flags and starts listening for automated feedback survey events. The component can be configured using a number of props: + +- `publishableKey` is used to connect the provider to an _environment_ on Reflag. Find your `publishableKey` under [environment settings](https://app.reflag.com/env-current/settings/app-environments) in Reflag, +- `context`: An object containing `user`, `company`, and `other` properties that make up the evaluation context used to determine if a flag is enabled or not. `company` and `user` contexts are automatically transmitted to Reflag servers so the Reflag app can show you which companies have access to which flags etc. +- `company`, `user` and `otherContext` (deprecated): Individual props for context. These are deprecated in favor of the `context` prop and will be removed in the next major version. + + > [!Note] + > If you specify `company` and/or `user` they must have at least the `id` property, otherwise they will be ignored in their entirety. You should also supply anything additional you want to be able to evaluate flag targeting against, + +- `timeoutMs`: Timeout in milliseconds when fetching flags from the server, +- `staleWhileRevalidate`: If set to `true`, stale flags will be returned while refetching flags in the background, +- `expireTimeMs`: If set, flags will be cached between page loads for this duration (in milliseconds), +- `staleTimeMs`: Maximum time (in milliseconds) that stale flags will be returned if `staleWhileRevalidate` is true and new flags cannot be fetched. + +- `enableTracking`: Set to `false` to stop sending tracking events and user/company updates to Reflag. Useful when you're impersonating a user (defaults to `true`), +- `apiBaseUrl`: Optional base URL for the Reflag API. This also controls the SSE origin used for live flag updates and automated feedback, +- `credentials`: Optional fetch credentials mode. Set to `"include"` when proxying through your backend and authenticating with cookies; this also enables credentials for live-update SSE connections. +- `appBaseUrl`: Optional base URL for the Reflag application. Use this to override the default app URL, + +- `debug`: Set to `true` to enable debug logging to the console. If both `logger` and `debug` are provided, `logger` takes precedence, +- `logger`: Optional custom logger implementation (`debug`, `info`, `warn`, `error`) used by the underlying client, +- `toolbar`: Optional [configuration](../browser-sdk/globals.md#toolbaroptions) for the Reflag toolbar, +- `feedback`: Optional configuration for feedback collection + +### Loading states + +ReflagProvider lets you define a template to be shown while ReflagProvider is initializing: + +```vue + ``` +If you want more control over loading screens, `useIsLoading()` returns a `Ref` which you can use to customize the loading experience. + +## `` component + +The `` component is a specialized version of `ReflagProvider` designed for server-side rendering and preloaded flag scenarios. It uses pre-fetched flags for the initial render, resulting in faster initial page loads and better SSR compatibility. + +### Usage + ```vue - - - + + + ``` -Pass the whole object to `ReflagBootstrappedProvider`. Flags are then available immediately, without a network request. With live updates on, later refreshes evaluate flags using the browser's context, so values that depend on server-only attributes can change. Set `:enable-live-flag-updates="false"` if they must not. +### Getting bootstrapped flags -To use a client you create yourself, pass it to `ReflagClientProvider`. Your app is then responsible for initializing and stopping it. +You'll typically generate the `bootstrappedFlags` object on your server using the Node.js SDK. Pass the full object returned by `getFlagsForBootstrap()` directly to ``. It contains: -## Opt-in, tracking and feedback +- `protocolVersion`: the bootstrap format version +- `context`: the evaluation context used on the server +- `flags`: the evaluated raw flags +- `flagStateVersion`: an optional version used to avoid redundant live-update refreshes immediately after bootstrapping -```ts -const { flags, isLoading, setOptIn } = useOptInFlags(); // flags and isLoading are refs -try { - const response = await setOptIn("huddles", { optedIn: true }); - if (!response?.ok) console.error("Could not update opt-in"); -} catch (error) { - console.error("Could not update opt-in", error); -} +`getFlagsForBootstrap()` only includes flags that are marked as not secret (`secret: false`). Secret flags can still be read on the server. Because the browser can read the bootstrapped context, include only browser-safe attributes in it. + +Use `@reflag/node-sdk` v2 to produce the bootstrap data. The Vue SDK v2 doesn't accept bootstrap data from Node SDK v1. + +With `ReflagBootstrappedProvider`, `useOptInFlags()` requests a flags refresh on first use. It reports `isLoading: true` until that refresh settles. + +Here's an example using the Node.js SDK: + +```js +// server.js (Node.js/SSR) +import { ReflagClient } from "@reflag/node-sdk"; + +const client = new ReflagClient({ + secretKey: "your-secret-key", // Use secret key on server +}); +await client.initialize(); + +// Fetch flags for specific context +const context = { + user: { id: "user123", name: "John Doe", email: "john@acme.com" }, + company: { id: "company456", name: "Acme Inc", plan: "enterprise" }, +}; + +const bootstrappedFlags = client.getFlagsForBootstrap(context); + +// Pass to your Vue app +``` + +### ReflagBootstrappedProvider Props + +`ReflagBootstrappedProvider` accepts all the same props as `ReflagProvider` except: + +- `flags`: The pre-fetched bootstrapped state object containing `protocolVersion`, `context`, evaluated `flags`, and an optional `flagStateVersion` +- All other props available in `ReflagProvider` are supported except `context`, `user`, `company`, and `otherContext` (which are extracted from `flags.context`) +If the `flags` prop is not provided or is undefined, the provider will not initialize the client and will render in a non-loading state. + +{% hint style="info" %} +After bootstrapping, any live flag updates are fetched directly by the browser SDK from Reflag using the browser-visible context. If your bootstrapped snapshot depends on server-only or secret context that is not available in the browser, later live refreshes may differ. In that case, keep `enableLiveFlagUpdates` disabled. + +Requesting opt-in flags also triggers a browser-side refresh, even when `enableLiveFlagUpdates` is disabled. +{% endhint %} + +## `` component + +The `` is a lower-level component that accepts a pre-initialized `ReflagClient` instance. This is useful for advanced use cases where you need full control over client initialization or want to share a client instance across multiple parts of your application. + +### ReflagClientProvider Usage + +```vue + + + +``` + +### ReflagClientProvider Props + +The `ReflagClientProvider` accepts the following props: + +- `client`: A pre-initialized `ReflagClient` instance + +### Slots + +- `loading`: Optional slot to show while the client is initializing (same as `ReflagProvider`) + +> [!Note] +> Most applications should use `ReflagProvider` or `ReflagBootstrappedProvider` instead of `ReflagClientProvider`. Only use this component when you need the advanced control it provides. + +## Hooks + +### `useFlag()` + +Returns the value of a given flag for the current context as a ref. The composable provides access to flags and their values. + +`useFlag(key)` returns a `ShallowRef`. With a default, `useFlag(key, defaultValue)` returns a ref whose type comes from the default; see [Multivariate flags](#multivariate-flags). The ref updates when flag values change. Use `useTrack()` to send a track event when the flag is used, `useRequestFeedback()` to open up a feedback dialog, and `useIsLoading()` to manage loading state. + +Example: + +```vue + + + ``` -Each entry includes the flag's `key`, `name`, `description`, a Boolean `value`, and whether the user or company has opted in. User and company opt-ins are independent, and the user or company you opt in must have an `id`. `setOptIn()` resolves once the new flag values have loaded. Check `response.ok` and catch errors, as in the example. If the list fails to load, it stays empty; call `useClient().refresh()` to retry. +See the reference docs for details. -Set `enableTracking: false` to stop sending checks and events, or `offline` to skip all requests. See [Browser feedback documentation](../browser-sdk/feedback.md) for prompting/UI options. +### `useOptInFlags()` -## Optional key registration +Use this composable to build an end-user opt-in UI for flags where opt-in is enabled in Reflag. It returns the opt-in flags, their loading state and a `setOptIn` function. -```ts -import "@reflag/vue-sdk"; -declare module "@reflag/vue-sdk" { - interface Flags { - huddles: boolean; - "huddle-settings": { maxParticipants: number }; +```vue + + + ``` -Registered flags get autocompletion for their keys and type checks for the defaults you pass. The checks happen at compile time only. To generate the declarations, run `npx reflag flags types` with the `vue` format. +Each entry includes the flag's `key`, `name`, `description`, a Boolean `value` that says whether the flag is on, and whether the user (`userOptedIn`) or company (`companyOptedIn`) has opted in. + +By default, `setOptIn` changes the opt-in for the current user, so the current context must include a `user.id`. To manage the current company's opt-in instead, pass `scope: "company"`; the context must then include a `company.id`. + +User and company opt-ins are managed independently. Setting `optedIn` to `false` removes the opt-in only for the selected scope. For example, cancelling a user's opt-in does not change the company's opt-in for the same flag. + +`setOptIn` returns a promise so you can wait for the new membership state to be synchronized. On success, it resolves after the refreshed flag state has been applied locally, the requested membership change has been confirmed, and subscribers have been notified when flags change. Vue may not have committed the resulting render yet. + +The promise resolves to a `Response`, or `undefined` if skipped due to invalid input, offline mode etc. Check `response?.ok` for success. + +`useOptInFlags()` returns `{ flags, isLoading, setOptIn }`, where `flags` and `isLoading` are computed refs. The separate `useSetOptIn()` composable still works but is deprecated. With `ReflagBootstrappedProvider`, it fetches opt-in metadata on first use and reports `isLoading: true` until that refresh succeeds or fails. + +If fetching opt-in metadata fails, loading ends without exposing an error. Call `client.refresh()` on the client returned by `useClient()` to retry. + +With a regular `ReflagProvider`, opt-in metadata arrives as part of the normal initial flags request, so `useOptInFlags().isLoading` remains `false`. Use the general `useIsLoading()` composable or the provider's loading slot for that initial loading state. + +### `useTrack()` + +`useTrack()` returns a function which lets you send custom events to Reflag. It takes a string argument with the event name and optionally an object with properties to attach the event. + +By default Reflag expects event names to align with the flag keys, so to track usage of a flag, call `track` with the flag key as the event name. + +```vue + + + +``` + +### `useRequestFeedback()` + +Returns a function that lets you open up a dialog to ask for feedback on a specific feature. This is useful for collecting targeted feedback about specific features. + +See [Automated Feedback Surveys](https://docs.reflag.com/product-handbook/live-satisfaction) for how to do this automatically, without code. + +When using the `useRequestFeedback` you must pass the flag key to `requestFeedback`. +The example below shows how to use `position` to ensure the popover appears next to the "Give feedback!" button. + +```vue + + + +``` + +See the [Feedback Documentation](https://github.com/reflagcom/javascript/blob/77027aca6454feb7d5c7c41cde65838ccd06acf3/packages/browser-sdk/FEEDBACK.md#manual-feedback-collection) for more information on `requestFeedback` options. + +### `useSendFeedback()` + +Returns a function that lets you send feedback to Reflag. This is useful if you've manually collected feedback through your own UI and want to send it to Reflag. + +```vue + + + +``` + +### `useUpdateUser()`, `useUpdateCompany()` and `useUpdateOtherContext()` + +These composables return functions that let you update the attributes for the currently set user, company, or other context. Updates to user/company are stored remotely and affect flag targeting, while "other" context updates only affect the current session. + +```vue + + + +``` + +Note: To change the `user.id` or `company.id`, you need to update the props passed to `ReflagProvider` instead of using these composables. + +### `useClient()` + +Returns the `ReflagClient` used by the `ReflagProvider`. The client offers more functionality that +is not directly accessible through the other composables. + +```vue + + + +``` + +### `useIsLoading()` + +Returns a `Ref` to indicate if Reflag has finished loading. +Initially, the value will be `true` if no bootstrap flags have been provided and the client has not be initialized. + +```vue + + + +``` + +### `useOnEvent()` + +Vue composable for listening to Reflag client events. This composable automatically handles mounting and unmounting of event listeners. + +Available events include: + +- `flagsUpdated`: Triggered when flags are updated +- `track`: Triggered when tracking events are sent + +```vue + + + +``` + +You can also provide a specific client instance if needed: + +```vue + + + +``` ## Migrating from v1 -- `useFlag()` returns the flag's value: replace `const { isEnabled } = useFlag(key)` with `const enabled = useFlag(key)`. Use `.value` in script. +- `useFlag()` returns the flag's value as a ref: replace `const { isEnabled } = useFlag(key)` with `const isEnabled = useFlag(key)`. Use `.value` in script. - Move remote config to a multivariate flag and read it with a default, such as `useFlag("model", "quick")`. Existing remote config isn't converted automatically. -- Use `useTrack()` and `useRequestFeedback()` instead of the flag's `track()` and `requestFeedback()`. +- Use `useTrack()` and `useRequestFeedback()` instead of the flag's `track()` and `requestFeedback()`, and `useIsLoading()` instead of the flag's `isLoading`. - Use the `setOptIn` function returned by `useOptInFlags()`. `useSetOptIn()` still works but is deprecated. - Opt-in entries have a Boolean `value` instead of `isEnabled`. - Remove `fallbackFlags` and pass a default to each read instead, such as `useFlag("huddles", true)`. -- If you bootstrap from the server, upgrade the Node SDK that produces the bootstrap data to v2 at the same time. +- If you bootstrap from the server, upgrade the Node SDK that produces the bootstrap data to v2 at the same time, and mark the flags the browser needs as not secret. - If you generate type declarations, regenerate them with the v2 CLI. See the [migration guide](https://docs.reflag.com/supported-languages/migrating-from-v1) for the full steps. +## Content Security Policy (CSP) + +See [CSP](https://github.com/reflagcom/javascript/blob/77027aca6454feb7d5c7c41cde65838ccd06acf3/packages/browser-sdk/README.md#content-security-policy-csp) for info on using Reflag React SDK with CSP + +## License + +MIT License + +Copyright (c) 2025 Bucket ApS + Using v1? [Legacy docs](../../legacy/v1/vue-sdk/README.md) · [Upgrade guide](../migrating-from-v1.md). From 30c3fa85164486ec98217a9e10f261137d617ef3 Mon Sep 17 00:00:00 2001 From: Ron Cohen <744+roncohen@users.noreply.github.com> Date: Tue, 1 Dec 2026 10:17:14 +0000 Subject: [PATCH 3/3] docs: re-import SDK READMEs with the Node type generation fix --- .generated/sdk-docs/browser-sdk/v2.json | 10 +++++----- .generated/sdk-docs/node-sdk/v2.json | 6 +++--- .generated/sdk-docs/react-native-sdk/v2.json | 12 ++++++------ .generated/sdk-docs/react-sdk/v2.json | 8 ++++---- .generated/sdk-docs/vue-sdk/v2.json | 6 +++--- sdk/@reflag/browser-sdk/README.md | 2 +- sdk/@reflag/node-sdk/README.md | 14 ++++++++------ sdk/@reflag/react-native-sdk/README.md | 2 +- sdk/@reflag/react-native-sdk/globals.md | 4 ++-- sdk/@reflag/react-sdk/README.md | 4 ++-- sdk/@reflag/vue-sdk/README.md | 4 ++-- sdk/documents/browser-sdk/FEEDBACK.md | 6 +++--- sdk/documents/react-native-sdk/README.md | 2 +- sdk/documents/react-sdk/README.md | 4 ++-- supported-languages/browser-sdk/README.md | 2 +- supported-languages/browser-sdk/feedback.md | 6 +++--- supported-languages/node-sdk/README.md | 14 ++++++++------ supported-languages/react-native-sdk/README.md | 2 +- supported-languages/react-native-sdk/globals.md | 4 ++-- supported-languages/react-sdk/README.md | 4 ++-- supported-languages/vue-sdk/README.md | 4 ++-- 21 files changed, 62 insertions(+), 58 deletions(-) diff --git a/.generated/sdk-docs/browser-sdk/v2.json b/.generated/sdk-docs/browser-sdk/v2.json index 2ddeb02..b5307a6 100644 --- a/.generated/sdk-docs/browser-sdk/v2.json +++ b/.generated/sdk-docs/browser-sdk/v2.json @@ -1,14 +1,14 @@ { "sourceRepository": "https://github.com/reflagcom/javascript", - "sourceCommit": "77027aca6454feb7d5c7c41cde65838ccd06acf3", + "sourceCommit": "6f9623f0d424b346a5c119743fdf10b41e5c0035", "package": "@reflag/browser-sdk", "version": "2.0.0", "files": { - "supported-languages/browser-sdk/README.md": "d7303314ecad4fdcba9a5bfd9cdf01714dd932e92a645210c4972988af4a2b00", - "sdk/@reflag/browser-sdk/README.md": "ab530af1c50f10d7d1531da37db7eadb5d87df77c4c8bb3b9b69f5dd3aa6a2e2", + "supported-languages/browser-sdk/README.md": "0922afb614a0c197048b96414b6c46b54b116129679a5a416508f1cff012f870", + "sdk/@reflag/browser-sdk/README.md": "8e2c19b4d117b9a1bbd1a58b0a27bb7bf9b8719310ee74893e2a3c661ea2506c", "supported-languages/browser-sdk/globals.md": "6883659c1e05df302a1b9409233fcb27c328e242f79a7df99593ab2a91c8a0bf", "sdk/@reflag/browser-sdk/globals.md": "49ac1629f1418cdd8c3457b982a5f9a1b4beb1eab36fac8ba1cfeca9a351e29d", - "supported-languages/browser-sdk/feedback.md": "cf9feeadfcaefa69396e8fd9c6d34e415be2b0bd4e0911f847d83497d23fae81", - "sdk/documents/browser-sdk/FEEDBACK.md": "0b73e47fec523de1d94c151cfb94cfef4d7102a7dbe1803ddc91cc8a0ac7576f" + "supported-languages/browser-sdk/feedback.md": "9894226a4b5e21d07406c931d6f366c967382ebc6dba74304355d6ee63e7b276", + "sdk/documents/browser-sdk/FEEDBACK.md": "2f02238aa51bd6517500a022d08f5e715a523ab2a3b10103bdbc903e4ad9a8fd" } } diff --git a/.generated/sdk-docs/node-sdk/v2.json b/.generated/sdk-docs/node-sdk/v2.json index 47041c9..9acbed1 100644 --- a/.generated/sdk-docs/node-sdk/v2.json +++ b/.generated/sdk-docs/node-sdk/v2.json @@ -1,12 +1,12 @@ { "sourceRepository": "https://github.com/reflagcom/javascript", - "sourceCommit": "77027aca6454feb7d5c7c41cde65838ccd06acf3", + "sourceCommit": "6f9623f0d424b346a5c119743fdf10b41e5c0035", "package": "@reflag/node-sdk", "version": "2.0.0", "files": { "supported-languages/_media/type-check-failed.png": "f04547c0bf0425bcf554aa1a1dddec56096ca9967d120bdca7737562327d4db8", - "supported-languages/node-sdk/README.md": "5cd824c8a58fa38d37255d1cad80af365779a14bd82c6c98887309083d9dc766", - "sdk/@reflag/node-sdk/README.md": "454ebc31dc48e71919aaf02ca92cea367cc1193f06052b802726eabe3cf3251a", + "supported-languages/node-sdk/README.md": "a7405394f995ee4f01a2398921191dea899cc08179c7021a402d7ce7fc395ab7", + "sdk/@reflag/node-sdk/README.md": "a0f48ea9224ee0f182eaa7f4ee14d98cec3312dfe9ce855dd628f79438cff429", "supported-languages/node-sdk/globals.md": "bae8f76e3d334badeffa0bdf95760ab311956b9e76ee54d1db721186d911485a", "sdk/@reflag/node-sdk/globals.md": "cc640d76599ed1fde917dba0a9264bc4c5c4a254424b5a22506151b420208ff0" } diff --git a/.generated/sdk-docs/react-native-sdk/v2.json b/.generated/sdk-docs/react-native-sdk/v2.json index 9bbc4e8..4793414 100644 --- a/.generated/sdk-docs/react-native-sdk/v2.json +++ b/.generated/sdk-docs/react-native-sdk/v2.json @@ -1,13 +1,13 @@ { "sourceRepository": "https://github.com/reflagcom/javascript", - "sourceCommit": "77027aca6454feb7d5c7c41cde65838ccd06acf3", + "sourceCommit": "6f9623f0d424b346a5c119743fdf10b41e5c0035", "package": "@reflag/react-native-sdk", "version": "2.0.0", "files": { - "supported-languages/react-native-sdk/README.md": "b6ad794fd79e1a9f705298db21e9b753ce6a99f33938bdb6c75667cb2e505031", - "sdk/@reflag/react-native-sdk/README.md": "4723239712dec26cf9efd51f6dcc398e160af5852b8a07426fe0f5de5a28430a", - "sdk/documents/react-native-sdk/README.md": "4723239712dec26cf9efd51f6dcc398e160af5852b8a07426fe0f5de5a28430a", - "supported-languages/react-native-sdk/globals.md": "10fd14a25ae48463339c5576c732d4fb86deb095b189294e86d893d954c3d4ff", - "sdk/@reflag/react-native-sdk/globals.md": "08ab491ad4251b5fa29c731f8ea31a2a717f6f4c9a364d8e91656e23525be882" + "supported-languages/react-native-sdk/README.md": "cbe653b005e9768dfb80af598815cf55a346bff152ca836bf81ce052d9e55039", + "sdk/@reflag/react-native-sdk/README.md": "70dbdd9d75ec9d5baaa614c3459dd8cc9b0b0ad4358f892d199f51b32d2f2ea9", + "sdk/documents/react-native-sdk/README.md": "70dbdd9d75ec9d5baaa614c3459dd8cc9b0b0ad4358f892d199f51b32d2f2ea9", + "supported-languages/react-native-sdk/globals.md": "48c0f152484310fe6e15b34d815fa0c06878d6f4755c4979b711dd70ce9aef3d", + "sdk/@reflag/react-native-sdk/globals.md": "6d87061bfc3624a57aee8216ba3ed3b599862cbbc9f9c35299ab24f8594921cd" } } diff --git a/.generated/sdk-docs/react-sdk/v2.json b/.generated/sdk-docs/react-sdk/v2.json index b91f8cb..eabd544 100644 --- a/.generated/sdk-docs/react-sdk/v2.json +++ b/.generated/sdk-docs/react-sdk/v2.json @@ -1,12 +1,12 @@ { "sourceRepository": "https://github.com/reflagcom/javascript", - "sourceCommit": "77027aca6454feb7d5c7c41cde65838ccd06acf3", + "sourceCommit": "6f9623f0d424b346a5c119743fdf10b41e5c0035", "package": "@reflag/react-sdk", "version": "2.0.0", "files": { - "supported-languages/react-sdk/README.md": "e946271f083774c41aebc97801bf3d67738c8934e1c1c58d736681d114cc80ef", - "sdk/@reflag/react-sdk/README.md": "03d0bc9edbbc766a4d0f28dc1cf72dca9a83ae1745213d2b6b2e62bbd9450d9b", - "sdk/documents/react-sdk/README.md": "03d0bc9edbbc766a4d0f28dc1cf72dca9a83ae1745213d2b6b2e62bbd9450d9b", + "supported-languages/react-sdk/README.md": "58afa055d387b44c74c9cb24de2cfe661f547a79f05b376fb8cf15938c3cb3ad", + "sdk/@reflag/react-sdk/README.md": "acafd4c37df92f58612b327366ff4f9df1ce5298776d0a13ece0591234375862", + "sdk/documents/react-sdk/README.md": "acafd4c37df92f58612b327366ff4f9df1ce5298776d0a13ece0591234375862", "supported-languages/react-sdk/globals.md": "ab1a82258a51f04195a6d1c5f10bdf2d2de8c949327ed8d0fa54b9e853f72cb5", "sdk/@reflag/react-sdk/globals.md": "7a99a3b2f41705ac655a5d8ebdad33242af8d10e389e7c21a10b9353e7853c43" } diff --git a/.generated/sdk-docs/vue-sdk/v2.json b/.generated/sdk-docs/vue-sdk/v2.json index 4a343f8..e88e821 100644 --- a/.generated/sdk-docs/vue-sdk/v2.json +++ b/.generated/sdk-docs/vue-sdk/v2.json @@ -1,11 +1,11 @@ { "sourceRepository": "https://github.com/reflagcom/javascript", - "sourceCommit": "77027aca6454feb7d5c7c41cde65838ccd06acf3", + "sourceCommit": "6f9623f0d424b346a5c119743fdf10b41e5c0035", "package": "@reflag/vue-sdk", "version": "2.0.0", "files": { - "supported-languages/vue-sdk/README.md": "53219fa7465dbee457c4ff1ebd21f7801865d87aa078cb3dd8cded7fc9670d59", - "sdk/@reflag/vue-sdk/README.md": "83303a568a93a767c27fae24710d8887f7662422e703591d3db8d27a0f31c985", + "supported-languages/vue-sdk/README.md": "94e85eee0bc5dca623554152ea4f810b030be5d6142efe0e7fc627a79d9f7dc2", + "sdk/@reflag/vue-sdk/README.md": "9c7770a22e0c01686b8c191e16bd0297429467c0e10697dc9655cdc4aca07b59", "supported-languages/vue-sdk/globals.md": "e09ad5ac406491add483a83f7f25c5360aae898f23cdafa2c917ad766bffaf3d", "sdk/@reflag/vue-sdk/globals.md": "89e723c295657eb75b91412c62bda8288a818aff429e33297276be81899eb90d" } diff --git a/sdk/@reflag/browser-sdk/README.md b/sdk/@reflag/browser-sdk/README.md index 4a92425..8f82cea 100644 --- a/sdk/@reflag/browser-sdk/README.md +++ b/sdk/@reflag/browser-sdk/README.md @@ -71,7 +71,7 @@ if (isEnabled) { B. Script tag (client-side directly in html) -See [example/browser.html](https://github.com/reflagcom/javascript/tree/77027aca6454feb7d5c7c41cde65838ccd06acf3/packages/browser-sdk/example/browser.html) for a working example: +See [example/browser.html](https://github.com/reflagcom/javascript/tree/6f9623f0d424b346a5c119743fdf10b41e5c0035/packages/browser-sdk/example/browser.html) for a working example: ```html diff --git a/sdk/@reflag/node-sdk/README.md b/sdk/@reflag/node-sdk/README.md index 5274178..f592a8c 100644 --- a/sdk/@reflag/node-sdk/README.md +++ b/sdk/@reflag/node-sdk/README.md @@ -511,7 +511,7 @@ export default { }; ``` -See [examples/cloudflare-worker](https://github.com/reflagcom/javascript/tree/77027aca6454feb7d5c7c41cde65838ccd06acf3/packages/node-sdk/examples/cloudflare-worker/src/index.ts) for a deployable example. +See [examples/cloudflare-worker](https://github.com/reflagcom/javascript/tree/6f9623f0d424b346a5c119743fdf10b41e5c0035/packages/node-sdk/examples/cloudflare-worker/src/index.ts) for a deployable example. Reflag maintains a cached set of flag definitions in the memory of your worker which it uses to decide which flags to turn on for which users/companies. @@ -626,7 +626,7 @@ current working directory. | `logLevel` | string | The log level for the SDK (e.g., `"DEBUG"`, `"INFO"`, `"WARN"`, `"ERROR"`). Default: `INFO` | REFLAG_LOG_LEVEL | | `offline` | boolean | Operate in offline mode. Default: `false`, except when `NODE_ENV` is `test`, where it defaults to `true`. In offline mode the SDK does not fetch from Reflag and does not use `flagsFallbackProvider`. | REFLAG_OFFLINE | | `apiBaseUrl` | string | The base API URL for the Reflag servers. | REFLAG_API_BASE_URL | -| `flagOverrides` | Record | An object specifying flag values to override for testing or local development. See [examples/express/app.test.ts](https://github.com/reflagcom/javascript/tree/77027aca6454feb7d5c7c41cde65838ccd06acf3/packages/node-sdk/examples/express/app.test.ts) for how to use `flagOverrides` in tests. | REFLAG_FLAGS_ENABLED, REFLAG_FLAGS_DISABLED | +| `flagOverrides` | Record | An object specifying flag values to override for testing or local development. See [examples/express/app.test.ts](https://github.com/reflagcom/javascript/tree/6f9623f0d424b346a5c119743fdf10b41e5c0035/packages/node-sdk/examples/express/app.test.ts) for how to use `flagOverrides` in tests. | REFLAG_FLAGS_ENABLED, REFLAG_FLAGS_DISABLED | | `flagsFallbackProvider` | `FlagsFallbackProvider` | Optional provider used to load and save raw flag definitions for fallback startup when the initial live fetch fails. Available only through the constructor. Ignored in offline mode. | - | | `flagsSyncMode` | `"polling" \| "in-request" \| "push"` | Flag-definition sync mode. `push` subscribes to live updates, `polling` uses periodic background refresh, and `in-request` refreshes stale flags during request handling. Default: `"push"`. | - | | `flagsPushUrl` | string | Push endpoint used when `flagsSyncMode: "push"`. The SDK opens it as an authenticated streaming GET. Default: `https://front.reflag.com/sse/server`. | - | @@ -675,14 +675,16 @@ To get type checked flags, install the Reflag CLI: npm i --save-dev @reflag/cli ``` -then generate the types: +then set up the CLI and generate the types: ```sh +npx reflag init npx reflag flags types ``` -This will generate a `reflag.d.ts` containing all your flags. -Any flag look ups will now be checked against the flags that exist in Reflag. +`npx reflag init` signs you in to Reflag and saves its settings in `reflag.config.json`. Choose `node` when it asks for the output format; the default, `react`, generates declarations for the React SDK instead. The types are generated in `gen/flags.d.ts` by default, so make sure your `tsconfig.json` includes that file. + +Any flag look ups will now be checked against the flags that exist in Reflag. Run `npx reflag flags types` again when your flags change. Here's an example of a failed type check: @@ -962,7 +964,7 @@ app.get("/todos", async (_req, res) => { } ``` -See [examples/express/app.ts](https://github.com/reflagcom/javascript/tree/77027aca6454feb7d5c7c41cde65838ccd06acf3/packages/node-sdk/example/express/app.ts) for a full example. +See [examples/express/app.ts](https://github.com/reflagcom/javascript/tree/6f9623f0d424b346a5c119743fdf10b41e5c0035/packages/node-sdk/example/express/app.ts) for a full example. ## Remote flag evaluation with stored context diff --git a/sdk/@reflag/react-native-sdk/README.md b/sdk/@reflag/react-native-sdk/README.md index 2b2fa71..d64af4d 100644 --- a/sdk/@reflag/react-native-sdk/README.md +++ b/sdk/@reflag/react-native-sdk/README.md @@ -19,7 +19,7 @@ A thin React Native wrapper around `@reflag/react-sdk`. For more usage details, see the [React SDK README](../../../supported-languages/react-sdk/README.md). -An Expo example app lives in [packages/react-native-sdk/dev/expo](https://github.com/reflagcom/javascript/tree/77027aca6454feb7d5c7c41cde65838ccd06acf3/packages/react-native-sdk/dev/expo). +An Expo example app lives in [packages/react-native-sdk/dev/expo](https://github.com/reflagcom/javascript/tree/6f9623f0d424b346a5c119743fdf10b41e5c0035/packages/react-native-sdk/dev/expo). ## Get started diff --git a/sdk/@reflag/react-native-sdk/globals.md b/sdk/@reflag/react-native-sdk/globals.md index e8fb877..41fc01c 100644 --- a/sdk/@reflag/react-native-sdk/globals.md +++ b/sdk/@reflag/react-native-sdk/globals.md @@ -1862,7 +1862,7 @@ function useRequestFeedback(): (options: RequestFeedbackData) => void Returns a function to open up the feedback form Note: When calling `useRequestFeedback`, user/company must already be set. -See [link](https://github.com/reflagcom/javascript/blob/77027aca6454feb7d5c7c41cde65838ccd06acf3/browser-sdk/FEEDBACK.md#reflagclientrequestfeedback-options) for more information +See [link](https://github.com/reflagcom/javascript/blob/6f9623f0d424b346a5c119743fdf10b41e5c0035/browser-sdk/FEEDBACK.md#reflagclientrequestfeedback-options) for more information ```ts const requestFeedback = useRequestFeedback(); @@ -1918,7 +1918,7 @@ function useSendFeedback(): (opts: UnassignedFeedback) => Promise< Returns a function to manually send feedback collected from a user. Note: When calling `useSendFeedback`, user/company must already be set. -See [link](https://github.com/reflagcom/javascript/blob/77027aca6454feb7d5c7c41cde65838ccd06acf3/browser-sdk/FEEDBACK.md#using-your-own-ui-to-collect-feedback) for more information +See [link](https://github.com/reflagcom/javascript/blob/6f9623f0d424b346a5c119743fdf10b41e5c0035/browser-sdk/FEEDBACK.md#using-your-own-ui-to-collect-feedback) for more information ```ts const sendFeedback = useSendFeedback(); diff --git a/sdk/@reflag/react-sdk/README.md b/sdk/@reflag/react-sdk/README.md index 32804e1..1eedf15 100644 --- a/sdk/@reflag/react-sdk/README.md +++ b/sdk/@reflag/react-sdk/README.md @@ -826,7 +826,7 @@ function FeedbackButton() { } ``` -See the [Feedback Documentation](https://github.com/reflagcom/javascript/blob/77027aca6454feb7d5c7c41cde65838ccd06acf3/packages/browser-sdk/FEEDBACK.md#manual-feedback-collection) for more information on `requestFeedback` options. +See the [Feedback Documentation](https://github.com/reflagcom/javascript/blob/6f9623f0d424b346a5c119743fdf10b41e5c0035/packages/browser-sdk/FEEDBACK.md#manual-feedback-collection) for more information on `requestFeedback` options. ### `useSendFeedback()` @@ -993,7 +993,7 @@ If you are running with strict Content Security Policies active on your website, ## Content Security Policy (CSP) -See [CSP](https://github.com/reflagcom/javascript/blob/77027aca6454feb7d5c7c41cde65838ccd06acf3/packages/browser-sdk/README.md#content-security-policy-csp) for info on using Reflag React SDK with CSP +See [CSP](https://github.com/reflagcom/javascript/blob/6f9623f0d424b346a5c119743fdf10b41e5c0035/packages/browser-sdk/README.md#content-security-policy-csp) for info on using Reflag React SDK with CSP ## License diff --git a/sdk/@reflag/vue-sdk/README.md b/sdk/@reflag/vue-sdk/README.md index 6a63a86..c95992e 100644 --- a/sdk/@reflag/vue-sdk/README.md +++ b/sdk/@reflag/vue-sdk/README.md @@ -556,7 +556,7 @@ const requestFeedback = useRequestFeedback(); ``` -See the [Feedback Documentation](https://github.com/reflagcom/javascript/blob/77027aca6454feb7d5c7c41cde65838ccd06acf3/packages/browser-sdk/FEEDBACK.md#manual-feedback-collection) for more information on `requestFeedback` options. +See the [Feedback Documentation](https://github.com/reflagcom/javascript/blob/6f9623f0d424b346a5c119743fdf10b41e5c0035/packages/browser-sdk/FEEDBACK.md#manual-feedback-collection) for more information on `requestFeedback` options. ### `useSendFeedback()` @@ -737,7 +737,7 @@ See the [migration guide](https://docs.reflag.com/supported-languages/migrating- ## Content Security Policy (CSP) -See [CSP](https://github.com/reflagcom/javascript/blob/77027aca6454feb7d5c7c41cde65838ccd06acf3/packages/browser-sdk/README.md#content-security-policy-csp) for info on using Reflag React SDK with CSP +See [CSP](https://github.com/reflagcom/javascript/blob/6f9623f0d424b346a5c119743fdf10b41e5c0035/packages/browser-sdk/README.md#content-security-policy-csp) for info on using Reflag React SDK with CSP ## License diff --git a/sdk/documents/browser-sdk/FEEDBACK.md b/sdk/documents/browser-sdk/FEEDBACK.md index 44fe7dd..9416ba3 100644 --- a/sdk/documents/browser-sdk/FEEDBACK.md +++ b/sdk/documents/browser-sdk/FEEDBACK.md @@ -284,7 +284,7 @@ See examples below. ![image](https://github.com/reflagcom/javascript/assets/331790/68805b38-e9f6-4de5-9f55-188216983e3c) -See [default English localization keys](https://github.com/reflagcom/javascript/tree/77027aca6454feb7d5c7c41cde65838ccd06acf3/packages/browser-sdk/src/feedback/ui/config/defaultTranslations.tsx) +See [default English localization keys](https://github.com/reflagcom/javascript/tree/6f9623f0d424b346a5c119743fdf10b41e5c0035/packages/browser-sdk/src/feedback/ui/config/defaultTranslations.tsx) for a reference of what translation keys can be supplied. ### Static language configuration @@ -398,7 +398,7 @@ For example, a dark mode theme might look like this: } ``` -Other examples of custom styling can be found in our [development example style-sheet](https://github.com/reflagcom/javascript/tree/77027aca6454feb7d5c7c41cde65838ccd06acf3/packages/browser-sdk/src/feedback/ui/index.css). +Other examples of custom styling can be found in our [development example style-sheet](https://github.com/reflagcom/javascript/tree/6f9623f0d424b346a5c119743fdf10b41e5c0035/packages/browser-sdk/src/feedback/ui/index.css). ## Using your own UI to collect feedback @@ -423,7 +423,7 @@ Reflag API. ### Manual feedback collection with custom UI Examples of a HTML-form that collects the relevant data can be found -in [feedback.html](https://github.com/reflagcom/javascript/tree/77027aca6454feb7d5c7c41cde65838ccd06acf3/packages/browser-sdk/example/feedback/feedback.html) and [feedback.jsx](https://github.com/reflagcom/javascript/tree/77027aca6454feb7d5c7c41cde65838ccd06acf3/packages/browser-sdk/example/feedback/Feedback.jsx). +in [feedback.html](https://github.com/reflagcom/javascript/tree/6f9623f0d424b346a5c119743fdf10b41e5c0035/packages/browser-sdk/example/feedback/feedback.html) and [feedback.jsx](https://github.com/reflagcom/javascript/tree/6f9623f0d424b346a5c119743fdf10b41e5c0035/packages/browser-sdk/example/feedback/Feedback.jsx). Once you have collected the feedback data, pass it along to `reflagClient.feedback()`: diff --git a/sdk/documents/react-native-sdk/README.md b/sdk/documents/react-native-sdk/README.md index 2b2fa71..d64af4d 100644 --- a/sdk/documents/react-native-sdk/README.md +++ b/sdk/documents/react-native-sdk/README.md @@ -19,7 +19,7 @@ A thin React Native wrapper around `@reflag/react-sdk`. For more usage details, see the [React SDK README](../../../supported-languages/react-sdk/README.md). -An Expo example app lives in [packages/react-native-sdk/dev/expo](https://github.com/reflagcom/javascript/tree/77027aca6454feb7d5c7c41cde65838ccd06acf3/packages/react-native-sdk/dev/expo). +An Expo example app lives in [packages/react-native-sdk/dev/expo](https://github.com/reflagcom/javascript/tree/6f9623f0d424b346a5c119743fdf10b41e5c0035/packages/react-native-sdk/dev/expo). ## Get started diff --git a/sdk/documents/react-sdk/README.md b/sdk/documents/react-sdk/README.md index 32804e1..1eedf15 100644 --- a/sdk/documents/react-sdk/README.md +++ b/sdk/documents/react-sdk/README.md @@ -826,7 +826,7 @@ function FeedbackButton() { } ``` -See the [Feedback Documentation](https://github.com/reflagcom/javascript/blob/77027aca6454feb7d5c7c41cde65838ccd06acf3/packages/browser-sdk/FEEDBACK.md#manual-feedback-collection) for more information on `requestFeedback` options. +See the [Feedback Documentation](https://github.com/reflagcom/javascript/blob/6f9623f0d424b346a5c119743fdf10b41e5c0035/packages/browser-sdk/FEEDBACK.md#manual-feedback-collection) for more information on `requestFeedback` options. ### `useSendFeedback()` @@ -993,7 +993,7 @@ If you are running with strict Content Security Policies active on your website, ## Content Security Policy (CSP) -See [CSP](https://github.com/reflagcom/javascript/blob/77027aca6454feb7d5c7c41cde65838ccd06acf3/packages/browser-sdk/README.md#content-security-policy-csp) for info on using Reflag React SDK with CSP +See [CSP](https://github.com/reflagcom/javascript/blob/6f9623f0d424b346a5c119743fdf10b41e5c0035/packages/browser-sdk/README.md#content-security-policy-csp) for info on using Reflag React SDK with CSP ## License diff --git a/supported-languages/browser-sdk/README.md b/supported-languages/browser-sdk/README.md index 2b5323f..5c12c31 100644 --- a/supported-languages/browser-sdk/README.md +++ b/supported-languages/browser-sdk/README.md @@ -71,7 +71,7 @@ if (isEnabled) { B. Script tag (client-side directly in html) -See [example/browser.html](https://github.com/reflagcom/javascript/tree/77027aca6454feb7d5c7c41cde65838ccd06acf3/packages/browser-sdk/example/browser.html) for a working example: +See [example/browser.html](https://github.com/reflagcom/javascript/tree/6f9623f0d424b346a5c119743fdf10b41e5c0035/packages/browser-sdk/example/browser.html) for a working example: ```html diff --git a/supported-languages/browser-sdk/feedback.md b/supported-languages/browser-sdk/feedback.md index 321e3f8..87b5976 100644 --- a/supported-languages/browser-sdk/feedback.md +++ b/supported-languages/browser-sdk/feedback.md @@ -284,7 +284,7 @@ See examples below. ![image](https://github.com/reflagcom/javascript/assets/331790/68805b38-e9f6-4de5-9f55-188216983e3c) -See [default English localization keys](https://github.com/reflagcom/javascript/tree/77027aca6454feb7d5c7c41cde65838ccd06acf3/packages/browser-sdk/src/feedback/ui/config/defaultTranslations.tsx) +See [default English localization keys](https://github.com/reflagcom/javascript/tree/6f9623f0d424b346a5c119743fdf10b41e5c0035/packages/browser-sdk/src/feedback/ui/config/defaultTranslations.tsx) for a reference of what translation keys can be supplied. ### Static language configuration @@ -398,7 +398,7 @@ For example, a dark mode theme might look like this: } ``` -Other examples of custom styling can be found in our [development example style-sheet](https://github.com/reflagcom/javascript/tree/77027aca6454feb7d5c7c41cde65838ccd06acf3/packages/browser-sdk/src/feedback/ui/index.css). +Other examples of custom styling can be found in our [development example style-sheet](https://github.com/reflagcom/javascript/tree/6f9623f0d424b346a5c119743fdf10b41e5c0035/packages/browser-sdk/src/feedback/ui/index.css). ## Using your own UI to collect feedback @@ -423,7 +423,7 @@ Reflag API. ### Manual feedback collection with custom UI Examples of a HTML-form that collects the relevant data can be found -in [feedback.html](https://github.com/reflagcom/javascript/tree/77027aca6454feb7d5c7c41cde65838ccd06acf3/packages/browser-sdk/example/feedback/feedback.html) and [feedback.jsx](https://github.com/reflagcom/javascript/tree/77027aca6454feb7d5c7c41cde65838ccd06acf3/packages/browser-sdk/example/feedback/Feedback.jsx). +in [feedback.html](https://github.com/reflagcom/javascript/tree/6f9623f0d424b346a5c119743fdf10b41e5c0035/packages/browser-sdk/example/feedback/feedback.html) and [feedback.jsx](https://github.com/reflagcom/javascript/tree/6f9623f0d424b346a5c119743fdf10b41e5c0035/packages/browser-sdk/example/feedback/Feedback.jsx). Once you have collected the feedback data, pass it along to `reflagClient.feedback()`: diff --git a/supported-languages/node-sdk/README.md b/supported-languages/node-sdk/README.md index 35c55f6..c816455 100644 --- a/supported-languages/node-sdk/README.md +++ b/supported-languages/node-sdk/README.md @@ -511,7 +511,7 @@ export default { }; ``` -See [examples/cloudflare-worker](https://github.com/reflagcom/javascript/tree/77027aca6454feb7d5c7c41cde65838ccd06acf3/packages/node-sdk/examples/cloudflare-worker/src/index.ts) for a deployable example. +See [examples/cloudflare-worker](https://github.com/reflagcom/javascript/tree/6f9623f0d424b346a5c119743fdf10b41e5c0035/packages/node-sdk/examples/cloudflare-worker/src/index.ts) for a deployable example. Reflag maintains a cached set of flag definitions in the memory of your worker which it uses to decide which flags to turn on for which users/companies. @@ -626,7 +626,7 @@ current working directory. | `logLevel` | string | The log level for the SDK (e.g., `"DEBUG"`, `"INFO"`, `"WARN"`, `"ERROR"`). Default: `INFO` | REFLAG_LOG_LEVEL | | `offline` | boolean | Operate in offline mode. Default: `false`, except when `NODE_ENV` is `test`, where it defaults to `true`. In offline mode the SDK does not fetch from Reflag and does not use `flagsFallbackProvider`. | REFLAG_OFFLINE | | `apiBaseUrl` | string | The base API URL for the Reflag servers. | REFLAG_API_BASE_URL | -| `flagOverrides` | Record | An object specifying flag values to override for testing or local development. See [examples/express/app.test.ts](https://github.com/reflagcom/javascript/tree/77027aca6454feb7d5c7c41cde65838ccd06acf3/packages/node-sdk/examples/express/app.test.ts) for how to use `flagOverrides` in tests. | REFLAG_FLAGS_ENABLED, REFLAG_FLAGS_DISABLED | +| `flagOverrides` | Record | An object specifying flag values to override for testing or local development. See [examples/express/app.test.ts](https://github.com/reflagcom/javascript/tree/6f9623f0d424b346a5c119743fdf10b41e5c0035/packages/node-sdk/examples/express/app.test.ts) for how to use `flagOverrides` in tests. | REFLAG_FLAGS_ENABLED, REFLAG_FLAGS_DISABLED | | `flagsFallbackProvider` | `FlagsFallbackProvider` | Optional provider used to load and save raw flag definitions for fallback startup when the initial live fetch fails. Available only through the constructor. Ignored in offline mode. | - | | `flagsSyncMode` | `"polling" \| "in-request" \| "push"` | Flag-definition sync mode. `push` subscribes to live updates, `polling` uses periodic background refresh, and `in-request` refreshes stale flags during request handling. Default: `"push"`. | - | | `flagsPushUrl` | string | Push endpoint used when `flagsSyncMode: "push"`. The SDK opens it as an authenticated streaming GET. Default: `https://front.reflag.com/sse/server`. | - | @@ -675,14 +675,16 @@ To get type checked flags, install the Reflag CLI: npm i --save-dev @reflag/cli ``` -then generate the types: +then set up the CLI and generate the types: ```sh +npx reflag init npx reflag flags types ``` -This will generate a `reflag.d.ts` containing all your flags. -Any flag look ups will now be checked against the flags that exist in Reflag. +`npx reflag init` signs you in to Reflag and saves its settings in `reflag.config.json`. Choose `node` when it asks for the output format; the default, `react`, generates declarations for the React SDK instead. The types are generated in `gen/flags.d.ts` by default, so make sure your `tsconfig.json` includes that file. + +Any flag look ups will now be checked against the flags that exist in Reflag. Run `npx reflag flags types` again when your flags change. Here's an example of a failed type check: @@ -962,7 +964,7 @@ app.get("/todos", async (_req, res) => { } ``` -See [examples/express/app.ts](https://github.com/reflagcom/javascript/tree/77027aca6454feb7d5c7c41cde65838ccd06acf3/packages/node-sdk/example/express/app.ts) for a full example. +See [examples/express/app.ts](https://github.com/reflagcom/javascript/tree/6f9623f0d424b346a5c119743fdf10b41e5c0035/packages/node-sdk/example/express/app.ts) for a full example. ## Remote flag evaluation with stored context diff --git a/supported-languages/react-native-sdk/README.md b/supported-languages/react-native-sdk/README.md index 2d61b10..7631d52 100644 --- a/supported-languages/react-native-sdk/README.md +++ b/supported-languages/react-native-sdk/README.md @@ -19,7 +19,7 @@ A thin React Native wrapper around `@reflag/react-sdk`. For more usage details, see the [React SDK README](../react-sdk/README.md). -An Expo example app lives in [packages/react-native-sdk/dev/expo](https://github.com/reflagcom/javascript/tree/77027aca6454feb7d5c7c41cde65838ccd06acf3/packages/react-native-sdk/dev/expo). +An Expo example app lives in [packages/react-native-sdk/dev/expo](https://github.com/reflagcom/javascript/tree/6f9623f0d424b346a5c119743fdf10b41e5c0035/packages/react-native-sdk/dev/expo). ## Get started diff --git a/supported-languages/react-native-sdk/globals.md b/supported-languages/react-native-sdk/globals.md index 1649213..530bc96 100644 --- a/supported-languages/react-native-sdk/globals.md +++ b/supported-languages/react-native-sdk/globals.md @@ -1862,7 +1862,7 @@ function useRequestFeedback(): (options: RequestFeedbackData) => void Returns a function to open up the feedback form Note: When calling `useRequestFeedback`, user/company must already be set. -See [link](https://github.com/reflagcom/javascript/blob/77027aca6454feb7d5c7c41cde65838ccd06acf3/browser-sdk/FEEDBACK.md#reflagclientrequestfeedback-options) for more information +See [link](https://github.com/reflagcom/javascript/blob/6f9623f0d424b346a5c119743fdf10b41e5c0035/browser-sdk/FEEDBACK.md#reflagclientrequestfeedback-options) for more information ```ts const requestFeedback = useRequestFeedback(); @@ -1918,7 +1918,7 @@ function useSendFeedback(): (opts: UnassignedFeedback) => Promise< Returns a function to manually send feedback collected from a user. Note: When calling `useSendFeedback`, user/company must already be set. -See [link](https://github.com/reflagcom/javascript/blob/77027aca6454feb7d5c7c41cde65838ccd06acf3/browser-sdk/FEEDBACK.md#using-your-own-ui-to-collect-feedback) for more information +See [link](https://github.com/reflagcom/javascript/blob/6f9623f0d424b346a5c119743fdf10b41e5c0035/browser-sdk/FEEDBACK.md#using-your-own-ui-to-collect-feedback) for more information ```ts const sendFeedback = useSendFeedback(); diff --git a/supported-languages/react-sdk/README.md b/supported-languages/react-sdk/README.md index d61b717..769d122 100644 --- a/supported-languages/react-sdk/README.md +++ b/supported-languages/react-sdk/README.md @@ -826,7 +826,7 @@ function FeedbackButton() { } ``` -See the [Feedback Documentation](https://github.com/reflagcom/javascript/blob/77027aca6454feb7d5c7c41cde65838ccd06acf3/packages/browser-sdk/FEEDBACK.md#manual-feedback-collection) for more information on `requestFeedback` options. +See the [Feedback Documentation](https://github.com/reflagcom/javascript/blob/6f9623f0d424b346a5c119743fdf10b41e5c0035/packages/browser-sdk/FEEDBACK.md#manual-feedback-collection) for more information on `requestFeedback` options. ### `useSendFeedback()` @@ -993,7 +993,7 @@ If you are running with strict Content Security Policies active on your website, ## Content Security Policy (CSP) -See [CSP](https://github.com/reflagcom/javascript/blob/77027aca6454feb7d5c7c41cde65838ccd06acf3/packages/browser-sdk/README.md#content-security-policy-csp) for info on using Reflag React SDK with CSP +See [CSP](https://github.com/reflagcom/javascript/blob/6f9623f0d424b346a5c119743fdf10b41e5c0035/packages/browser-sdk/README.md#content-security-policy-csp) for info on using Reflag React SDK with CSP ## License diff --git a/supported-languages/vue-sdk/README.md b/supported-languages/vue-sdk/README.md index d483056..30c82d3 100644 --- a/supported-languages/vue-sdk/README.md +++ b/supported-languages/vue-sdk/README.md @@ -556,7 +556,7 @@ const requestFeedback = useRequestFeedback(); ``` -See the [Feedback Documentation](https://github.com/reflagcom/javascript/blob/77027aca6454feb7d5c7c41cde65838ccd06acf3/packages/browser-sdk/FEEDBACK.md#manual-feedback-collection) for more information on `requestFeedback` options. +See the [Feedback Documentation](https://github.com/reflagcom/javascript/blob/6f9623f0d424b346a5c119743fdf10b41e5c0035/packages/browser-sdk/FEEDBACK.md#manual-feedback-collection) for more information on `requestFeedback` options. ### `useSendFeedback()` @@ -737,7 +737,7 @@ See the [migration guide](https://docs.reflag.com/supported-languages/migrating- ## Content Security Policy (CSP) -See [CSP](https://github.com/reflagcom/javascript/blob/77027aca6454feb7d5c7c41cde65838ccd06acf3/packages/browser-sdk/README.md#content-security-policy-csp) for info on using Reflag React SDK with CSP +See [CSP](https://github.com/reflagcom/javascript/blob/6f9623f0d424b346a5c119743fdf10b41e5c0035/packages/browser-sdk/README.md#content-security-policy-csp) for info on using Reflag React SDK with CSP ## License