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
rudderstack/analytics-js-service-worker@3.2.24
Updated on Apr 28, 2025
@rudderstack/analytics-js-integrations@3.13.2
Updated on Apr 28, 2025
rudder-sdk-js@2.51.1
Updated on Apr 28, 2025
@rudderstack/analytics-js@3.17.0
Updated on Apr 28, 2025
@rudderstack/analytics-js-plugins@3.8.1
Updated on Apr 28, 2025
@rudderstack/analytics-js-cookies@0.4.24
Updated on Apr 28, 2025
TypeScript (49.65%)
JavaScript (43.46%)
HTML (6.46%)
Shell (0.43%)
Total Downloads
241,412
Last Day
1,263
Last Week
5,465
Last Month
24,645
Last Year
220,677
NOASSERTION License
154 Stars
4,341 Commits
90 Forks
11 Watchers
19 Branches
97 Contributors
Updated on May 09, 2025
Minified
Minified + Gzipped
Latest Version
3.2.24
Package Id
@rudderstack/analytics-js-service-worker@3.2.24
Unpacked Size
1.36 MB
Size
368.36 kB
File Count
12
NPM Version
10.2.4
Node Version
20.11.1
Published on
Apr 28, 2025
Cumulative downloads
Total Downloads
Last Day
215%
1,263
Compared to previous day
Last Week
18.5%
5,465
Compared to previous week
Last Month
14%
24,645
Compared to previous month
Last Year
964.3%
220,677
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
security policy file detected
Details
Reason
all changesets reviewed
Reason
30 commit(s) and 5 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
Reason
SAST tool is not run on all commits -- score normalized to 9
Details
Reason
dependency not pinned by hash detected -- score normalized to 6
Details
Reason
branch protection is not maximal on development and all release branches
Details
Reason
5 existing vulnerabilities detected
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
project is not fuzzed
Details
Score
Last Scanned on 2025-04-28
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