js-buy-sdk

The JS Buy SDK is a lightweight library that allows you to build ecommerce into any website. It is based on Shopify's API and provides the ability to retrieve products and collections from your shop, add products to a cart, and checkout.

JavaScript v3.0.7 πŸ” 5.4/10
1.0k stars  Β·  270 forks  Β·  Updated  Β·  MIT
Install
npm install js-buy-sdk
View on GitHub
πŸ“„ Documentation
Supported APIs (1)

Search for millions of products from the world's greatest brands.

Version history All releases β†—

### Patch Changes - ff74c2f: Fix bug where a shipping discount could appear as if it was a line item discount - 2c5a33f: Fix bug where adding mul…

### Patch Changes - ec94f4f: Update checkout.webUrl to use the same domain for checkout as shopify-buy v2 > [!CAUTION] > > ## Deprecation notice >…

### Patch Changes - 57a36e1: No longer throw errors (and gracefully ignore any discounts returned from the cart) if JS Buy SDK v3 cannot map the ca…

### Patch Changes - a3cdfdf: Add support for ComponentizableCartLine > [!CAUTION] > > ## Deprecation notice > > **Note: The JS Buy SDK is deprecat…

### Patch Changes - c44ec03: Add support for multiple discounts in addDiscount > [!CAUTION] > > ## Deprecation notice > > **Note: The JS Buy SDK i…

### Patch Changes - d651304: Fix cart query for lines pagination > [!CAUTION] > > ## Deprecation notice > > **Note: The JS Buy SDK is deprecated a…

### Patch Changes - 462d162: Move npm releases to github actions with changeset and provenance > [!CAUTION] > > ## Deprecation notice > > **Note: …

Bumps the SDK to use Storefront API version 2024-04. For more information, see the [Release Notes](https://shopify.dev/api/release-notes/2024-04).

Quality signals
Score
Stars1.0k
Forks270
Last updated
LicenseMIT
Supported APIs (1)
shop.app
Language
JavaScript
Browse all JavaScript SDKs β†’
5.4
OpenSSF Scorecard
out of 10 Β· 2025-07-21
Full report β†—
πŸ”„ Maintained
10/10
πŸͺ™ Token Permissions
0/10
πŸ‘οΈ Code Review
4/10
πŸ” Branch ProtectionN/A
πŸ“‹ Security Policy
9/10
πŸ” Static Analysis (SAST)
0/10
πŸ› Vulnerabilities
0/10