Packages
This page documents the Bugsee JavaScript SDK, which is in beta (0.1.x) and can change between betas.
The SDK is published as 49 npm packages under the @bugsee scope. You install only a few of them. The rest are building blocks that the packages you install depend on, and their APIs can change without notice.
All packages share one version (currently 0.1.0-beta.9), ship ESM and CommonJS builds, and target ES2022. Keep every @bugsee/* package in your project at the same version. Install without a tag, for example npm install @bugsee/bugsee; the npm latest tag currently points at the current beta.
Which packages do I install?
| Where your code runs | Install | Launch from |
|---|---|---|
| Browser, Node.js | @bugsee/bugsee | @bugsee/bugsee |
| Bun | @bugsee/bun | @bugsee/bun |
| Electron | @bugsee/electron | @bugsee/electron/main, /preload, /renderer |
| Cloudflare Workers | @bugsee/cloudflare | @bugsee/cloudflare |
| Vercel Edge | @bugsee/vercel-edge | @bugsee/vercel-edge |
| Web Worker, Service Worker | @bugsee/webworker | @bugsee/webworker |
| React, Vue, Angular, Svelte, Solid | the matching adapter alone | the adapter package |
| Next.js, Nuxt, Remix, SvelteKit, Astro | the matching adapter alone | the adapter package |
| Express, Fastify, NestJS, Hono, Koa, hapi, Elysia | the matching adapter alone (on Bun, add @bugsee/bun) | the adapter package (on Bun, @bugsee/bun) |
See Installation for the steps.
Packages you install
Core SDK and runtimes
| Package | Use it for | Page |
|---|---|---|
@bugsee/bugsee | The main entry point. It resolves to the browser, Node.js, Bun, Cloudflare, Vercel Edge or worker build, and turns on performance monitoring and OpenTelemetry interop. It also has explicit subpaths: /node, /bun, /workerd, /edge-light and /worker. | Installation |
@bugsee/bun | Bun. Runs the Node.js pipeline and identifies the runtime as Bun. | Bun |
@bugsee/electron | Electron: main process, preload and renderer in one session, with native crashes. Takes the Electron objects as arguments and has no dependency on electron. | Electron |
@bugsee/cloudflare | Cloudflare Workers and Durable Objects. Needs the nodejs_compat flag. | Cloudflare |
@bugsee/vercel-edge | Vercel Edge Functions and other Web-API-only isolates. | Vercel Edge |
@bugsee/webworker | Web Workers and Service Workers, which need their own launch because they are separate JavaScript contexts. | Web Workers |
Frontend adapters
Install the adapter on its own. It depends on @bugsee/bugsee and re-exports it, so launch and the adapter's API come from one package. Each requires the framework as a peer dependency.
| Package | Framework | Page |
|---|---|---|
@bugsee/react | React 18 or later, and Preact: error boundary, root error handlers, profiler, router naming. | React |
@bugsee/vue | Vue 3: error handler and vue-router naming. | Vue |
@bugsee/angular | Angular 16 or later: ErrorHandler, router naming, and ng add with source-map upload. | Angular |
@bugsee/svelte | Svelte 4 or later and SvelteKit 2 or later: handleError hook and navigation naming. | Svelte |
@bugsee/solid | Solid 1.6 or later: error primitives and router naming. | Solid |
Component name plugins
Optional development dependencies that keep component names in reports when minification mangles them. They are unrelated to source maps. See Component names.
| Package | Use it for | Page |
|---|---|---|
@bugsee/babel-plugin-component-annotate | Optional. Labels DOM elements of React, Preact and Solid components with the component name (data-bugsee-component), so clicks and errors are attributed to a component even after minification. | Component names |
@bugsee/svelte-plugin-component-annotate | Optional. The same labels for Svelte and SvelteKit, as a Svelte preprocessor. | Component names |
Meta-framework adapters
Each is a single install. It wires the browser client and the server (and the edge, where the framework has one) together, so one session covers the request and the browser that made it.
| Package | Framework | Page |
|---|---|---|
@bugsee/nextjs | Next.js: instrumentation.ts, instrumentation-client.ts, middleware, Node.js and Edge runtimes, and withBugsee for source maps. | Next.js |
@bugsee/nuxt | Nuxt module, with the Vue error handler and the Nitro server. | Nuxt |
@bugsee/remix | Remix and React Router v7: handleError and the client entry. | Remix |
@bugsee/sveltekit | SvelteKit server and client hooks, and an edge entry. | Svelte |
@bugsee/astro | Astro integration: browser launch on every page, plus a server middleware. | Astro |
Backend adapters
Install the adapter on its own on Node.js 18 or later (or Bun, see Running on Bun). It depends on @bugsee/bugsee and re-exports its Node entry, so launch comes from the same package. Each adds per-request context, an http.server transaction, and error reporting for its framework.
| Package | Framework | Page |
|---|---|---|
@bugsee/express | Express | Express |
@bugsee/fastify | Fastify | Fastify |
@bugsee/nestjs | NestJS, on the Express and Fastify platforms | NestJS |
@bugsee/hono | Hono, hosted on Node.js or Bun | Hono |
@bugsee/koa | Koa | Koa |
@bugsee/hapi | hapi | Hapi |
@bugsee/elysia | Elysia, on Bun and Node.js | Elysia |
Build tooling
Install these as development dependencies. They upload source maps and stamp debug IDs so production stack traces resolve to your source; see Symbolication.
| Package | Use it for | Page |
|---|---|---|
@bugsee/vite-plugin | Vite. | Bundler plugins |
@bugsee/webpack-plugin | webpack. | Bundler plugins |
@bugsee/bundler-plugin-core | The engine behind the two plugins, and the bugsee-sourcemaps-doctor command. Install it directly only for the Rollup, esbuild and Rspack plugins (bugseeRollupPlugin, bugseeEsbuildPlugin, bugseeRspackPlugin), which are less exercised than Vite and webpack, or to run the source map doctor. | Bundler plugins |
The bugsee-cli command-line tool, which the plugins run, is a separate package, @bugsee/cli. See Symbolication: manual.
Packages you do not install
Extensions pulled in by the umbrella
These are dependencies of @bugsee/bugsee and are switched on or off through launch options. Do not add them yourself.
| Package | What it does | Controlled by |
|---|---|---|
@bugsee/performance | Performance monitoring: web vitals, page-load and navigation transactions, HTTP spans and the manual span API. On by default. | performanceMonitoring. See Performance. |
@bugsee/opentelemetry | OpenTelemetry interop: export Bugsee transactions as OTLP/JSON, and consume your own OpenTelemetry spans. | otelExportUrl, otelConsume. See OpenTelemetry. |
@bugsee/replay | Session replay for the browser. Loaded lazily; on by default. | replay. See Session replay. |
@bugsee/replay-canvas | Opt-in canvas recording for replay. Loaded lazily; off by default. | replay.canvas. |
Platform builds
@bugsee/browser and @bugsee/node are the platform builds the umbrella wraps and selects for you by exports condition. Other packages (the adapters, Bun and Electron) build on them. Install @bugsee/bugsee instead.
Internal building blocks
These packages are implementation details. Their READMEs say the API may change, so do not depend on them.
| Package | Role |
|---|---|
@bugsee/core | The SDK kernel: client, capture and storage, report and upload pipelines, extension registry. |
@bugsee/capture | Cross-runtime capture sources (console, network) and capture providers. |
@bugsee/protocol | The wire contract: shapes the SDK uploads and the rules for sanitizing them. |
@bugsee/types | TypeScript types shared across packages. No runtime code. |
@bugsee/util | Pure, runtime-portable helpers. |
@bugsee/logger | The SDK's own diagnostic logger. |
@bugsee/service | The service container used for dependency injection inside the SDK. |
@bugsee/trackers | Foundation for the domain trackers over system and runtime APIs. |
@bugsee/node-utils | Node.js HTTP transport and file-system storage, shared by Node.js, Bun and Electron main. |
@bugsee/browser-utils | fetch transport, IndexedDB storage and DOM helpers, shared by browser and worker builds. |
@bugsee/rrweb | Thin wrapper over the record path of Bugsee's hardened rrweb fork, used by session replay. |
@bugsee/integration-shims | No-op stand-ins for DOM-only integrations on runtimes without a DOM. |
@bugsee/web-adapter | Shared plumbing for the frontend framework adapters. |
@bugsee/adapter-kit | Shared primitives for the meta-framework adapters. |
@bugsee/webview | The JavaScript side of Bugsee for web content in native WebViews. The native Bugsee SDK ships and injects it; you do not install it in a web app. |
Related pages
- Installation — add a package and launch the SDK.
- Overview — what the SDK records and detects.
- Configuration — launch options by runtime.
- Release notes — what changed in each beta.