@haatlabs-core/provider-shopify
v0.10.0
Published
Any Shopify store's public products as a ProductSource.
Readme
@haatlabs-core/provider-shopify
Shopify stores as a product source (ProductSource from @haatlabs-core/provider-amazon): any
store's public feeds (/meta.json, /products/<handle>.js, /search/suggest.json), read
through @haatlabs-core/providers/safe-fetch, so a store or redirect that points at a private,
loopback or link-local address is refused before anything is sent to it.
createShopifySource({ timeoutMs, userAgent }): one market,WORLD; a product id is<host>_<handle>; every product carries its options and variants, each with its price in the store's currency; a search names its store (store).@haatlabs-core/provider-shopify/refs:shopifyRef,parseShopifyRefId,parseShopifyLink, with no Node built-ins, for browsers too.@haatlabs-core/provider-shopify/testing:startFakeShopifyStore(), a store on 127.0.0.1 for tests that read through the real source.
Install
pnpm add @haatlabs-core/provider-shopifyIt leaves one package to your app, so the app holds one copy: zod.
