craftgen · boxes Build a box

craftgen · boxes · embed code

3D and AR on your product page — in two lines of code

Build a box for your product in the configurator, copy the embed code and add it to Tilda, WordPress, Shopify or your own HTML. Shoppers spin the box, open it and place it on their table in AR. No 3D designer needed.

Build a box and get the code

The configurator is free, in beta. The code is under “Embed code” below the finished 3D model.

DEMO SHOP folding carton 70×40×120 mm, violet — a still of the service 3D model
embed code · HTML
<script src="https://boxes.craftgen.app/embed.js" async></script>
<div data-showgen="b/ad41f49ae0b7fc89" data-state="closed" data-height="520" data-lang="en"></div>
A real box from the configurator inside the embed window. Rotate it with a mouse or a finger; the window’s buttons switch flat, open and closed.

Live example

Change an attribute — see what your shopper gets

On the right is the service’s real embed.js on “your” page. On the left is its code: copy and paste it, it works.

Box
Starting state
How to show it
Assemble on open
embed code · HTML
<script src="https://boxes.craftgen.app/embed.js" async></script>
<div data-showgen="b/ad41f49ae0b7fc89" data-state="closed" data-height="520" data-lang="en"></div>
  • showgen:ready and showgen:state events will show up here

The configurator gives you the same code for your box — with its own number instead of this one.

Loading 3D…

In “button” mode the 3D doesn’t load until the shopper taps — the page stays light.

Where to paste

One code for any website builder

  1. TildaBlock T123 “HTML code”: paste the code into the block and publish the page.
  2. WordPressThe “Custom HTML” block in the page or product editor.
  3. ShopifyThe “Custom Liquid” section in the product page template.
  4. HTMLAnywhere in your markup: the script and the block go where the box should appear.

The code doesn’t depend on your theme: the window lives in its own shadow DOM and takes none of your styles.

AR

The box on your shopper’s table, at real size

The AR button is already in the box window. Shoppers install nothing: iPhone opens Quick Look, Android opens Scene Viewer.

There’s no AR on a computer — open this page on your phone.

  • iPhone · iPadQuick Look. From the embed window the full box page opens — AR starts reliably from there.
  • AndroidScene Viewer straight from the window, at 1:1 scale.
  • State in ARFlat, open or closed — AR takes the state that’s on screen right now.

Film · 12 s

From an empty product card to 3D — two lines

Under the hood

Why the window won’t break your site

  • shadow DOMThe window lives in a shadow DOM: your theme’s styles don’t touch it, and it doesn’t touch them.
  • loading="lazy"3D loads lazily, and in button mode only after a tap.
  • wheelThe mouse wheel scrolls your page instead of zooming the box; zoom with Ctrl + wheel or a pinch.
  • langLabels follow your site’s <html lang> (Ukrainian or English) or the data-lang attribute.
  • b/<id>One box, one link forever: the same settings give the same number.
  • showgen:readyshowgen:ready and showgen:state events for your analytics.

For packaging makers

3D on the card of every item in your range

An item with a FEFCO code and dimensions takes a few clicks in the configurator and gets its own embed code. Shoppers see the box in 3D and AR, not a photo on white.

Preparing your whole range at once — let’s discuss pilot terms on a call. Write to us

Your box is next in this window

Size, board, colour and print are in the configurator. The embed code is under the finished 3D model.

Build a box and get the code

The configurator is free, in beta. On-screen colour is a guide, not a proof.

craftgen · boxes

craftgen · boxes · embed code

3D and AR on your product page — in two lines of code

Build a box for your product in the configurator, copy the embed code and add it to Tilda, WordPress, Shopify or your own HTML. Shoppers spin the box, open it and place it on their table in AR. No 3D designer needed.

Build a box and get the code

The configurator is free, in beta. The code is under “Embed code” below the finished 3D model.

This is how it looks on a product card

DEMO SHOP folding carton 70×40×120 mm, violet — a still of the service 3D model
DEMO SHOP Folding carton, reverse tuck end 70×40×120 mm inside · 350 g/m² board · white both sides, violet color

Tapping the button loads the live 3D model — that’s how button mode works.

And here’s its embed code

Pick a box and a mode — the code changes. Copy it: it works.

Box
How to show it
embed code · HTML
<script src="https://boxes.craftgen.app/embed.js" async></script>
<button type="button" data-showgen-button="b/ad41f49ae0b7fc89" data-state="closed" data-height="420" data-lang="en">View in 3D and AR</button>

Tilda, WordPress, Shopify or your own HTML — the same code.

The box on your shopper’s table, at real size

Tap — and the box stands on your table at real size. The AR button in the box window on your site does the same.

AR opens on iPhone and Android phones.

One code for any website builder

Tilda

Block T123 “HTML code”: paste the code into the block and publish the page.

WordPress

The “Custom HTML” block in the page or product editor.

Shopify

The “Custom Liquid” section in the product page template.

HTML

Anywhere in your markup: the script and the block go where the box should appear.

The code doesn’t depend on your theme: the window lives in its own shadow DOM and takes none of your styles.

From an empty product card to 3D — two lines

Why the window won’t break your site

  • The window lives in a shadow DOM: your theme’s styles don’t touch it, and it doesn’t touch them.
  • 3D loads lazily, and in button mode only after a tap.
  • A second tap on the button hides the 3D, another one shows it again.
  • Labels follow your site’s <html lang> (Ukrainian or English) or the data-lang attribute.
  • One box, one link forever: the same settings give the same number.

3D on the card of every item in your range

An item with a FEFCO code and dimensions takes a few clicks in the configurator and gets its own embed code. Shoppers see the box in 3D and AR, not a photo on white.

Preparing your whole range at once — let’s discuss pilot terms on a call. Write to us

Your box is next in this window

Build a box and get the code

The configurator is free, in beta. On-screen colour is a guide, not a proof.