Gathering detailed insights and metrics for @rudderstack/analytics-js
Gathering detailed insights and metrics for @rudderstack/analytics-js
Gathering detailed insights and metrics for @rudderstack/analytics-js
Gathering detailed insights and metrics for @rudderstack/analytics-js
rudder-sdk-js
RudderStack JavaScript SDK
@rudderstack/analytics-js-cookies
RudderStack JavaScript SDK Cookies Utilities
@rudderstack/analytics-js-service-worker
RudderStack JavaScript Service Worker SDK
analytics-js-monorepo-beta-v3
Monorepo accommodating Rudderstack Analytics JS SDK
JavaScript SDK for RudderStack - the Customer Data Platform for Developers.
npm install @rudderstack/analytics-js
Typescript
Module System
Node Version
NPM Version
100
Supply Chain
100
Quality
98.3
Maintenance
100
Vulnerability
93.6
License
@rudderstack/analytics-js-loading-scripts@3.0.57
Published on 04 Dec 2024
@rudderstack/analytics-js@3.11.14
Published on 04 Dec 2024
@rudderstack/analytics-js-plugins@3.6.17
Published on 04 Dec 2024
rudderstack/analytics-js-service-worker@3.2.15
Published on 22 Nov 2024
@rudderstack/analytics-js-integrations@3.11.11
Published on 22 Nov 2024
@rudderstack/analytics-js-loading-scripts@3.0.56
Published on 22 Nov 2024
Updated on 05 Dec 2024
TypeScript (47.5%)
JavaScript (44.63%)
HTML (7.63%)
Shell (0.24%)
Cumulative downloads
Total Downloads
Last day
25.8%
Compared to previous day
Last week
2.2%
Compared to previous week
Last month
-4.2%
Compared to previous month
Last year
5,769.6%
Compared to previous year
No dependencies detected.
The Customer Data Platform for Developers
Website · Documentation · Community Slack
RudderStack JavaScript SDK for browsers.
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 --save
Note that this NPM module is only meant to be used for a browser installation. If you want to integrate RudderStack with your Node.js application, refer to the RudderStack Node.js repository.
Default export will fetch the plugins during runtime as federated modules in separate requests.
1import { RudderAnalytics } from '@rudderstack/analytics-js'; 2 3const analytics = new RudderAnalytics(); 4analytics.load(<WRITE_KEY>, <DATA_PLANE_URL>);
Bundled export will contain the plugins code as part of the bundle in build time.
1import { RudderAnalytics } from '@rudderstack/analytics-js/bundled'; 2 3const analytics = new RudderAnalytics(); 4analytics.load(<WRITE_KEY>, <DATA_PLANE_URL>);
Legacy export will contain the plugins code as part of the bundle in build time and supports legacy browsers like IE11.
1import { RudderAnalytics } from '@rudderstack/analytics-js/legacy'; 2 3const analytics = new RudderAnalytics(); 4analytics.load(<WRITE_KEY>, <DATA_PLANE_URL>);
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:browser:modern
: This outputs dist/cdn/modern folder that contains the CDN package contents.npm run build:npm
: This outputs dist/npm folder that contains the NPM package contents.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:
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
all changesets reviewed
Reason
security policy file detected
Details
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
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
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
project is not fuzzed
Details
Reason
11 existing vulnerabilities detected
Details
Score
Last Scanned on 2024-11-25
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