# @smarterlabs/norman-source-shopify

> Adds Shopify data to a Norman data layer

Latest version **0.3.0** (published 2020-05-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install @smarterlabs/norman-source-shopify
pnpm add @smarterlabs/norman-source-shopify
yarn add @smarterlabs/norman-source-shopify
bun add @smarterlabs/norman-source-shopify
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.3.0 |
| Published | 2020-05-21 |
| First published | 2020-05-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 5.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | https://smarterlabs.com |
| Maintainers | ken85rose |
| Keywords | shopify, e-commerce, norman, static, data layer, api |

## Links

- npm: https://www.npmjs.com/package/@smarterlabs/norman-source-shopify
- Repository: https://github.com/smarterlabs/norman
- Homepage: https://github.com/smarterlabs/norman/tree/master/packages/norman-source-shopify#readme
- Issues: https://github.com/smarterlabs/norman/issues
- npm.io page: https://npm.io/package/@smarterlabs/norman-source-shopify

## Dependencies (2)

- [node-fetch](https://npm.io/package/node-fetch.md) ^2.6.0
- [shopify-buy](https://npm.io/package/shopify-buy.md) ^2.10.0

## Alternatives

- [jsforce](https://npm.io/package/jsforce.md) — 851.2K weekly downloads
- [react-native-qrcode-svg](https://npm.io/package/react-native-qrcode-svg.md) — 693.5K weekly downloads
- [@salesforce/plugin-data](https://npm.io/package/@salesforce/plugin-data.md) — 394.9K weekly downloads
- [@backstage/plugin-search-common](https://npm.io/package/@backstage/plugin-search-common.md) — 308.5K weekly downloads
- [@chain-registry/types](https://npm.io/package/@chain-registry/types.md) — 38.4K weekly downloads

## Recent versions

- 0.3.0 (latest) — 2020-05-21
- 0.2.1 — 2020-05-08
- 0.2.0 — 2020-05-08
- 0.1.1 — 2020-05-07
- 0.1.0 — 2020-05-07

## README

# @smarterlabs/norman-source-shopify

Allows use of Shopify data in [Norman](https://github.com/smarterlabs/norman#readme).

## Installation

```bash
npm install --save @smarterlabs/norman-source-shopify
```

or with Yarn

```bash
yarn add @smarterlabs/norman-source-shopify
```

## Usage

**Note:** At the moment, this plugin only pulls in product data. This may change in the future, but for now we welcome any pull requests to expand the functionality of this plugin.

```js
const Norman = require(`@smarterlabs/norman`)
const shopifySource = require(`@smarterlabs/norman-source-shopify`)

const norman = new Norman({
   plugins: [
      shopifySource({
         // Required options
         domain: `store-name.myshopify.com`,
         storefrontAccessToken: process.env.SHOPIFY_ACCESS_TOKEN,

         // Other options and defaults
         maxFailures: 20,  // Number of failed fetches allowed before exiting process
         fetchSize: 250,   // Number of products to fetch at once, max 250
         timeout: 1000,    // Number of ms to wait before retrying after a fetch error
         pageLimit: 0,     // Set to zero to not restrict the number of page requests
      }),
   ],
   on: {
      'data:shopify:product': ({ data }) => {
         console.log(`Product:`, data)
      },
   }
})
```

---
_Source: https://npm.io/package/@smarterlabs/norman-source-shopify · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
