Surprising small, incredibly powerful

Install in seconds - it’s as easy as copying and pasting a code snippet, clocking in at just 2.1kb (minified, compressed and served over .gzip)

npm install --save @moltin/sdk

A rich feature set at your fingertips

Power your inventory, carts, categorization, search, checkout and more.

1
      2
      3
      4
      5
      6
      7
      8
      9
      10
      11
      12
      13
      14
      15
// Add a product to a cart
      async function addToCart() {
        try {
          // Get all products in your store
          const products = await Moltin.Products.All();
          const product = products.data[0];
      
          // Add the first product to the cart
          return Moltin.Cart().AddProduct(product.id);
        } catch (e) {
          e.errors.forEach(err => {
            throw new Error(err.detail);
          });
        };
      };
      

Any framework

No external libraries required. Works seamlessly with all modern JS frameworks.

Lightning fast

Remove the middleman servers and connect clients directly to our backend.

Payment ready

Choose and implement your preferred provider from the most popular payment gateways.

Secure

Our implicit grant type ensures clients can not make destructive actions.

Any language, any device, anywhere

With an SDK optimized for JavaScript, Node, Angular and ReactJS, use the framework you prefer.

Clientside JS

For frontend applications.

NodeJS

For backend applications.

Beyond JavaScript

Extend your eCommerce offering with cross-platform support and the ability to build entirely new interfaces in any language, for any device.