Skip to content

JavaScript error handling tool for BugSnag. Monitor and report JavaScript bugs & errors.

License

Notifications You must be signed in to change notification settings

bugsnag/bugsnag-js

Folders and files

NameName
Last commit message
Last commit date
Mar 27, 2025
Apr 1, 2025
Jan 30, 2025
Feb 14, 2025
Feb 20, 2025
Feb 14, 2025
Jan 24, 2025
Mar 12, 2025
Apr 4, 2025
Mar 26, 2025
Apr 7, 2020
Feb 13, 2020
Mar 17, 2021
Apr 19, 2022
Dec 8, 2022
Sep 16, 2024
Jun 22, 2022
Mar 12, 2025
Jan 27, 2025
Oct 30, 2024
Nov 13, 2020
Feb 20, 2025
Sep 26, 2024
Aug 28, 2024
Sep 24, 2020
Mar 12, 2021
Dec 2, 2022
Mar 6, 2025
Jan 24, 2025
Mar 4, 2025
Mar 11, 2025
Feb 14, 2025
Oct 1, 2024

Repository files navigation

SmartBear BugSnag logo

Error monitoring & reporting for JavaScript

Documentation Build status OpenSSF Scorecard

Automatically detect JavaScript errors in the browser, Node.js and React Native, with plugins for React, Vue, Angular, Express, Restify and Koa. Get cross-platform error detection for handled and unhandled errors with real-time error alerts and detailed diagnostic reports.

Learn more about JavaScript error reporting and React Native error reporting from Bugsnag.


This is a monorepo (managed with Lerna containing our universal error reporting client @bugsnag/js, and our React Native client @bugsnag/react-native, along with:

Etc. See packages for a full list of contents.

Getting started

  1. Create a Bugsnag account
  2. Complete the instructions in the integration guide
  3. Report handled exceptions using Bugsnag.notify()
  4. Customize your integration using the configuration options

Integrating with frameworks

Use the following plugins and guides to integrate Bugsnag with various frameworks.

Browser

Framework Bugsnag plugin Documentation
Vue @bugsnag/plugin-vue Vue docs
React @bugsnag/plugin-react React docs
Angular @bugsnag/plugin-angular Angular docs

Desktop

Framework Bugsnag notifier Documentation
Electron @bugsnag/electron Electron docs

Server

Framework Bugsnag plugin Documentation
Koa @bugsnag/plugin-koa Koa docs
Express @bugsnag/plugin-express Express docs
Restify @bugsnag/plugin-restify Restify docs

Mobile

Framework Bugsnag notifier Documentation
React Native @bugsnag/react-native React Native docs

Support

Contributing

Most updates to this repo will be made by Bugsnag employees. We are unable to accommodate significant external PRs such as features additions or any large refactoring, however minor fixes are welcome. See contributing for more information.

Development quick start

# Clone the repository
git clone git@github.com:bugsnag/bugsnag-js.git --recursive
cd bugsnag-js

# Install top-level dependencies
npm i

# Build the standalone notifiers and plugins
npm run build

# Run the unit tests
npm run test:unit

# Run tests for a specific package
npm run test:unit -- --testPathPattern="packages/react-native"

# Generate a code coverage report
npm run test:unit -- --coverage

# Run the linter
npm run test:lint

# Run the typescript compatibility tests
npm run test:types

See contributing for more information.

License

All packages in this repository are released under the MIT License. See LICENSE.txt for details.