
Product
Introducing Socket Scanning for VS Code Marketplace Extensions
Socket now scans VS Code extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.
@featureflip/browser
Advanced tools
Framework-agnostic browser SDK for evaluating Featureflip feature flags.
npm install @featureflip/browser-sdk
import { FeatureflipClient } from '@featureflip/browser-sdk';
const client = new FeatureflipClient({
clientKey: 'your-client-sdk-key',
});
await client.initialize();
const showBanner = client.boolVariation('show-banner', false);
new FeatureflipClient(config: FeatureflipClientConfig)
| Option | Type | Default | Description |
|---|---|---|---|
clientKey | string | (required) | Client SDK key from your project settings |
baseUrl | string | https://eval.featureflip.io | Evaluation API base URL |
context | Record<string, unknown> | {} | Initial evaluation context (user attributes) |
streaming | boolean | true | Enable SSE streaming for real-time updates |
initTimeout | number | 10000 | Timeout in ms for the initial evaluate request |
initialize(): Promise<void>Fetches all flag values from the server. Must be called before reading variations. Opens an SSE streaming connection if streaming is enabled.
boolVariation(key: string, defaultValue: boolean): booleanReturns a boolean flag value, or defaultValue if the flag is missing or not a boolean.
stringVariation(key: string, defaultValue: string): stringReturns a string flag value, or defaultValue if the flag is missing or not a string.
numberVariation(key: string, defaultValue: number): numberReturns a number flag value, or defaultValue if the flag is missing or not a number.
jsonVariation<T>(key: string, defaultValue: T): TReturns a flag value cast to T, or defaultValue if the flag is missing.
identify(context: Record<string, unknown>): Promise<void>Re-evaluates all flags with a new context (e.g., after login). Emits change events for any flags whose values changed.
await client.identify({ user_id: '123', plan: 'pro' });
on(event: EventType, handler: EventHandler): voidSubscribe to events.
'ready' -- fired after initialize() completes'change' -- fired when flag values change (receives a FlagChanges object)'error' -- fired on streaming or network errorsclient.on('change', (changes) => {
console.log('Flags changed:', changes);
});
off(event: EventType, handler: EventHandler): voidUnsubscribe from events.
close(): voidCloses the SSE streaming connection and cleans up resources.
Use FeatureflipClient.forTesting() to create a client with predetermined flag values -- no network calls.
const client = FeatureflipClient.forTesting({
'show-banner': true,
'button-color': 'blue',
});
client.boolVariation('show-banner', false); // true
client.stringVariation('button-color', 'red'); // 'blue'
FAQs
Browser SDK for Featureflip - framework-agnostic feature flag client
The npm package @featureflip/browser receives a total of 12 weekly downloads. As such, @featureflip/browser popularity was classified as not popular.
We found that @featureflip/browser demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Product
Socket now scans VS Code extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.

Research
/Security News
Socket uncovered two malicious VS Code themes in a GlassWorm-linked cluster with thousands of installs across VS Code Marketplace and Open VSX.

Security News
/Company News
Capital One is partnering with Socket to proactively secure its open source supply chain.