# @bugsnag/js

> Universal Javascript error reporting. Automatically detect JavaScript errors in the browser and Node.js, with plugins for React, Vue, Angular, Express, Restify and Koa.

Latest version **8.10.0** (published 2026-07-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install @bugsnag/js
pnpm add @bugsnag/js
yarn add @bugsnag/js
bun add @bugsnag/js
```

## Health

**Score 60/100 (C)** — status: active.

Positive: has types; no vulnerabilities; recently updated; high maintenance score.

Warnings: low downloads; no esm support.

## Facts

| | |
|---|---|
| Version | 8.10.0 |
| Published | 2026-07-10 |
| First published | 2018-09-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 3.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 893 |
| Author | Bugsnag |
| Maintainers | sb--rohandhiman, sb-gulshans, smartbear_devops, sb_shyamnandlagishetti, sb-gaurava, sb-jigneshr, sb-priyankap, anshuman_singh |
| Keywords | exception, bugsnag, error, javascript, browsers, monitoring, reporting, stability, client-side, server-side |

## Links

- npm: https://www.npmjs.com/package/@bugsnag/js
- Repository: git@github.com:bugsnag/bugsnag-js
- Homepage: https://www.bugsnag.com/
- npm.io page: https://npm.io/package/@bugsnag/js

## Dependencies (2)

- [@bugsnag/node](https://npm.io/package/@bugsnag/node.md) ^8.10.0
- [@bugsnag/browser](https://npm.io/package/@bugsnag/browser.md) ^8.10.0

## Alternatives

- [@sentry/react-native](https://npm.io/package/@sentry/react-native.md) — 2.6M weekly downloads
- [@ardatan/aggregate-error](https://npm.io/package/@ardatan/aggregate-error.md) — 708.1K weekly downloads
- [custom-error-generator](https://npm.io/package/custom-error-generator.md) — 2.0K weekly downloads
- [@technik-sde/prosemirror-recreate-transform](https://npm.io/package/@technik-sde/prosemirror-recreate-transform.md) — 1.5K weekly downloads
- [@suchipi/error-utils](https://npm.io/package/@suchipi/error-utils.md) — 78 weekly downloads

## Recent versions

- 8.10.0 (latest) — 2026-07-10
- 8.0.0-alpha.13 (next) — 2024-08-05
- 6.2.0-alpha.1 (alpha) — 2019-04-12
- 7.0.0-pre-alpha-ben.6 (pre-alpha-ben) — 2019-04-09
- 8.9.0 — 2026-04-08
- 8.8.1 — 2026-01-26
- 8.8.0 — 2026-01-20
- 8.6.0 — 2025-09-25
- 8.4.0 — 2025-06-18
- 8.2.0 — 2025-01-27
- 8.1.2 — 2024-10-25
- 8.1.1 — 2024-10-23
- 8.1.0 — 2024-10-23
- 8.0.0 — 2024-08-29
- 8.0.0-alpha.12 — 2024-07-31
- … 136 more at https://npm.io/package/@bugsnag/js/versions

## README

# @bugsnag/js

Universal JavaScript notifier.

This package contains both `@bugsnag/browser` and `@bugsnag/node` and the appropriate one will be included in your application.

## Node.js

In Node, importing `'@bugsnag/js'` will provide the [`@bugsnag/node`](../node) module.

## Browser

In various bundlers, importing `'@bugsnag/js'` will provide the [`@bugsnag/browser`](../browser) module.

| Bundler  | Support |
| ---------- | -------------- |
| Browserify | Supports the package.json `"browser"` field by default |
| Webpack | Supports the package.json `"browser"` field by default |
| Rollup | Set `browser: true` in the [node-resolve plugin](https://github.com/rollup/rollup-plugin-node-resolve) |

**Note**: by using this browser-specific entrypoint, none of the node-specific code will be included in your bundle.

## License

This package is free software released under the MIT License. See [LICENSE.txt](./LICENSE.txt) for details.

---
_Source: https://npm.io/package/@bugsnag/js · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
