ScaleBun
Skip to article

Feature toggles

webDeveloper

All 17 feature toggles and their real defaults, read from the config resolver.

Updated Reviewed

12 of the 17 features are on by default; 5 are opt-in.

All toggles#

ToggleDefaultWhat it is
errorsOn
networkOn
consoleOn
webVitalsOn
performanceOn
journeyOn
replayOff
bugReportOn
crashOnWeb crash detection (ReportingObserver + session-liveness recovery). Default on.
configOnConfig & flags (feature flags / remote config / rollouts / experiments). Default on.
engageOnEngage — surveys / NPS (in-app prompts, friction-triggered). Default on.
analyticsOnProduct-analytics + revenue lane (track/trackPurchase → /batch Event). Default on.
webPerfOnWeb RUM — page-load (Navigation Timing) + FPS (rAF) + LoAF. Default on.
profilerOffJS Self-Profiling flame graphs. Default OFF (CPU cost + needs Document-Policy: js-profiling).
watchdogOffW5.2 — Resource Watchdog (continuous resource sampling + local incident detection). Default OFF.
inboxOffPersistent Message Inbox / Notification Center (offline-first, delta-synced). Default OFF (until GA).
inapp2OffIAM 2.0 in-app engine (schema-driven surfaces). Default false (opt-in).

Opt-in features#

Enable with features:

TypeScript
await ScaleBun.init({  clientKey,  apiBaseUrl,  features: { replay: true },});

Off by default: replay · profiler · watchdog · inbox · inapp2.

Feature toggles · API reference · Web SDK · ScaleBun