ScaleBun
Web

One SDK for your entire web app.

@scalebun/web brings attribution, product analytics, customer engagement, crash and performance monitoring, session replay, and feature flags to any browser app — on one identity layer, one event schema, and one dashboard. First-class adapters for React, Next.js, Vue, Svelte, and Angular, or plain JavaScript with a script tag.

ReactNext.jsVueSvelteAngularPlain JS

Every capability, one install

Six capability groups behind one browser package

Each links into the guide that documents it — nothing here points at a page that does not exist.

Attribution

Attribute signups and purchases to the source that drove them, on the same user timeline as your product events. Identity carries across the browser session and merges into the authenticated user on identify() — one identity graph, not a separate attribution silo.

Product analytics

From one init() call the SDK captures $pageview events, SPA route transitions, clicks, form interactions and scroll depth with no instrumentation — then track() records your own events, identify() ties them to a user, and revenue joins the same event schema.

Customer engagement

Run in-app messages and a message inbox in the browser, triggered from the behavior you already track. The in-app messaging engine and inbox are opt-in modules of the same SDK, so campaigns fire from real events rather than a separate messaging tool.

Crash & performance monitoring

Uncaught errors, unhandled rejections, and failed fetch / XHR / WebSocket / SSE requests are captured automatically, alongside Web Vitals per route and page-load and SPA transition timings — so a regression is visible per release without extra code.

Session replay

Replay real sessions reconstructed from the DOM — not screenshots — with masking applied before data leaves the browser. Replay is opt-in, and rage and dead clicks, scroll depth, and crash recovery give root-cause context around a drop-off.

Feature flags & experiments

Evaluate feature flags and experiment assignments in the browser from the runtime config the SDK already fetches, so a gated feature or an A/B variant costs no extra round-trip and exposure is recorded on the same event schema as everything else.

Framework support

Any browser, any framework

The delivery paths and defaults the SDK actually ships with — no more, no less.

Frameworks

First-class adapters for React, Next.js, Vue, Svelte and Angular — plus plain JavaScript in any browser

Delivery

npm / pnpm / yarn, a CDN script tag, or a Google Tag Manager template — no build step required

One call to start

init() needs only a client key and API base URL; it never throws and leaves the SDK inert on a bad config, so it can never take your site down

Zero-instrumentation capture

Pageviews, SPA route changes, clicks, form interactions, rage and dead clicks, scroll depth, Web Vitals, and uncaught errors — from that one init()

Opt-in modules

Enable only what you use

These load only when you turn them on, so the base SDK stays light.

Session replay

DOM-reconstruction replay with on-device masking

Message inbox

A persistent in-app message inbox

In-app messaging

Triggered in-app messages and prompts

Watchdog & profiler

Deeper hang detection and performance profiling

By industry

See the Web SDK mapped to your journey

The same install, mapped stage by stage to the funnel your team owns.

Fintech · Banking & lending · E-commerce · Subscription apps

Also shipping a mobile app? The same platform runs natively with the React Native SDK.

Web SDK FAQ

Common questions about the ScaleBun Web SDK

@scalebun/web is one browser package that brings attribution, product analytics, customer engagement, crash and performance monitoring, session replay, and feature flags to a website or web app. Every capability runs on one identity layer and one event schema, so acquisition, behavior, experience quality, and revenue sit on the same user timeline.