Chord OMS
...
Developer Tools
Gatsby
SDK Reference
1min
the chord client side javascript sdk is installed as a gatsby theme it's available as an npm package, @chordcommerce/gatsby theme performance , via github packages despite the name, this package does not provide a visual theme to quote from the gatsby documentation https //www gatsbyjs com/docs/themes/what are gatsby themes/ gatsby themes are plugins that include a gatsby config js file and add pre configured functionality, data sourcing, and/or ui code to gatsby sites you can think of gatsby themes as separate gatsby sites that can be put together and allow you to split up a larger gatsby project! the gatsby theme performance theme includes the chord sdk, a set of methods you can import and use in your react components to do things like add items to a cart and check out the theme also pre configures your gatsby site with a number of useful commerce features like product feeds and internationalization support the chord sdk is available to use in your react components via react hooks hook description useanalytics docid\ n6gxgpthdtzcer80sn zm provides support for sending ui related tracking events to segment useauth md useauth docid\ s8mmlbw6nsrd6qm 1wnbn provides support for user authentication with a shopify customer account usecart docid\ txa mzjahlfdaxb0joepy returns the current shopping cart, and functions for creating and interacting with the shopping cart useuser docid ujjt7bcf7jcuebvnviej useuser md returns the current user, and functions for loading data about the user