Gathering detailed insights and metrics for @andvea/shopify-graphql-client
Gathering detailed insights and metrics for @andvea/shopify-graphql-client
Shopify's GraphQL API with Node and without pain
npm install @andvea/shopify-graphql-client
Typescript
Module System
Min. Node Version
Node Version
NPM Version
70.6
Supply Chain
97.9
Quality
76.4
Maintenance
100
Vulnerability
100
License
JavaScript (100%)
Total Downloads
832
Last Day
3
Last Week
5
Last Month
30
Last Year
298
20 Stars
28 Commits
1 Watching
2 Branches
1 Contributors
Minified
Minified + Gzipped
Latest Version
1.1.1
Package Id
@andvea/shopify-graphql-client@1.1.1
Unpacked Size
23.09 kB
Size
7.69 kB
File Count
4
NPM Version
8.19.4
Node Version
16.20.2
Publised On
28 Apr 2024
Cumulative downloads
Total Downloads
Last day
-50%
3
Compared to previous day
Last week
-68.8%
5
Compared to previous week
Last month
3.4%
30
Compared to previous month
Last year
-44.2%
298
Compared to previous year
5
This is a JavaScript module that allows you to invoke Shopify's GraphQL API with Node without having to worry about all the tedious stuff like retries, throttling, backoff time and more. The purpose is to abstract all the best practices necessary for a healthy intensive use of the Shopify GraphQL API, so that you can take care of the rest.
Here you can find a list of the major benefits. Please note that some of them are still work in progress.
You can install the library via npm
npm install @andvea/shopify-graphql-client --save
This is a basic example of using the library:
1import {ShopifyGraphQL} from '@andvea/shopify-graphql-client'; 2 3var shopifyGraphQL = 4 new ShopifyGraphQL({ 5 apiEndpoint: 'https://test.myshopify.com/admin/api/2023-04/graphql.json', 6 apiKey: 'shpca...b32', 7 retryThrottles: true, 8 maxConcurrentRequests: 5 9 }); 10 11try { 12 var shopifyResponse = 13 await shopifyGraphQL.request(`{ 14 shop { 15 id 16 } 17 }`); 18 19 console.log(shopifyResponse); 20} catch(reqErr) { 21 console.log('Something went wrong!'); 22 console.log(reqErr); 23}
apiEndpoint
: full API endpoint, eg https://test.myshopify.com/admin/api/2023-04/graphql.json
apiKey
: the shop's API keyretryThrottles
: whether throttled requests should be automatically retriedmaxConcurrentRequests
: how many requests can be sent at the same time.
This concurrency capacity refers to how many requests can be sent
even if Shopify hasn't responded yetTo get an overview of tests, read the related section in the Contributing guide.
Feel free to open an issue if you have any problem.
Contributions are more than welcome. To learn more about, read the Contributing guide.
My thanks go to my friends at Uppa.
Aiming to build a better world is an attitude I learnt from them:
Chiara B., Chiara R., Claudia L.G., Daniela M., Francesca G., Giulia B.,
Lidia D., Lorenzo B., Lorenzo C., Pierpaolo D.M., Sergio C.N., Virginia V.
No vulnerabilities found.
No security vulnerabilities found.