js-buy-sdk VS nextjs-shopify-store

Compare js-buy-sdk vs nextjs-shopify-store and see what are their differences.

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. (by Shopify)

nextjs-shopify-store

Shopify Store by Next.js [Moved to: https://github.com/momonoki1990/nextjs-shopify-store] (by naoya-kuma1990)
Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
js-buy-sdk nextjs-shopify-store
8 1
963 3
0.4% -
5.7 9.0
3 months ago over 2 years ago
JavaScript TypeScript
MIT License -
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

js-buy-sdk

Posts with mentions or reviews of js-buy-sdk. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-06-16.
  • Embedding a Shopify collection into a React app
    1 project | /r/shopify | 10 Aug 2022
    Shopify JS Buy SDK
  • Build an ecommerce app with Next.js and Shopify
    3 projects | dev.to | 16 Jun 2022
    To do so, you will need the Shopify JavaScript Buy SDK, which you can get by installing the necessary package:
  • Trying to decide on platform: anyone regret choosing WooCommerce?
    1 project | /r/woocommerce | 2 Apr 2022
    This is not completely true. This depends on what kind of development resources you have access to. Shopify has very robust APIs that allow you to build what ever storefront you can imagine - and by implementing something like The Shopify Buy SDK into your website or application, this can also be hosted wherever you want (A headless ecommerce store). You just use Shopify for its checkout. WooCommerce has a hard time competing with this (it can be done, but it doe not come close to comparing at the moment).
  • E-Commerce Stack Suggestions
    3 projects | /r/gatsbyjs | 27 Sep 2021
  • Built a Shopify store with Next.js 😁
    4 projects | dev.to | 17 Aug 2021
    The JavaScript Buy SDK is an SDK for hitting the Store Front API. Basically, you can use this SDK for product information and cart operations, so I thought I'd use it entirely, but there were some problems. The SDK is only used for cart operations such as adding and deleting products, while the GraphQL client library (graphql-request) is used for retrieving product information and search functions on the product page, directly hitting the Store Front API. This is because, first of all, JS Buy SDK seems to have an old type definition of TypeScript, and the type information does not match the property that can actually be retrieved, and it is necessary to extend the type definition partially by oneself. This was the first time for me to extend the type definitions, so I learned a lot, but it was troublesome to determine which properties were typed and which were not. Also, the basic properties supported by the SDK are only a part of the information that can be retrieved by the Store Front API as described in the official documentation, and when I tried to extend the SDK, it seemed to be so cumbersome (for example, the collection page does not support sorting of products). (Sorting is achieved with the SDK like this) Therefore, I decided to use the SDK only for cart operations where the SDK is sufficient, extending the library's typedefs, and to define a custom client to directly access to the Store Front API for the rest.
  • Best Practice In GraphQL Queries
    3 projects | /r/shopify | 12 Jul 2021
    Hi, I'm just wondering, it seems that in the storefront-api-examples they use babel-plugin-graphql-js-client-transform to transform GraphQL queries into the format from js-buy-sdk (as far as I understand), but what's wrong with fetch('https://SHOP_NAME.myshopify.com/api/2021-07/graphql.json', {...}), is this somehow deprecated?

nextjs-shopify-store

Posts with mentions or reviews of nextjs-shopify-store. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-08-17.
  • Built a Shopify store with Next.js 😁
    4 projects | dev.to | 17 Aug 2021
    Store: https://nextjs-shopify-store.vercel.app Repository: https://github.com/naoya-kuma1990/nextjs-shopify-store Technologies used: React, Next.js, TypeScript, Tailwind CSS, Material UI, Shopify JavaScript Buy SDK, Store Front API (Graph QL) Implemented pages: Collection (product list), product details, cart, search results

What are some alternatives?

When comparing js-buy-sdk and nextjs-shopify-store you can also consider the following projects:

storefront-api-examples - Example custom storefront applications built on Shopify's Storefront API

nextjs-shopify-store - Shopify Store by Next.js

gatsby-starter-shopify - A Gatsby starter using the latest Shopify plugin showcasing a store with product overview, individual product pages, and a cart

babel-plugin-graphql-js-client-transform

Material UI - Ready-to-use foundational React components, free forever. It includes Material UI, which implements Google's Material Design.