
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
@statsig/js-client
Advanced tools
Statsig helps you move faster with feature gates (feature flags), and/or dynamic configs. It also allows you to run A/B/n tests to validate your new features and understand their impact on your KPIs. If you're new to Statsig, check out our product and cre
@statsig/js-client is a JavaScript client library for integrating with Statsig, a feature management and experimentation platform. It allows developers to manage feature flags, run A/B tests, and gather insights on user behavior to make data-driven decisions.
Initialize Statsig Client
This feature allows you to initialize the Statsig client with your client API key, which is necessary to start using the Statsig services in your application.
const statsig = require('@statsig/js-client');
statsig.initialize('client-api-key');
Check Feature Gate
This feature allows you to check if a particular feature gate is enabled for the current user. It helps in conditionally rendering features based on the gate status.
const isFeatureEnabled = statsig.checkGate('new_feature');
console.log(isFeatureEnabled);
Get Experiment Parameter
This feature allows you to retrieve a specific parameter from an experiment, enabling you to customize user experiences based on experiment configurations.
const parameter = statsig.getExperimentParameter('experiment_name', 'parameter_name');
console.log(parameter);
LaunchDarkly is a feature management platform that provides similar functionality to Statsig, such as feature flagging and experimentation. It offers a robust set of tools for managing feature releases and conducting A/B tests, with a focus on real-time updates and scalability.
Unleash is an open-source feature management solution that provides feature toggling capabilities. It is a lightweight alternative to Statsig, focusing on simplicity and ease of integration, especially for teams looking for an open-source option.
Statsig helps you move faster with feature gates (feature flags), and/or dynamic configs. It also allows you to run A/B/n tests to validate your new features and understand their impact on your KPIs. If you're new to Statsig, check out our product and create an account at statsig.com.
Read through the Documentation or check out the Samples.
Clients
Product Bundles
Framework Specific Bindings
If you need any assistance or just have a question, feel free to reach out to us on Slack.
FAQs
Statsig helps you move faster with feature gates (feature flags), and/or dynamic configs. It also allows you to run A/B/n tests to validate your new features and understand their impact on your KPIs. If you're new to Statsig, check out our product and cre
The npm package @statsig/js-client receives a total of 323,930 weekly downloads. As such, @statsig/js-client popularity was classified as popular.
We found that @statsig/js-client demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers 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.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.