New Shopify Certification now available: Liquid Storefronts for Theme Developers

Using Shopify App Bridge without NPM

14 0 1

I am a php developer and I have to use Shopify App Bridge however, it seems to be npm must be installed to use app bridge. I have never used npm and I will not use  it !
I dont have to install npm on my server. I dont hate work with npm but
Why Shopify forces developers to use it!

Reply 1 (1)
Shopify Staff
Shopify Staff
58 13 27

Hi Aljazari, 

You can use an npm CDN to include App Bridge as a script tag:

<script src=""></script>
  var AppBridge = window['app-bridge'];
  var actions = window['app-bridge'].actions;

See the docs for more info:

Trish | Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit the Shopify Help Center or the Shopify Blog