js-buy-sdk
storefront-api-examples
js-buy-sdk | storefront-api-examples | |
---|---|---|
8 | 4 | |
961 | 1,091 | |
0.2% | - | |
5.4 | 0.0 | |
7 days ago | 6 months ago | |
JavaScript | JavaScript | |
MIT License | MIT License |
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
-
Embedding a Shopify collection into a React app
Shopify JS Buy SDK
-
Build an ecommerce app with Next.js and Shopify
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?
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
-
Built a Shopify store with Next.js 😁
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
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?
storefront-api-examples
- Do Shopify stores support Threejs for interactive 3D homepages?
- Can I build an e-commerce app based on Shopify?
-
Redirecting "Buy Buttons" to send sales to the store cart rather than the side cart?
I haven't come across any snippets where you just put in the product ID and you get a widget with a checkout button. There are things like this: https://github.com/Shopify/storefront-api-examples/tree/master/react-js-buy
-
Best Practice In GraphQL Queries
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?
What are some alternatives?
gatsby-starter-shopify - A Gatsby starter using the latest Shopify plugin showcasing a store with product overview, individual product pages, and a cart
strapi-shopify - 🚀 Integrate Strapi and Shopify
nextjs-shopify-store - Shopify Store by Next.js [Moved to: https://github.com/momonoki1990/nextjs-shopify-store]
stack-underflow-mern-gql - Feature-rich ‘stack overflow’ (QnA site) clone. Made using MERN + GraphQL stack.
babel-plugin-graphql-js-client-transform
apollo-upload-client - A terminating Apollo Link for Apollo Client that fetches a GraphQL multipart request if the GraphQL variables contain files (by default FileList, File, or Blob instances), or else fetches a regular GraphQL POST or GET request (depending on the config and GraphQL operation).
Material UI - Ready-to-use foundational React components, free forever. It includes Material UI, which implements Google's Material Design.
nextjs-shopify-store - Shopify Store by Next.js
Quell - Quell is an easy-to-use, lightweight JavaScript library providing a client- and server-side caching solution for GraphQL. Use Quell to prevent redundant client-side API requests and to minimize costly server-side response latency.
react-ssr-apollo-boilerplate - A boilerplate for React with SSR using GraphQL and Apollo
redwood - The App Framework for Startups