Skip to content

Open source

astro-inapp-escape

New

Why it exists

Some affiliate programs, Amazon Associates among them, explicitly forbid their links from rendering inside another app's in-app browser - Instagram, TikTok, and the rest all embed a stripped-down webview that breaks tracking cookies and violates program terms. This package detects that browser and gets the visitor out: a packageless Android intent redirect that hands the page to whatever the device's real default browser is, and an instructional interstitial on iOS, where no reliable automated escape exists.

  • Packageless Android intent redirect - never assumes Chrome
  • iOS instructional interstitial, since no automated escape exists there
  • Built on the maintained inapp-spy detection library, not hand-rolled UA regex

Install

npm install @vdaluz/astro-inapp-escape