Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
@flipt-io/flipt
Advanced tools
This directory contains the TypeScript source code for the Flipt server-side client.
API documentation is available at https://www.flipt.io/docs/reference/overview.
npm i @flipt-io/flipt@{version}
In your Node code you can import this client and use it as so:
import { FliptClient } from "@flipt-io/flipt";
const fliptClient = new FliptClient();
async function evaluate() {
const variantEvaluationResponse = await fliptClient.evaluation.variant({
namespaceKey: "default",
flagKey: "flag1",
entityId: "entity",
context: { fizz: "buzz" }
});
console.log(variantEvaluationResponse);
}
There is a more detailed example in the examples directory.
There is support for Datadog RUM through this client. This allows you to track the values of feature flag evaluation and how it relates to active browser sessions.
You can first install the datadog RUM client like so:
npm install --save @datadog/browser-rum
To start tracking feature flags on Datadog:
import { datadogRum } from "@datadog/browser-rum";
import { FliptClient, FliptMetrics } from "@flipt-io/flipt";
datadogRum.init({
applicationId: "<APPLICATION_ID>",
clientToken: "<CLIENT_TOKEN>",
site: "datadoghq.com",
service: "<SERVICE_NAME>",
env: "<ENV_NAME>",
enableExperimentalFeatures: ["feature_flags"],
sessionSampleRate: 100,
sessionReplaySampleRate: 20,
trackUserInteractions: true,
trackResources: true,
trackLongTasks: true,
defaultPrivacyLevel: "mask-user-input"
});
datadogRum.startSessionReplayRecording();
const metricsClient = new FliptMetrics(
new FliptClient({
url: "http://localhost:8080"
}).evaluation,
datadogRum
);
const response = await metricsClient.variant({
namespaceKey: "default",
flagKey: "hello-this",
entityId: uuidv4(),
context: {}
});
FAQs
Flipt Server SDK
The npm package @flipt-io/flipt receives a total of 13,570 weekly downloads. As such, @flipt-io/flipt popularity was classified as popular.
We found that @flipt-io/flipt 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.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.