Skip to content

The widget in five minutes

Paste two lines. The catalogue, the 3D and the AR button come with them.

<script src="https://cdn.duor.io/sdk/v1.js"></script>
<div id="cfg"></div>
<script>
DuorEmbed.createConfigurator('demo-kitchen', document.getElementById('cfg'), {
publicKey: 'pk_test_demo',
locale: 'en',
});
</script>

That key is the shared sandbox. It serves a demo catalogue, it is not billed, and it needs no account — see the sandbox. Your own key is on the Embedding screen of the cabinet, already substituted into the snippet.

'demo-kitchen' the catalogue slug — one shop can publish several
the element where it mounts. Give it a height, or the widget takes 640px
options publicKey is required; everything else has a default
Terminal window
npm i @duor/embed
import { Configurator } from '@duor/embed';
<Configurator
catalog="demo-kitchen"
publicKey="pk_test_demo"
locale="en"
onLead={(lead) => analytics.track('lead', lead)}
/>;

Tilda, Wix, Squarespace and most shop themes will take an iframe:

<iframe
src="https://embed.duor.io/demo-kitchen?key=pk_test_demo&locale=en"
style="width:100%;height:640px;border:0"
allow="xr-spatial-tracking; camera"
></iframe>

allow is not optional. Without xr-spatial-tracking the Android AR button is there and does nothing, which is worse than not offering it — the iframe is refused the permission and the failure happens in the visitor’s hands.