Docs Surfacing Mantle data

Surfacing Mantle data

Mantle can automatically surface important information about the currently authenticated customer such as:

  1. Plans that are available for the customer to subscribe to
  2. Details about the customer’s active subscription, such as its trial status and trial information
  3. Usage metrics that the customer has accumulated over the current billing period

To help you get started, Mantle currently provides a number of open source packages via NPM:

  1. Mantle JS client - a simple JS client that can be used to interact with the Mantle API from both the frontend and backend
  2. React SDK - this package provides a React context provider and hook which expose data surfaced by the client in an easy to consume way
  3. Polaris 12 components package for those who are striving to attain “Built for Shopify” status