Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@shopify/app-bridge

Package Overview
Dependencies
Maintainers
10
Versions
322
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@shopify/app-bridge

[![Build Status](https://travis-ci.com/Shopify/app-bridge.svg?token=RBRyvqQyN525bnfz7J8p&branch=master)](https://travis-ci.com/Shopify/app-bridge) [![codecov](https://codecov.io/gh/Shopify/app-bridge/branch/master/graph/badge.svg?token=nZ21m39Dr6)](https:

  • 0.3.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
78K
decreased by-15.14%
Maintainers
10
Weekly downloads
 
Created
Source

@shopify/app-bridge

Build Status codecov License: MIT npm version npm bundle size (minified + gzip)

The App Bridge is a library that enables Apps on Shopify to access native Shopify features across different platforms.

Installation

yarn add @shopify/app-bridge

Usage

Set up your app

Import the library from the @shopify/app-bridge package and provide a configuration:

import createApp, {getShopOrigin} from '@shopify/app-bridge';

const app = createApp({
  apiKey: 'API key from Shopify Partner Dashboard',
  shopOrigin: getShopOrigin(),
});

Actions

A list of available actions can be found in the actions source folder.

Contributing

Useful scripts

  • yarn start Start a development server
  • yarn build Build the library, compiling the source TypeScript into JavaScript
  • yarn clean Remove any artefacts produced by the build script
  • yarn lint Run the source linter
  • yarn check Run the TypeScript type checker

Running the tests

  • yarn test Run the tests
  • yarn test:watch Run the tests in watch mode and auto-rerun on changes
  • yarn test:coverage Run the tests and generate a coverage report

Prettier config

To enable automatic prettier formatting copy or link the pre-commit script to .git/hooks/pre-commit and make sure it's executable.

FAQs

Package last updated on 02 Oct 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc