detect()
The single canonical answer — returns the Browser union for the current user-agent.
getOS()
Canonical operating-system detection — returns the OS union, with optional Client-Hint support for SSR.
isChrome()
true when the current environment is Google Chrome — or any browser built directly on Chromium (Chrome Beta, Canary, Brave, Vivaldi, …) — but not Chromium-Edge or Opera.
isEdge()
true when the current environment is Microsoft Edge — both flavours.
isFirefox()
true when the current environment is Mozilla Firefox — stable, Beta, Developer Edition, Nightly — on any platform, including Firefox for iOS (FxiOS/).
isSafari()
true when the current environment is Apple Safari on macOS or iOS — but not other browsers using iOS WebKit (Chrome iOS, Firefox iOS, Edge iOS, Opera iOS).
isOpera()
true when the current environment is Opera — Presto-era or Chromium-era, desktop or mobile.
isIE()
true when the current environment is Internet Explorer 6–11.
isAndroid()
true when the current environment is an Android WebView / legacy Android Browser — not Chrome for Android.
isMobile()
true when the current environment looks like a mobile or tablet device, based on a UA regex.
isInAppBrowser()
Detect whether the page is loaded inside a mobile in-app browser — Instagram, Facebook, TikTok, X / Twitter, LinkedIn, Snapchat, WeChat, Line, Telegram, Pinterest.
browsers
A frozen, lowercase enum of every value detect() can return. Use it instead of typing string literals.
Types
Type-only exports. Use import type so they're erased at runtime: