Sitelet https://github.com/muddassirhq/awesome-javascript/pull/1
Skip to content

Add open-in-native-browser to Browser Detection section - #1

Merged
muddassirhq merged 1 commit into
masterfrom
add-open-in-native-browser
Oct 3, 2026
Merged

muddassirhq merged 1 commit into
masterfrom
add-open-in-native-browser

Conversation

@muddassirhq

Copy link
Copy Markdown
Owner

Checklist:

  • I've read and understood Contributing Guidelines.
  • I've added the new resource at the end of its section.
  • This resource is out there for a while, and actively maintained.
  • This resource is popular enough and has at least a few hundred stars on GitHub.

open-in-native-browser is a small library that detects when a page is loaded inside Instagram's or Facebook's in-app browser and automatically escapes to the visitor's native browser. In-app browsers isolate cookies from the rest of the device, which silently breaks login sessions, checkout flows, and affiliate tracking for anyone arriving from a link shared on those platforms. On Android it attempts an automatic deep link out, and on iOS, where that handoff is more restricted, it falls back to a visible banner with a manual "open in browser" action. It's framework-agnostic, works with plain HTML, React, Vue, Next.js, Angular, and Svelte, has zero dependencies, and adds roughly 2KB to a bundle. I'm submitting it under Browser Detection since its core function is identifying a specific browser environment and acting on it.

@muddassirhq
muddassirhq marked this pull request as ready for review October 3, 2026 15:41
@muddassirhq
muddassirhq merged commit 560ecf4 into master Oct 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant