Escape Instagram and Facebook in-app browsers with a proper npm package instead of copy-pasting fragile snippets. Framework-agnostic, it works with plain HTML, React, Vue, Next.js, Angular, and Svelte. Includes deep-link attempts, a built-in fallback banner with a manual browser-opening option, zero dependencies, and a ~2KB footprint. It only activates inside supported in-app browsers, leaving regular mobile and desktop browsers untouched.
Hey, maker here 👋
I built this after hitting the "why is this login broken" bug myself, turned out the user had opened the link from Instagram, and IG's in-app browser was silently breaking third-party cookies.
Genuinely surprised there wasn't a small, drop-in library for this already, so I built one. Would love feedback, especially:
- Edge cases on Android devices/OEM browsers I haven't tested
- Whether the banner copy/styling feels right or too intrusive
- Anyone who's hit this in production and solved it differently
Demo works best if you open it from Instagram itself, happy to walk through the deep-link mechanics in the comments if anyone's curious.