Installations
npm install statsig-node
Releases
6.0.1 - Fix DataAdapter format
Published on 19 Nov 2024
6.0.0 - Breaking Change on Core API, DataAapter Keys, Environment tier, and getClientIntializeResponse
Published on 18 Nov 2024
5.30.0 - Add support for StatsigOptions.networkOverrideFunc
Published on 30 Oct 2024
5.29.0 - add ID type to client initialize response and memoize last UA parse
Published on 19 Oct 2024
5.28.0 - Initialize details & Enforce targeting for persisted assignments
Published on 07 Oct 2024
5.27.2 - Evaluation process optimization
Published on 24 Sept 2024
Developer
statsig-io
Developer Guide
Module System
CommonJS
Min. Node Version
Typescript Support
Yes
Node Version
18.20.5
NPM Version
10.8.2
Statistics
20 Stars
811 Commits
15 Forks
4 Watching
56 Branches
20 Contributors
Updated on 19 Nov 2024
Languages
TypeScript (97.42%)
JavaScript (2.58%)
Total Downloads
Cumulative downloads
Total Downloads
17,454,159
Last day
-28.4%
34,640
Compared to previous day
Last week
-6.8%
227,485
Compared to previous week
Last month
-6.7%
1,006,781
Compared to previous month
Last year
106%
11,210,735
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dependencies
4
Dev Dependencies
24
Statsig Node Server SDK
The Node.js SDK for multi-user, server side environments. If you need a SDK for another language or single user client environment, check out our other SDKs.
Statsig helps you move faster with Feature Gates (Feature Flags) and Dynamic Configs. It also allows you to run A/B tests to validate your new features and understand their impact on your KPIs. If you're new to Statsig, create an account at statsig.com.
Getting Started
Check out our SDK docs to get started.
Testing
Each server SDK is tested at multiple levels - from unit to integration and e2e tests. Our internal e2e test harness runs daily against each server SDK, while unit and integration tests can be seen in the respective github repos of each SDK. For node, the RulesetsEvalConsistency.test.js
runs a validation test on local rule/condition evaluation for node against the results in the statsig backend.
No vulnerabilities found.
Reason
30 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 10
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: ISC License: LICENSE:0
Reason
1 existing vulnerabilities detected
Details
- Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275
Reason
dependency not pinned by hash detected -- score normalized to 2
Details
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/kong.yml:34: update your workflow using https://app.stepsecurity.io/secureworkflow/statsig-io/node-js-server-sdk/kong.yml/main?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/release-bot.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/statsig-io/node-js-server-sdk/release-bot.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/scheduler.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/statsig-io/node-js-server-sdk/scheduler.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tests.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/statsig-io/node-js-server-sdk/tests.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tests.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/statsig-io/node-js-server-sdk/tests.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tests.yml:29: update your workflow using https://app.stepsecurity.io/secureworkflow/statsig-io/node-js-server-sdk/tests.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tests.yml:33: update your workflow using https://app.stepsecurity.io/secureworkflow/statsig-io/node-js-server-sdk/tests.yml/main?enable=pin
- Warn: npmCommand not pinned by hash: .github/workflows/kong.yml:40
- Warn: npmCommand not pinned by hash: .github/workflows/tests.yml:40
- Info: 0 out of 6 GitHub-owned GitHubAction dependencies pinned
- Info: 0 out of 1 third-party GitHubAction dependencies pinned
- Info: 1 out of 3 npmCommand dependencies pinned
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
- Warn: no topLevel permission defined: .github/workflows/kong.yml:1
- Warn: no topLevel permission defined: .github/workflows/release-bot.yml:1
- Warn: no topLevel permission defined: .github/workflows/scheduler.yml:1
- Warn: no topLevel permission defined: .github/workflows/tests.yml:1
- Info: no jobLevel write permissions found
Reason
no SAST tool detected
Details
- Warn: no pull requests merged into dev branch
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Score
4.9
/10
Last Scanned on 2024-11-18
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More