Developers · 1 min read

Embedding the studio in a Next.js storefront

The studio ships as a React package: install it, hand it the metadata your Back Office saved, and mount one component. Here is the whole path.

The studio embedded on a product pageDevelopers

If you already run a storefront, you don’t need our store to sell custom products. The SDK puts the same studio inside your own React app — the rules engine, the preview and the true-to-size export included.

Install

Both packages are published privately under the @intuio scope. Ask the DesignMint team for an access token, add it to your project’s .npmrc, then install:

terminal
bash
1npm install @intuio/designmint-studio2npm install @intuio/designmint-back-office-sdk

Mount one component

The studio is the default export and needs no providers or wrappers. Give it the metadata your Back Office produced, your priced catalog and your backend details — it handles the rest.

ProductStudio.jsx
tsx
1import DesignMintStudio from "@intuio/designmint-studio"2​3export function ProductStudio({ metadata, products, customer }) {4  return (5    <div className="h-screen min-h-0">6      <DesignMintStudio7        metadata={metadata}          // Base64 string from the Back Office save()8        products={products}          // your priced catalog9        productCanvasData={{}}       // or a previously saved canvas-data map10        backendUrl={BACKEND_URL}11        publishableKey={PUBLISHABLE_API_KEY}12        customerId={customer?.id ?? null}13        currencyCode="usd"14        onAddToCart={async (items) => { /* create the cart lines */ }}15      />16    </div>17  )18}

The studio ships no CSS of its own — add the package to your Tailwind content globs so your build generates its classes.

Where to go next

The docs cover the rest: the studio props, the product catalog shape, saving and restoring a customer’s design, and the Back Office SDK your merchants use to draw the rules.

Filed under DevelopersAll posts
Build notes

Got a question
we should answer?

Tell us what you print and what keeps going wrong — the best posts start as a customer’s question.