sentry-browser-sdk

sentry browser sdk

getsentry 243 ↓ 2.4k MIT updated 25d ago
Claude Code
View source ↗

What it does

  • User asks to "add Sentry to a website" or set up Sentry for plain JavaScript
  • User wants to install @sentry/browser or configure the Loader Script
  • User has a WordPress, Shopify, Squarespace, or static HTML site
  • User wants error monitoring, tracing, session replay, or logging without a framework
  • No framework-specific SDK applies
  • ✅ Error Monitoring — always; captures unhandled errors and promise rejections
  • ✅ Tracing — recommended for any interactive site; tracks page load and user interactions

Requirements & configuration

  • ⚡ Logging — structured logs via Sentry.logger.; requires npm or CDN logs bundle (not available via Loader Script)
  • ⚡ Profiling — JS Self-Profiling API; beta, Chromium-only, requires Document-Policy: js-profiling response header
  • const { sentryWebpackPlugin } = require("@sentry/webpack-plugin");
  • const { sentryEsbuildPlugin } = require("@sentry/esbuild-plugin");
  • require("esbuild").build({

Configuration: VITE_SENTRY_DSNSENTRY_DSNSENTRY_AUTH_TOKEN

Derived from the skill's own SKILL.md documentation · extracted 2026-07-23

sentry browser sdk

Source

Repository: https://github.com/getsentry/sentry-for-ai

sentry-browser-sdk FAQ

What does the sentry-browser-sdk skill do?

Full Sentry SDK setup for browser JavaScript. Use when asked to "add Sentry to a website", "install @sentry/browser", or configure error monitoring, tracing, session replay, or logging for vanilla JavaScript, jQuery, static sites, or WordPress. User asks to "add Sentry to a website" or set up Sentry for plain JavaScript User wants to install @sentry/browser or configure the Loader Script

What does sentry-browser-sdk require?

⚡ Logging — structured logs via Sentry.logger.; requires npm or CDN logs bundle (not available via Loader Script) ⚡ Profiling — JS Self-Profiling API; beta, Chromium-only, requires Document-Policy: js-profiling response header const { sentryWebpackPlugin } = require("@sentry/webpack-plugin"); const { sentryEsbuildPlugin } = require("@sentry/esbuild-plugin"); require("esbuild").build({ Configuration keys: VITE_SENTRY_DSN, SENTRY_DSN, SENTRY_AUTH_TOKEN.

How do I install sentry-browser-sdk?

Run: npx -y skills add https://github.com/getsentry/sentry-for-ai --skill sentry-browser-sdk --agent claude-code — the source lives at github.com/getsentry/sentry-for-ai.

Maintain sentry-browser-sdk?

Let people know it's listed here — add the badge (live metrics, light/dark aware) or a plain link to your README or docs.

[sentry-browser-sdk on getagentictools](https://getagentictools.com/skills/getsentry-sentry-for-ai-sentry-browser-sdk?ref=badge)
npx agentictools info skills/getsentry-sentry-for-ai-sentry-browser-sdk

The second line is the CLI lookup for this page — handy in READMEs and docs.