Gathering detailed insights and metrics for @rudderstack/analytics-js-service-worker
Gathering detailed insights and metrics for @rudderstack/analytics-js-service-worker
Gathering detailed insights and metrics for @rudderstack/analytics-js-service-worker
Gathering detailed insights and metrics for @rudderstack/analytics-js-service-worker
JavaScript SDK for RudderStack - the Customer Data Platform for Developers.
npm install @rudderstack/analytics-js-service-worker
Typescript
Module System
Node Version
NPM Version
88.5
Supply Chain
100
Quality
97.8
Maintenance
100
Vulnerability
93.6
License
rudderstack/analytics-js-service-worker@3.2.27
Updated on Jun 23, 2025
@rudderstack/analytics-js-integrations@3.14.3
Updated on Jun 23, 2025
rudder-sdk-js@2.51.4
Updated on Jun 23, 2025
@rudderstack/analytics-js@3.21.0
Updated on Jun 23, 2025
@rudderstack/analytics-js-plugins@3.10.2
Updated on Jun 23, 2025
@rudderstack/analytics-js-cookies@0.4.27
Updated on Jun 23, 2025
TypeScript (53.57%)
JavaScript (39.54%)
HTML (6.46%)
Shell (0.43%)
Total Downloads
261,731
Last Day
98
Last Week
5,546
Last Month
25,784
Last Year
237,385
NOASSERTION License
159 Stars
4,476 Commits
90 Forks
11 Watchers
20 Branches
95 Contributors
Updated on Jun 26, 2025
Minified
Minified + Gzipped
Latest Version
3.2.27
Package Id
@rudderstack/analytics-js-service-worker@3.2.27
Unpacked Size
1.35 MB
Size
367.70 kB
File Count
12
NPM Version
10.9.2
Node Version
22.15.0
Published on
Jun 23, 2025
Cumulative downloads
Total Downloads
Last Day
6.5%
98
Compared to previous day
Last Week
-21.3%
5,546
Compared to previous week
Last Month
9.6%
25,784
Compared to previous month
Last Year
875%
237,385
Compared to previous year
No dependencies detected.
The Customer Data Platform for Developers
Website · Documentation · Community Slack
RudderStack JavaScript SDK service worker that can be used in browser extensions and serverless runtimes. It exposes the same interface and features as the Node.js SDK.
For detailed documentation on the RudderStack JavaScript SDK, click here.
To install the package via NPM, run the following command:
1npm install @rudderstack/analytics-js-service-worker --save
1import { Analytics } from '@rudderstack/analytics-js-service-worker'; 2 3const rudderClient = new Analytics('<WRITE_KEY>', '<DATA_PLANE_URL>');
Note that this NPM module is only meant to be used for a service worker usage. If you want to integrate RudderStack with your Node.js application, refer to the RudderStack Node.js repository. |
---|
RudderStack JS SDK can be used in Chrome Extensions with manifest v3, both as a content script (via the JavaScript SDK package) or as a background script service worker (via the service worker package).
For more details, see Chrome Extensions Usage.
RudderStack JS SDK service worker can be used in serverless runtimes like Cloudflare Workers or Vercel Edge functions.
For more details, see:
Look for run scripts in the package.json
file for getting the browser minified and non-minified builds. The builds are updated in the dist
folder of the directory. Among the others, some of the important ones are:
npm run build:package
: This command outputs the dist/npm folder that contains the NPM package contents.This project is licensed under the Elastic License 2.0. See the LICENSE.md file for details. Review the license terms to understand your permissions and restrictions.
If you have any questions about licensing, please contact us or refer to the official Elastic licensing page.
We invite you to contribute to this project. For more information on how to contribute, please see here.
For more information on any of the sections covered in this readme, you can contact us or start a conversation on our Slack channel.
No vulnerabilities found.
Reason
30 commit(s) and 2 issue activity found in the last 90 days -- score normalized to 10
Reason
all changesets reviewed
Reason
security policy file detected
Details
Reason
no binaries found in the repo
Reason
SAST tool is run on all commits
Details
Reason
license file detected
Details
Reason
branch protection is not maximal on development and all release branches
Details
Reason
dependency not pinned by hash detected -- score normalized to 5
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
dangerous workflow patterns detected
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
project is not fuzzed
Details
Reason
12 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-06-23
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