ScaleBun
Skip to article

Web SDK

webDeveloper

The ScaleBun Web SDK — one browser SDK for product analytics, errors, performance, session replay, feature flags, and engagement, with integrations for React, Next, Vue, Svelte, and Angular.

Updated Reviewed

@scalebun/web is the browser counterpart of the ScaleBun mobile SDK. One install captures what happens in a web app — events, errors, network, performance, replay — and feeds the same dashboard and the same unified session model as the React Native SDK. It is framework-agnostic, has zero third-party runtime dependencies, is SSR-safe, and is no-op-safe before init().

Start here#

What it captures#

AreaWhat it doesDefault
Product analyticsEvents, identity, groups, super-properties, revenue, and DOM autocapture (clicks, submits, pageviews, rageclicks)On
Errors & crashesUncaught errors, captureError, breadcrumbs, crash recoveryOn
PerformanceWeb Vitals (LCP/INP/CLS), page-load and SPA route transactions, network monitoringOn
Session replayDOM-reconstruction replay with maskingOff (opt-in)
Feature flagsFlags, remote config, rollouts, and experiments with deterministic bucketingOn
EngagementSurveys, NPS/CSAT, in-app campaigns, web push, coachmarksOn

Every feature toggle#

Those areas are made of seventeen individually switchable features. Twelve are on by default; five are opt-in.

ToggleDefaultWhat it is
analyticsOnProduct-analytics + revenue lane
errorsOnUncaught errors, rejections, captureError
networkOnfetch / XHR / WebSocket / SSE capture
consoleOnConsole output as breadcrumbs
crashOnReportingObserver + session-liveness recovery
webVitalsOnLCP, INP, CLS, FCP, TTFB with attribution
webPerfOnPage load (Navigation Timing), FPS, LoAF
performanceOnTransactions and spans (RUM)
journeyOnScreens, navigation, interactions
configOnFlags, remote config, rollouts, experiments
engageOnSurveys, NPS/CSAT, in-app campaigns
bugReportOnreportBug() and the optional launcher widget
replayOffSession replay
inboxOffPersistent message inbox
inapp2OffIn-App Messaging 2.0 engine
watchdogOffContinuous resource health and incidents
profilerOffJS Self-Profiling flame graphs

Web push and coachmarks have no toggle — they load lazily from the facade the first time you call them, so they cost nothing until you do.

The one-SDK model#

The Web SDK is a plugin host: every capability is a feature that registers with a shared facade and a single egress pipeline. That means one session container holds errors, network calls, performance spans, replay frames, and ratings as items — the same model the mobile SDK uses, so a session reads the same way regardless of platform.

Going further#

Web SDK · ScaleBun