
Research
TeamPCP-Linked Supply Chain Attack Hits SAP CAP and Cloud MTA npm Packages
Compromised SAP CAP npm packages download and execute unverified binaries, creating urgent supply chain risk for affected developers and CI/CD environments.
Effortlessly track and debug errors in your JavaScript applications with Rollbar. This package includes advanced error tracking features and an intuitive interface to help you identify and fix issues more quickly.
Proactively discover, predict, and resolve errors in real-time with Rollbar’s error monitoring platform. Start tracking errors today!
Important: Session Replay is now available in beta! This feature captures and replays user sessions around errors, helping you understand exactly what happened before an error occurred. Replay can also be triggered based on custom conditions to capture critical user flows.
Because Session Replay includes additional recording capabilities, it uses a separate, larger bundle. If you want to use Session Replay, import from rollbar/replay instead of rollbar:
// Standard bundle (smaller, no replay)
import Rollbar from 'rollbar';
// Session Replay bundle (includes replay capabilities)
import Rollbar from 'rollbar/replay';
Choose the standard bundle if you don't need replay functionality.
For Session Replay configuration and usage, see our Session Replay documentation.
Using npm:
npm install --save rollbar
Using yarn:
yarn add rollbar
For CDN/script tag installation, see Quick Start → Browser
First, sign up for a Rollbar account if you haven't already.
For the recommended snippet-based installation with automatic error capture and telemetry, see our Browser JS – Quick Start documentation.
const Rollbar = require('rollbar');
const rollbar = new Rollbar({
accessToken: 'POST_SERVER_ITEM_ACCESS_TOKEN',
captureUncaught: true,
captureUnhandledRejections: true,
payload: { code_version: '1.0.0' },
});
// log a generic message and send to rollbar
rollbar.log('Hello world!');
For framework integrations (Express, Koa, Hapi, and more), custom error handlers, and advanced configuration, see our Node.js server configuration documentation.
For complete usage instructions and configuration reference, see our Javascript SDK docs.
See the examples directory for detailed integration examples with various frameworks and build tools including React, Angular, Vue.js, Next.js, and more.
See our Releases page for a list of all releases, including changes.
If you run into any issues, please email us at support@rollbar.com.
For bug reports, please open an issue on GitHub.
For development setup, guidelines, and instructions on submitting pull requests, please see our Contributing Guide.
Sentry is another popular error tracking and monitoring tool. It provides similar functionalities to Rollbar, including real-time error tracking, performance monitoring, and detailed error reports. Sentry also supports a wide range of programming languages and frameworks.
Airbrake is an error monitoring tool that provides real-time error tracking and detailed error reports. It offers similar features to Rollbar, such as capturing uncaught exceptions and custom logging. Airbrake also integrates with various development tools and services.
Bugsnag is an error monitoring tool that helps developers to detect, diagnose, and fix errors in their applications. It provides similar functionalities to Rollbar, including real-time error tracking, custom logging, and detailed error reports. Bugsnag also offers features like user tracking and release tracking.
FAQs
Effortlessly track and debug errors in your JavaScript applications with Rollbar. This package includes advanced error tracking features and an intuitive interface to help you identify and fix issues more quickly.
The npm package rollbar receives a total of 435,084 weekly downloads. As such, rollbar popularity was classified as popular.
We found that rollbar demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 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
Compromised SAP CAP npm packages download and execute unverified binaries, creating urgent supply chain risk for affected developers and CI/CD environments.

Company News
Socket has acquired Secure Annex to expand extension security across browsers, IDEs, and AI tools.

Research
/Security News
Socket is tracking cloned Open VSX extensions tied to GlassWorm, with several updated from benign-looking sleepers into malware delivery vehicles.