getsentry /sentry-javascript

Official Sentry SDKs for JavaScript

★ 8,776⑂ 1,890👁 115⑃ 15,422● 9,776▤ 766
TypeScriptNOASSERTIONCreated 2012-02-01sentry.io
Download: 11.12.011.12.0 ↓11.12.02026-11-10
+0
Daily
8,776
stars
1,890
forks
115
watchers
15,422
prs
9,776
issues
766
releases

README

_Bad software is everywhere, and we're tired of it. Sentry is on a mission to help developers write better software
faster, so we can get back to enjoying technology. If you want to join us
Check out our open positions_





 Official Sentry SDKs for JavaScript


  


This is the next line of Sentry JavaScript SDKs, comprised in the @sentry/ namespace. It will provide a more
convenient interface and improved consistency between various JavaScript environments.

 Links

- 
- 
- 
- 
- 

 Contents

- Contributing
- Supported Platforms
- Installation and Usage
- Other Packages
- Bug Bounty Program

 Supported Platforms

For each major JavaScript platform, there is a specific high-level SDK that provides all the tools you need in a single
package. Please refer to the README and instructions of those SDKs for more detailed information:

- @sentry/browser: SDK for Browsers
- @sentry/node: SDK for Node including
  integrations for Express
- @sentry/angular: Browser SDK for
  Angular
- @sentry/astro: SDK for Astro
- @sentry/ember: Browser SDK for Ember
- @sentry/react: Browser SDK for React
- @sentry/svelte: Browser SDK for Svelte
- @sentry/sveltekit: SDK for
  SvelteKit
- @sentry/vue: Browser SDK for Vue
- @sentry/solid: Browser SDK for Solid
- @sentry/gatsby: SDK for Gatsby
- @sentry/nestjs: SDK for NestJS
- @sentry/nextjs: SDK for Next.js
- @sentry/nitro: SDK for Nitro
- @sentry/remix: SDK for Remix
- @sentry/tanstackstart-react: SDK for TanStack Start React
- @sentry/aws-serverless: SDK
  for AWS Lambda Event Functions
- @sentry/google-cloud-serverless:
  SDK for Google Cloud Functions
- @sentry/electron: SDK for Electron with support for native crashes
- @sentry/react-native: SDK for React Native with support for
  native crashes
- @sentry/capacitor: SDK for Capacitor Apps and Ionic with support
  for native crashes
- @sentry/effect: SDK for Effect (Alpha)
- @sentry/bun: SDK for Bun
- @sentry/elysia: SDK for Elysia
- @sentry/deno: SDK for Deno
- @sentry/cloudflare: SDK for
  Cloudflare

 Version Support Policy

We recognize the importance of continued support for our SDK across different versions.
Our commitment is to provide bug fixes and feature updates for older versions based on community demand and usage.

 Installation and Usage

To install a SDK, simply add the high-level package, for example:

sh
npm install --save @sentry/browser
yarn add @sentry/browser


Setup and usage of these SDKs always follows the same principle.

javascript
import  as Sentry from '@sentry/browser';

Sentry.init({
  dsn: '__DSN__',
  // ...
});

Sentry.captureMessage('Hello, world!');


 Other Packages

Besides the high-level SDKs, this repository contains shared packages, helpers and configuration used for SDK
development. If you're thinking about contributing to or creating a JavaScript-based SDK, have a look at the resources
below:

- @sentry/replay:
  Provides the integration for Session Replay.
- @sentry/core: The base for all
  JavaScript SDKs with interfaces, t

Top issues

Discussions

Latest release

11.12.0 11.12.0 2026-11-10
Important Changes

- feat(bundler-plugins): Enable hidden source maps and remove them after upload (25637, 25645, 25646, 25647, 25648)

  The Sentry Rollup, Vite, webpack and esbuild plugins now turn on hidden source maps when your bundler has no source maps enabled and the plugin can upload them. They upload the maps to Sentry and remove them from the build output. You no longer need to set sourcemap: 'hidden' or filesToDeleteAfterUpload globs:

  js
  sentryVitePlugin({ org, project, authToken });
  

  The new sourcemaps.deleteSourcemapsAfterUpload option controls the removal:
  - Unset: th

Snapshot: 2026-11-16T09:23:14Z · Data license Apache-2.0 · JSON