Skip to main content

Packages

Beta

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 runsInstallLaunch 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, Solidthe matching adapter alonethe adapter package
Next.js, Nuxt, Remix, SvelteKit, Astrothe matching adapter alonethe adapter package
Express, Fastify, NestJS, Hono, Koa, hapi, Elysiathe 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​

PackageUse it forPage
@bugsee/bugseeThe 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/bunBun. Runs the Node.js pipeline and identifies the runtime as Bun.Bun
@bugsee/electronElectron: 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/cloudflareCloudflare Workers and Durable Objects. Needs the nodejs_compat flag.Cloudflare
@bugsee/vercel-edgeVercel Edge Functions and other Web-API-only isolates.Vercel Edge
@bugsee/webworkerWeb 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.

PackageFrameworkPage
@bugsee/reactReact 18 or later, and Preact: error boundary, root error handlers, profiler, router naming.React
@bugsee/vueVue 3: error handler and vue-router naming.Vue
@bugsee/angularAngular 16 or later: ErrorHandler, router naming, and ng add with source-map upload.Angular
@bugsee/svelteSvelte 4 or later and SvelteKit 2 or later: handleError hook and navigation naming.Svelte
@bugsee/solidSolid 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.

PackageUse it forPage
@bugsee/babel-plugin-component-annotateOptional. 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-annotateOptional. 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.

PackageFrameworkPage
@bugsee/nextjsNext.js: instrumentation.ts, instrumentation-client.ts, middleware, Node.js and Edge runtimes, and withBugsee for source maps.Next.js
@bugsee/nuxtNuxt module, with the Vue error handler and the Nitro server.Nuxt
@bugsee/remixRemix and React Router v7: handleError and the client entry.Remix
@bugsee/sveltekitSvelteKit server and client hooks, and an edge entry.Svelte
@bugsee/astroAstro 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.

PackageFrameworkPage
@bugsee/expressExpressExpress
@bugsee/fastifyFastifyFastify
@bugsee/nestjsNestJS, on the Express and Fastify platformsNestJS
@bugsee/honoHono, hosted on Node.js or BunHono
@bugsee/koaKoaKoa
@bugsee/hapihapiHapi
@bugsee/elysiaElysia, on Bun and Node.jsElysia

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.

PackageUse it forPage
@bugsee/vite-pluginVite.Bundler plugins
@bugsee/webpack-pluginwebpack.Bundler plugins
@bugsee/bundler-plugin-coreThe 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.

PackageWhat it doesControlled by
@bugsee/performancePerformance monitoring: web vitals, page-load and navigation transactions, HTTP spans and the manual span API. On by default.performanceMonitoring. See Performance.
@bugsee/opentelemetryOpenTelemetry interop: export Bugsee transactions as OTLP/JSON, and consume your own OpenTelemetry spans.otelExportUrl, otelConsume. See OpenTelemetry.
@bugsee/replaySession replay for the browser. Loaded lazily; on by default.replay. See Session replay.
@bugsee/replay-canvasOpt-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.

PackageRole
@bugsee/coreThe SDK kernel: client, capture and storage, report and upload pipelines, extension registry.
@bugsee/captureCross-runtime capture sources (console, network) and capture providers.
@bugsee/protocolThe wire contract: shapes the SDK uploads and the rules for sanitizing them.
@bugsee/typesTypeScript types shared across packages. No runtime code.
@bugsee/utilPure, runtime-portable helpers.
@bugsee/loggerThe SDK's own diagnostic logger.
@bugsee/serviceThe service container used for dependency injection inside the SDK.
@bugsee/trackersFoundation for the domain trackers over system and runtime APIs.
@bugsee/node-utilsNode.js HTTP transport and file-system storage, shared by Node.js, Bun and Electron main.
@bugsee/browser-utilsfetch transport, IndexedDB storage and DOM helpers, shared by browser and worker builds.
@bugsee/rrwebThin wrapper over the record path of Bugsee's hardened rrweb fork, used by session replay.
@bugsee/integration-shimsNo-op stand-ins for DOM-only integrations on runtimes without a DOM.
@bugsee/web-adapterShared plumbing for the frontend framework adapters.
@bugsee/adapter-kitShared primitives for the meta-framework adapters.
@bugsee/webviewThe 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.
Found an issue, typo, or wrong statement on this page? Report it now →