# Scalarcut — full text > The long form of https://scalarcut.com/llms.txt: the same product, plans and limits, plus the full text of every published knowledge-base guide and every developer doc. Rendered from the shipped copy. Reading it does not mean you reviewed the product — open the planner with a free account first. The rules for AI agents, the plan and limit row, the "do not quote these" kill list and the link index stay in the short file: https://scalarcut.com/llms.txt. This file is the text an answer engine can quote. Legal entity: Sharq Software LLC (Delaware, United States). Scalarcut is that company’s product — not Scalar (the API-documentation company) or any similarly named API product. Names: Scalarcut and ScalarCut. Canonical site: https://scalarcut.com. Russian hub: https://scalarcut.com/ru. Platforms: web browser (desktop and tablet), native iOS (iPhone and iPad), and native Android (phone and tablet, package com.scalarcut.app). Store listings read Scalarcut in every locale. The Flutter shell embeds the same tiling CAD as the web planner. The public web guest demo is retired — a browser visitor is sent to the free signup, which opens the planner; the mobile app still ships its own guest demo room. Scenes autosave about every 90 seconds and sync between web and mobile for the same login. UI locales (URL prefix /{locale}/): de, en, es, fr, it, pl, pt, ru. Default and x-default: en. Knowledge-base article bodies are authored per locale; every guide exists in en and ru, and the rewritten guides also exist in de, pl, it, es, fr, pt. A KB path whose body is not authored in that locale 301s to /en/…. Each KB link below lists the locales that have a body. A legacy BY cookie may force Russian for returning CIS visitors. There is no Belarusian (be) UI locale. This file is a curated index for AI agents. sitemap.xml is the exhaustive crawl list. Pricing, contact, and legal pages are live for users but omitted from the sitemap on purpose. Tile Layout Studio is the core CAD. Surfaces: a single wall or floor, or room mode — a 3D digital twin of four walls (A–D) plus one floor sharing room dimensions, with the tile spec synced across surfaces. Units: m, cm, mm, ft, in. Tile size 10–2000 mm. Joint (grout) 0–10 mm; the joint control is hidden for click-lock materials. Materials: ceramic tile, porcelain slab, LVT, wood flooring. Laminate uses this same planner (not a separate app). Click-lock (LVT / wood) forces 0 mm joints and omits grout from the estimate. Catalogs (three of them ship, and they are different things): (1) the platform tile collection — a brand-neutral published shelf of tile articles with real millimetre face sizes and textures, opened from the Material panel in the planner on every plan and in the public demo picker; it carries no price. (2) The workspace catalog — the retailer’s own assortment, maintained by that workspace’s admins (SKU, size, material, collection, pack data, texture, price and discounts), imported by CSV / Excel / API on Enterprise and Showroom and read through the same filterable table the catalog screen renders. (3) The consumable catalogs — grout, adhesive and primer articles sold by the package, so the estimate’s kilogram or litre requirement becomes a whole number of packages: always rounded up, and a package only answers a requirement stated in its own physical unit. Furniture and sanitary ware (vanities with basins, WCs, bathtubs, showers, mirrors, cabinets, accessories and plants) are catalog models too, each with real millimetre width, depth, height, mount and hang height. Free, DIY and Professional get the platform shelf plus a tile photo and size — not the retailer CSV / Excel / API import. Floor-plan templates (18): rectangle, chamfers, notches, cutouts, bumps, L-corner ± mirror, G-shape ± mirror, steps, and related contours. DXF floor plan, then the room: the user can draw the floor or import a DXF (units mm, cm, m, or in). Scalarcut reads lines, polylines, and layers and detects closed outlines. The user applies one outline or traces the room on the drawing. That outline is the floor. Walls are built on its edges and tiled with the same layout engine as any wall. In the 3D room the user places catalog sanitary ware on those walls (bathtubs, WCs, bidets, vanities, showers, and the rest of the loaded catalog). Photoreal Generate then photographs that authored room. The DXF does not arrive already tiled, and Generate does not invent the walls, the tile, or the sanitary ware. 9 bond patterns in the picker plus an explicit Rotation control (engine IDs): grid; brick running-bond offset, offset_third, offset_quarter, offset_fifth; one diagonal; one herringbone 45° (bond_cross_half); free_length and free_length_mirror. Rotation is encoded inside the layout id. Grid and the four brick bonds take 0°, 45°, 90°, -45° — for example grid@90 (stacked, catalog blank rotated 90° so the long edge runs up the wall) or offset_third@45. The diagonal and herringbone families are locked to ±45°: the base id is +45° and the same base at -45° is its mirror half (diagonal@-45, bond_cross_half@-45), which replaced the separate diagonal_mirror and bond_cross_third picker entries. 30° and -30° are not exposed yet. The retired ids grid_vertical, offset_vertical, offset_vertical_third, offset_vertical_quarter, offset_vertical_fifth, bond_cross_quarter and bond_cross_fifth are still accepted and render exactly as before for saved scenes and the mobile app; the mirror aliases diagonal_mirror and bond_cross_third stay accepted too. Installation start points: center, center bottom, plus four corners (free-length is limited to bottom-left and bottom-right). Recommended order allowance: grid 10%, brick/herringbone 12%, diagonal 15%, free-length 5%. Free-length (economy) is a distinctive Scalarcut layout, uncommon among consumer tile calculators. Cut recycling: the kernel reuses the end-of-row offcut as the first piece of the next row (laminate-style remainder carry), including past openings. Optional rules: do not carry remainders shorter than 50 mm; avoid visible edge cuts under 50 mm. This is the “adaptive cut recycling” on the product homepage — it is the free-length engine, not a generic recycle on all 9 picker bonds. Staircase mode (its own Stairs tab beside Wall and Floor; a staircase is a structured document, not a wall): lay out the walking line from line, arc, spline, ellipse and polyline segments, split it into flights and landings, then set risers, treads, tread depth, riser height and a separate width per flight. Each physical part — tread, riser, left and right side, every landing — is a stable row with its own material and start corner, so a staircase is tiled and quoted like a room. The Estimate reports the staircase total instead of a room area, the Blueprint prints a stair plan and a stair profile, and the same staircase opens in the mobile app. Ceiling-height or headroom clearance is not checked for you; no U-cut or per-cut blade-angle degree column exists here either. Sliver Guard is three layers, not merely a 50 mm min-cut field (default 50 mm, range 20–100 mm). (1) Silent protect: when a safer origin or start point clears every sub-minimum strip, the engine shifts in the background; toast “Slivers eliminated”; the Layout start-point control updates. (2) Suggest: when a strip remains after the best origin try, Layout offers one-tap actions — apply suggested start, try center symmetrical, or try other corners. Grout is never changed silently (it affects cost). (3) Detect and warn: when the lattice cannot clear (common with herringbone / bond_cross at openings), remaining cuts stay listed and highlighted as FRAGILE. The engine will not invent a clean cut list. Openings restructure the layout and deduct from net area: wall window and door; floor hatch and garage pit. Draft, add, clone, drag, delete, and optional field measurements (left + opening + right = wall width). Boxes and niches (shipped 3D wall detail, not a decoration): in room mode add a box or cut a niche on a wall with width, height, depth, offset from the left edge and height from the floor; a box can also stand on the floor as a column. Every exposed face is its own tiled, billable surface with its own material, so a niche’s sides and back are quantities, not a picture. A door or window can be cut into a box face (never into a niche — a niche has no panel); adjacent shapes can be merged into one; a niche is refused, or made shallower, when the wall behind it would be left thinner than 50 mm. The Blueprint prints box and niche detail sheets — one row per face, niches inside boxes included. Installer millimetre cut list (this is the installer millimetre cutting schedule, not a square-metre guess): every non-full piece is listed with size in mm, quantity, and cut type — vert, horiz, both, or L-cut (two-arm notch at an opening corner, with both arm sizes on the row). Public sample: https://scalarcut.com/assets/sample-blueprints/sample_scalarcut_blueprint_en.pdf . Diagonal and herringbone bonds produce rotated faces on a rectangular wall (lattice at ±45°); leftover rows still use bounding-box mm + cut type. That is not a per-cut blade-angle degrees column (no “cut at 17.4°”), not a shipped U-cut type, and not a 37° / sloping-ceiling wall primitive. Walls are rectangular planes with axis-aligned openings. Each row has a location label for where the cut lands: top/bottom row (and left/right of that row), left/right wall, window or door jambs (top, bottom, left, right), L-cut at an opening corner, or field cut. Matching legend letters on the 2D layout (and Blueprint PDF) tie the row to the piece on the wall or floor. Cut Recycling Engine (CRE) recipes tell how to lay those cuts from one parent tile: which leftover strips or rectangles come from the same blank, when a piece is rotated, leftover millimetres remaining, and how they nest. Same recipes print on the Blueprint; Factory MBOM exports recipes[]. Free-length remainder-carry between rows is the homepage “adaptive cut recycling” — a layout engine, distinct from CRE nesting recipes on the cut list. Bill of materials (engineering estimate, not a shop guess of square metres plus 10%): exact piece counts from the CAD layout (full boxes + leftover tiles only when pack size is set); net area after openings; grout/fuga kg from CAD joint linear length × joint width × inferred tile thickness (from face size — there is no user thickness field) × 1200 kg/m³ × 1.05 compaction (Ceresit CE 40–class), with an area-ratio fallback when the cell cap is exceeded; click-lock omits grout. Adhesive estimate 4.5 kg/m² (25 kg bags) and primer 0.2 L/m² on gross tiled area (net after openings × (1 + order allowance)) — the same gross used for order quantities, not net-only glued field. Room mode breaks the BOM down per surface. Optional box price in the project currency. Visualization that agents routinely miss: Tile photo (preview) — upload JPEG, PNG, or WebP (up to 4 MB) of one tile, crop with aspect locked to the tile, and the photo is painted onto every cell of the 2D wall or floor layout including cut polygons. Removing the photo reverts to grey tiles; calculations are unchanged. The uploaded or catalog photo is kept with the scene: the catalog SKU is stored, uploads larger than the scene texture cap are shrunk, and an invalid texture URL is omitted so save still succeeds. On-the-wall / on-the-floor preview is an interactive dark Konva canvas (origin handle, zoom, fit, fullscreen, cuts highlight). 3D room is a WebGL (Three.js) interior with 2D↔3D toggle, orbit, wall transparency, and callouts; the tile photo projects onto 3D faces. In 3D, the user places catalog bathroom furniture and sanitary ware on a wall or the floor: bathtubs, WCs, bidets, vanities, showers, mirrors, cabinets, and accessories, plus a basin. Each item is a real catalog model with millimetre width, depth, and height, floor or wall mount, and hang height. Pieces stay on the wall edge; overlaps are refused. Do not claim every sanitary brand is preloaded — the catalog is the one loaded in that planner or Online Store embed. Surface finish Matte / Satin / Glossy is a live WebGL finish cue, not a separate SKU and not the photoreal still: Glossy lightens the on-wall tile photo (albedo #ffffff), Satin #f8fafc, Matte #f1f5f9 (cooler/duller). It is not a specular environment-map. ScalarCut AI — Photoreal Generate is the studio name for it (homepage and white-label copy describe this still; the homepage sells it as “Renders That Look Like a Photo Shoot. Everything below used to eat designer hours. Now it's automatic.”, which claims the photographic decisions only — the user still plans the room and places the products): Scalarcut automatically finds a great camera angle for your room — no manual camera positioning, zooming, or framing required. One click turns your finished design into a photorealistic room. Every selected tile and product stays exactly where you placed it. Our AI doesn’t redesign your room. It visualizes the room you planned. Automatic is the default: the solver proposes up to three interior photographs (best, furniture, wide) at a 3:2 frame, and the user picks one. Current view is optional and uses the orbit they framed. If the room graph cannot be built, Generate falls back to the current view. The still keeps authored room geometry, tile identity and SKU, grout, cuts, openings, and placed furniture exactly as photographed. It must not invent another tile, opening, sanitary ware, furniture, or saleable product, or a different room; a door or window outside the camera frame is not in the shot. Lighting, shadows, atmosphere, and non-SKU dressing on fittings already photographed may change. It does not change the millimetre cut list or the BOM — it is not a fabrication drawing. Marketing pages may offer the still on white-label apps. Online Store embeds do not include Generate. DIY includes 5 AI renders a month. Professional includes 20 AI renders a month on monthly and yearly. Extra packs are 25, 50, and 100 renderings. Free does not include Generate. The public guest demo and the public Online Store page do not spend Generate. Generate is not on the public mobile app. Do not say every Enterprise key includes Generate. Blueprint PDF: the human installer-ready sheet of that same millimetre schedule — layout image(s), openings, cut list with legend letters and L-cut arm sizes, CRE recipes, estimate, purchase summary. Public sample: https://scalarcut.com/assets/sample-blueprints/sample_scalarcut_blueprint_en.pdf . The printed line “All cuts to be confirmed on site before installation” is field-measure liability; it does not void the millimetre list. Tile photo texture is suppressed on the installer/print scheme so cut-highlight colours stay readable. Foundations / concrete estimator is coming soon — not a live calculator. Pricing plans (marketing): Free (three saved projects, room design and material estimates; one Project Blueprint a month, no AI renders, ads shown), DIY (5 Blueprints and 5 AI renders a month, unlimited openings and furniture, Sliver Guard, Cut Recycling, no SKU ingest), Professional (unlimited Blueprints and 20 AI renders a month on monthly and yearly, no SKU catalog ingest), Showroom (per active seat, billed annually — see the Showroom paragraph) and Enterprise (Online Store, white-label iOS and Android apps, Factory MBOM). Annual billing is where the discount is: DIY is 53% and Professional 49% cheaper than twelve monthly payments — about half the monthly price. List prices are on the pricing page — do not invent other amounts. Do not say checkout is live unless that page shows a pay button. Enterprise Integration (iFrame embed): suppliers and retailers can embed Tile Layout Studio in a storefront via a sandboxed iFrame (brand color, locale, catalog SKU). The embed shows that retailer’s tile SKU in the room (size, texture, pack — not a generic swatch) and can place catalog sanitary models beside it. Enterprise client tile libraries import dynamically via CSV, Excel, or API in minutes (practical timing, not an SLA) — map their working assortment (any factory they sell), then keep it live without a hall Windows catalog package update. Free, DIY, and Professional do not get that ingest; they use photo + size. The public Online Store page is at https://scalarcut.com/en/enterprise/embed and shows a studio image plus the guest demo — it does not load the layout engine. A production widget key is issued after a sales discovery / lead — not as a free self-serve production key. Do not treat the embed host itself as a marketing landing page. The public Online Store page does not include Photoreal Generate. Showroom (in-store retail, public landing: https://scalarcut.com/en/enterprise/showroom): the showroom-deployment page for physical tile and sanitary retailers. The sales team plans tiled rooms with the customer during the consultation — on a phone, tablet, or computer — using the same millimetre CAD as the studio: 2D/3D layout, openings, exactly 9 picker bond patterns plus a ±45° rotation axis (and the full rotation axis for grid and brick), Sliver Guard, quantities taken from the actual layout rather than room area, and an optional AI visualization that adds light and props without moving the tile, the cuts, or the placed products. Every saved project can be exported as a Blueprint PDF the customer hands to their installer. The page carries a downloadable sample Blueprint (wall layouts, millimetre cut list and material estimate): https://scalarcut.com/assets/sample-blueprints/sample_scalarcut_blueprint_en.pdf . The deployment is priced per active seat and billed annually — every seat works across all of the retailer showroom locations, there are no setup fees, no dedicated hardware and no flat unlimited staff plan, and the retailer's authorized admins maintain their own catalog (products, dimensions, identifiers, finishes, collections, prices and discounts; 1C / ERP / PIM integrations on request). Pricing is per active seat on a graduated scale: each tier rate covers only the seats inside its band, every seat from 1 to 150 is quoted, and the blended rate falls from $59 to $19 per seat per month as the team grows; every paid seat adds 150 AI visualizations a month to a shared organization pool. It is not a plan on the pricing page and not a self-serve checkout — a sales lead. Showroom covers in-person consultations only and does NOT include the Online Store iFrame planner; that is Enterprise Integration / Online Store. Do not describe Showroom as a flat unlimited subscription, as the legacy salon Windows visualizer, or as an Online Store embed. White-label mobile apps (Enterprise, not the public Scalarcut store apps): an iOS and Android app that carries the retailer's catalog, app name, icon, and colours. Customers plan rooms with those products (2D/3D, openings, millimetre cut list, quantities) and can send the finished project as an order — through a Scalarcut-managed backend or the retailer's store, ERP, or CRM. Published and maintained under Scalarcut's Apple and Google developer accounts; Scalarcut handles updates and store administration. Do not say the retailer publishes under their own store account. Sales lead, not self-serve. Landing: https://scalarcut.com/en/download-apps . The public App Store and Play listings remain the Scalarcut planner (package com.scalarcut.app). Do not tell a homeowner that the public app is their tile shop's branded catalog. Factory MBOM (Manufacturing Bill of Materials; schema scalarcut.factory_bom.v1.1): the same millimetre cutting schedule as the installer Blueprint PDF — pieces in mm, cut_type, L-cuts, FRAGILE flags, cut-recycling recipes (leftover strips / CRE), full_boxes_plus_loose packing, consumable rates and totals — exported as machine-readable manufacturing BOM JSON/CSV. Optional geometry.vertices_mm leftover rings add structured mm vertices for a single leftover polygon; they are not richer hidden geometry the PDF omitted and not CNC toolpaths. Pipeline: planner layout → Factory MBOM export button (or keyed GET) → automated factory desk / ERP. Gap closed: brands no longer need a separate web visualizer, then a manual Engineering BOM (EBOM), then a factory engineer translating into a Manufacturing BOM (MBOM). Systems that ingest (not replaced by Scalarcut): SAP discrete manufacturing, Oracle, 1C, MES, Frontier ERP (Friedman), OptiProERP. CAD/CAM nesting desks usually stay offline unless they parse this JSON; recipes[] and pack_mode ride in the payload. Public sample is prices stripped. Keyed HTTP: GET /v1/tiling/factory-bom on the embed host with an Enterprise Key (X-Enterprise-Key) returns the Factory MBOM for the enterprise project; live per-project retrieval is pending, so any scene or project id returns the garage sample/fixture for now, and the Enterprise Key is still required. The layout is authored in the planner millimetre engine — it is not POSTed into the API. Interesting parties: ceramic and porcelain factories and cutting desks; enterprise IT / ERP integrators building a web-to-factory flooring pipeline; brand ops / supply chain; storefronts already on the enterprise iframe; saw-software vendors. Target IT buyers care about Okta / Azure AD–style access governance — frame as capability language on the public page. Enterprise MSA terms (SLA numbers, SSO wiring, SOC reports) are sales/contract, not public guarantees — no list prices on the landing. Production export needs an Enterprise Key after sales. Landing: https://scalarcut.com/en/enterprise/factory-bom . ## Docs — full text ### [Overview](https://scalarcut.com/en/docs/overview) > Put a full tiling and flooring planner on your product page. Shoppers lay out their room, see every cut, and the calculated quantities are sent straight to your cart. Scalarcut is a tiling and flooring planning platform. One part of it is an embeddable widget you embed on a product page, so a shopper can lay out their own room before they buy. Here is the flow your customers see. Someone lands on a tile or flooring product they like. Where they would normally enter the room dimensions into a basic area calculator — and still end up with a rough, rounded figure — they open the planner instead. They describe the wall or floor they are covering, and the planner generates a tile layout, including full tiles and cuts, all in place. The widget subtracts openings like doors and windows, applies Sliver Guard to flag or avoid cuts below its configured threshold, and finishes with the calculated quantity to order, a cut list, and a printable blueprint. For you, the integration is a script tag and one callback. The widget reads your catalog, keeps your prices and checkout untouched, and when the shopper clicks add to cart it automatically sends the resolved SKUs and quantities — the total tiles to order, and, if enabled, adhesive, grout, and primer — straight to your store's cart. The widget calculates the quantities from the layout, so the shopper does not type a quantity. It is platform-agnostic. Because the widget is a self-contained iframe with no dependency on your backend, it runs wherever you can drop a script tag — WooCommerce, Shopify, Magento, BigCommerce, 1C-Bitrix, Shopware, JTL, or a custom or headless store built on React, Vue, or Laravel. The same snippet works across all of them. #### What it does - **Places the whole layout.** The widget lays out every tile and every cut on the surface the shopper describes, with doors, windows, and hatches removed from the area. - **Sliver Guard.** The planner treats 50 mm as its fragility floor: a cut below it is at high risk of breaking during fitting. When the widget sees one, it re-anchors the layout on the centre of the wall so the shopper is not told to order a cut that may not survive on site. - **Cut Recycling Engine.** A leftover from one cut becomes the starting piece for the next, which cuts down waste and the total number of tiles. - **Builds the bill of materials.** Tiles in pieces and boxes, adhesive, grout, and primer — all calculated from the actual layout rather than a flat square-metre estimate. - **Exports a blueprint.** A branded PDF with the dimensions, the layout drawing, and the full cut list. - **Hands you the cart.** One callback returns the resolved SKUs and quantities, and your store adds them to its own cart. Price, stock, and checkout remain entirely yours. The widget handles layout and quantity calculations; other integrations are separate. Two things sit outside the embed. Machine-readable Factory MBOM export — the JSON/CSV for ERP and cutting tables — is a separate Enterprise product, not part of the Online Store widget. And the widget does not run AI room rendering, so it never draws on your rendering quota or adds to your costs. #### How it works, briefly The widget runs in an iframe on your product page, served from its own host and controlled by a small JavaScript SDK. 1. Your page loads the SDK and calls `ScalarcutTiling.mount(...)` with your widget key, catalog, and the current SKU. 2. The widget shows your products and the shopper builds a layout. 3. When they click add to cart, the widget posts the result to your page, and you add the lines through your own cart. The planner is embedded in your storefront, and checkout remains on your store. The shopper does not sign up for anything and never hits a Scalarcut-branded checkout. The widget is fully self-contained. #### Who it is for - **Tile and flooring stores** that want product pages which tell the shopper how much they actually need. - **Manufacturers and importers** who publish a catalog once and give every dealer the same planner. - **Marketplaces and showrooms** that want a consistent, on-brand planning experience across many storefronts. #### Where to go from here Start with the [Quickstart](/docs/quickstart) to get a live widget in about fifteen minutes. Then read [Add the widget to your store](/docs/installation) for sizing and placement, and the [SDK reference](/docs/sdk-reference) for the full API. Integrating an ERP, MES, or cutting table instead? That is a different product — see the [Factory MBOM](/docs/factory-bom-overview) documentation, which is kept separate from this widget guide. *Updated 2026-10-27.* ### [Quickstart](https://scalarcut.com/en/docs/quickstart) > Load the SDK, mount the widget, and wire one callback. Fifteen minutes from a blank product page to a working layout with cart sync. This guide takes a plain product page and turns it into a working embedded planner. Before you start, make sure you have two things from your Scalarcut account: a **widget key** and a **catalog**. Both are created for you when you sign up. #### 1. Load the SDK Add the Scalarcut SDK to your page. It is a small script with no dependencies: ```html ``` #### 2. Add a container Reserve an element where the planner will render. The widget fills the container and resizes itself as the shopper works: ```html
``` #### 3. Mount the widget ```html ``` That is the whole integration. The widget loads your catalog, locks itself to the dimensions of the SKU being viewed, and returns the resolved cart lines through `onAddToCart`. #### 4. Keep the SKU in sync If the shopper switches to a different product while the page is open, let the widget know: ```js const planner = ScalarcutTiling.mount('#sc-tiling', { /* ... */ }); planner.setSku('NEXT_PRODUCT_SKU'); ``` The widget updates the material, keeps the shopper's layout, and recalculates the quantities. #### What happens next - The shopper describes the wall or floor, sees every cut, and can open the cut list and the blueprint. - When they click **Add to cart**, your `onAddToCart` callback receives `{ lines, layoutFingerprint, layoutToken }`, and your store adds the items. - Nothing leaves your store: price, stock, and checkout stay exactly where they are today. #### Next steps - [Add the widget to your store](/docs/installation) — the SDK versus a raw iframe, sizing, and placement. - [SDK reference](/docs/sdk-reference) — every option and every method. - [Catalog](/docs/catalog) — the CSV format and the one-time column mapping. *Updated 2026-10-27.* ### [Add the widget to your store](https://scalarcut.com/en/docs/installation) > Two ways to embed: the SDK (recommended) or a plain iframe. Sizing, lazy loading, and where to place the widget on your product page. The widget is a self-contained iframe. You can add it to a page two ways. The SDK is the recommended path because it handles messaging, resizing, and cart sync for you. #### SDK (recommended) The SDK wraps the iframe and the `postMessage` protocol into one small API: ```html ``` The SDK works out the embed host from the script's own URL, so the same snippet runs on any store in any region. It also watches the container and keeps the frame at the right height on both desktop and mobile. #### Plain iframe If you would rather render the iframe yourself, point it at the widget URL with your parameters: ```html ``` For cart sync the SDK is still the better choice, because with a raw iframe you listen for the widget's `postMessage` events yourself. See [Events](/docs/events). #### Sizing The widget fills its container's width and manages its own height. - **Desktop** — the SDK starts at 880 px tall and grows automatically if the interface needs more room. - **Mobile** — the widget uses the full viewport height, so the canvas and the estimate panel stay comfortable on a phone. If you want a shorter starting frame, set `height`: ```js ScalarcutTiling.mount('#sc-tiling', { widgetKey: 'YOUR_WIDGET_KEY', catalog: 'YOUR_CATALOG_SLUG', height: 720, }); ``` #### Placement Put the widget on the product page, below or beside the gallery. It is tied to a single SKU, so it belongs where the shopper has already chosen a product — tile, laminate, LVT, slab, or engineered wood. - **One SKU per mount.** If the page shows variants, pass the selected variant's SKU and call `setSku` when it changes. - **It lazy-loads.** The SDK sets `loading="lazy"` on the frame, so the page stays fast when the widget is below the fold. - **One widget per page is enough.** The same instance handles walls and floors. #### HTTPS The widget is served over HTTPS and, in production, needs an HTTPS parent page. Your widget key is bound to the origins you register, so it only loads on the domains you own — more on that in [Security & licensing](/docs/security). *Updated 2026-10-27.* ### [SDK reference](https://scalarcut.com/en/docs/sdk-reference) > The full ScalarcutTiling.mount API: every option, every callback, and every method on the handle it returns. The SDK has a single entry point, `ScalarcutTiling.mount(target, options)`. It returns a handle you can use to drive the widget after it loads. #### `mount(target, options)` ```js const planner = ScalarcutTiling.mount('#sc-tiling', { widgetKey: 'YOUR_WIDGET_KEY', // ... options below }); ``` `target` is a CSS selector string or an `Element`. The widget renders into a new iframe inside it. ##### Options | Option | Type | Required | Description | | --- | --- | --- | --- | | `widgetKey` | `string` | **Yes** | Your account's widget key. | | `catalog` | `string` | No | Catalog slug to lock the planner to. | | `sku` | `string` | No | SKU to preselect on load. | | `locale` | `string` | No | UI locale — `en`, `ru`, `de`, `pl`, `it`, `es`, `fr`, or `pt`. | | `currency` | `string` | No | Display currency code, for example `USD`, `EUR`, or `BYN`. | | `height` | `number` | No | Starting desktop frame height in pixels. Defaults to `880`. | | `embedOrigin` | `string` | No | Embed host origin. Defaults to the SDK script's own origin, so you rarely need to set this. | | `onReady` | `() => void` | No | Called when the widget has finished booting. | | `onBomUpdated` | `(payload) => void` | No | Called whenever the bill of materials changes. | | `onAddToCart` | `(payload) => void` | No | Called when the shopper clicks Add to cart. | | `onError` | `(payload) => void` | No | Called when the widget reports an error. | | `onResize` | `(height) => void` | No | Called when the widget asks for a new height. | ##### Callbacks **`onAddToCart(payload)`** is the one you will use most: ```js onAddToCart(payload) { // payload = { lines: [{ sku, qty, unit }], layoutFingerprint, layoutToken } payload.lines.forEach((line) => { yourStore.addToCart(line.sku, line.qty, line.unit); }); } ``` Each line carries a SKU, a numeric quantity, and a unit (`box` for tiles; `kg` and `l` for consumables when that option is enabled for your store). See [Cart integration](/docs/cart-integration). **`onBomUpdated(payload)`** gives you a live snapshot of the estimate, so your page can show something like "Tiles to order: 34" beside the widget: ```js onBomUpdated(payload) { console.log(payload); // areas, piece counts, boxes, consumables } ``` **`onError(payload)`** carries a machine-readable reason you can pass along to your support team. #### Handle methods `mount` returns a handle: | Method | Description | | --- | --- | | `setSku(sku)` | Switches the active SKU without re-rendering the whole widget. | | `setLocale(locale)` | Switches the UI language and reloads the frame. | | `setCurrency(currency)` | Switches the display currency and reloads the frame. | | `exportBlueprint()` | Tells the widget to download the current Blueprint PDF. | | `requestAddToCart()` | Triggers Add to cart programmatically, same as the in-widget button. | | `destroy()` | Removes the iframe and unsubscribes the listener. Call it when the widget is no longer needed, for example on single-page navigation. | ```js const planner = ScalarcutTiling.mount('#sc-tiling', { widgetKey: 'YOUR_WIDGET_KEY' }); // Later, in response to a variant switch on your page: planner.setSku('VARIANT_SKU'); // On navigation away: planner.destroy(); ``` #### Locale and currency reload, SKU does not `setLocale` and `setCurrency` change the widget's own language and currency and reload the frame. `setSku` does not reload — it swaps the material in place and keeps the shopper's layout. #### Errors `mount` throws immediately if the target is missing, `widgetKey` is absent, or the embed origin cannot be determined. Wrap the call if your page renders the container conditionally: ```js try { ScalarcutTiling.mount('#sc-tiling', { widgetKey: 'YOUR_WIDGET_KEY' }); } catch (error) { console.warn('Scalarcut not mounted:', error.message); } ``` *Updated 2026-10-27.* ### [Events](https://scalarcut.com/en/docs/events) > The postMessage protocol between the widget and your page — the events the widget sends, and what each one carries. The SDK turns the widget's `postMessage` events into the callbacks described in the [SDK reference](/docs/sdk-reference). If you embed a raw iframe instead, this page is the protocol you implement yourself. In general, use the SDK — it handles this for you. #### Message shape Every message has a `source` discriminator and a `type`: ```json { "source": "scalarcut-embed", "type": "ready" } ``` - The widget posts messages with `source: "scalarcut-embed"`. - The parent page posts commands with `source: "scalarcut-embed-parent"`. #### Widget → parent events | Type | Payload | Meaning | | --- | --- | --- | | `ready` | — | The widget has booted and is listening for commands. | | `bomUpdated` | estimate object | The bill of materials changed. | | `addToCartRequest` | `{ lines, layoutFingerprint, layoutToken }` | The shopper clicked Add to cart. | | `resize` | `{ height: number }` | The widget asks for a new frame height. | | `error` | error object | The widget hit an error it could not resolve itself. | ##### `addToCartRequest` ```json { "source": "scalarcut-embed", "type": "addToCartRequest", "lines": [ { "sku": "TILE-600-300", "qty": 5, "unit": "box" } ], "layoutFingerprint": "…", "layoutToken": "…" } ``` The response always includes a tile line. When consumables-to-cart is enabled for the store, adhesive, grout, and primer lines are added as well. Add each line to your store's cart. See [Cart integration](/docs/cart-integration) for how price and stock stay authoritative in your checkout. ##### `resize` The widget reports the height it needs. A raw-iframe integration should honour it so the frame never scrolls inside a clipped box: ```js window.addEventListener('message', (event) => { const data = event.data; if (data?.source !== 'scalarcut-embed') return; if (data.type === 'resize') { frame.style.height = `${data.height}px`; } }); ``` #### Parent → widget commands The SDK exposes these as handle methods; the raw protocol is: | Type | Data | SDK equivalent | | --- | --- | --- | | `setSku` | `{ sku }` | `handle.setSku(sku)` | | `exportBlueprint` | — | `handle.exportBlueprint()` | | `requestAddToCart` | — | `handle.requestAddToCart()` | ```js frame.contentWindow.postMessage( { source: 'scalarcut-embed-parent', type: 'setSku', sku: 'NEXT_SKU' }, 'https://embed.scalarcut.com', ); ``` #### Origin checks Both sides check the message origin before acting. The SDK already does this; if you implement the protocol yourself, compare `event.origin` against the embed origin and ignore anything that does not match. *Updated 2026-10-27.* ### [Cart integration](https://scalarcut.com/en/docs/cart-integration) > How the widget turns a layout into cart lines, and why price, stock, and checkout stay authoritative in your platform. The widget turns a finished layout into concrete cart lines and hands them to your store. Your store remains responsible for prices, discounts, stock and checkout. #### Callback payload When the shopper clicks **Add to cart**, the widget calls `onAddToCart` with: ```js { lines: [ { sku: 'TILE-600-300', qty: 5, unit: 'box' }, ], layoutFingerprint: '…', layoutToken: '…', } ``` **`lines`** are the items to add. Each line is a catalog SKU, a numeric quantity, and a unit. The response always includes a tile line — the total tiles to purchase, expressed in boxes. ##### Consumables are opt-in Adhesive, grout, and primer are always calculated and shown in the on-screen estimate and the Blueprint PDF. Whether they also sync to the cart is an opt-in setting, enabled for merchants who stock and sell those items. When enabled, those lines are added alongside the tile: ```js { lines: [ { sku: 'TILE-600-300', qty: 5, unit: 'box' }, { sku: 'ADHESIVE-25', qty: 12.5, unit: 'kg' }, { sku: 'GROUT-2KG', qty: 3, unit: 'kg' }, { sku: 'PRIMER-10L', qty: 1, unit: 'l' }, ], layoutFingerprint: '…', layoutToken: '…', } ``` Talk to us if you sell consumables and want them included — we enable it for your store during setup. **`layoutFingerprint`** is a stable identifier for the layout. **`layoutToken`** is a signed token you can persist so the exact layout can be reopened later — for example, to attach the plan to an order. #### Adding to your cart Your callback adds the lines using your store's own API: ```js onAddToCart(payload) { payload.lines.forEach((line) => { yourStore.addToCart({ sku: line.sku, quantity: line.qty, unit: line.unit, }); }); } ``` For WooCommerce that means a `cart/add-item` call per line; for Shopify, a cart mutation; for a custom store, your own cart service. The widget never calls your store directly — you do, with the SKUs and quantities it resolved. #### Price stays in your store The widget never sends a price. It can show list prices from your catalog in the estimate for context, but the final price, tax, promotions, and loyalty discounts are all applied by your checkout when the lines are added. That keeps a single pricing engine and avoids any drift between the widget and the cart. #### Inventory stays in your store The widget adds what the layout requires. Your store validates stock on those SKUs exactly as it would for any other add-to-cart. If a SKU is low or unavailable, your existing backorder and notification flow applies unchanged. #### Cart intent endpoint For headless or server-side integrations there is a cart-intent endpoint that returns the same resolved lines. Your server calls it with the layout and adds the result to the session cart: ```bash curl -X POST "https://embed.scalarcut.com/v1/tiling/cart-intent" \ -H "Authorization: Bearer $WIDGET_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "catalog": "YOUR_CATALOG_SLUG", "sku": "TILE-600-300", "layoutFingerprint": "…", "quantities": { "boxes": 5 } }' ``` Response: ```json { "lines": [ { "sku": "TILE-600-300", "qty": 5, "unit": "box" } ], "layoutFingerprint": "…", "layoutToken": "…" } ``` With consumables enabled for your store, the request may also carry `adhesiveKg`, `groutKg`, and `primerL`, and the response gains the corresponding lines. See the [API reference](/docs/api-reference) for the full endpoint contract. *Updated 2026-10-27.* ### [Catalog](https://scalarcut.com/en/docs/catalog) > Publish your products to the widget: upload a CSV, map the columns once, and let each product page lock the planner to the right dimensions. The widget is driven by a catalog of your products. You upload your tile and flooring range as a CSV, map its columns once, and from then on each product page locks the planner to the real dimensions of the SKU being viewed. #### What the catalog stores Each row is one SKU with the fields the planner needs: | Field | Meaning | | --- | --- | | SKU code | The identifier your store already uses. Cart lines return this exact value. | | Name | Product name, shown in the widget's material dropdown. | | Width / Height | Tile dimensions in millimetres. The planner locks the shopper to these. | | Pack qty | Tiles per box, so the order can be expressed as boxes plus loose tiles. | | Image URL | A public HTTPS URL to the product image, shown on the canvas. | | Material type | Ceramic, porcelain, LVT, wood, or other. | | Collection | Groups products into the widget's collection picker. | | Price | Optional list price for the on-screen estimate, display only. | #### CSV upload Export your catalog from your store or ERP as a CSV, upload it in your Scalarcut dashboard, and map the columns. Scalarcut remembers the mapping by the CSV's header fingerprint, so the next time you export and upload, the columns are already assigned. The essential columns are the SKU, the name, and the size. Size can be a single `W×H` column (for example `600×300`) or separate width and height columns: ```csv sku,title,size_mm,pack_qty,image CER-600-300,Porcelain Grey,600×300,8,https://cdn.example.com/cer-600-300.jpg LVT-1210-180,Herringbone Oak,1210×180,10,https://cdn.example.com/lvt-1210-180.jpg ``` Everything else — thickness, grout joint, material type, collection, price, barcode, ERP id — is optional and only enriches the widget. #### Images stay on your CDN Scalarcut references your image URLs directly and never copies the files. The widget loads each product image from your CDN at render time, so licensing, caching, and storage all stay with you. #### Consumables Adhesive, grout, and primer are not imported as catalog rows — the CSV maps tile SKUs. Instead, the widget calculates consumable quantities from the layout and shows them in the estimate and the Blueprint PDF. Whether those quantities also sync to the cart is a separate, opt-in setting for merchants who stock and sell them. See [Cart integration](/docs/cart-integration). #### Locked versus demo mode With a locked catalog, the widget shows only your products and enforces your SKUs' real dimensions. Without a lock, it can run as a free-form demo — handy if you want planning available before the catalog is set up. #### Prices are display-only If you include prices, the widget shows them in the estimate for context. The final price is still applied by your checkout when the cart lines are added. The widget never charges a shopper. #### Next steps - [CSV structure](/docs/catalog-csv) — how to form the CSV and which columns are required. - [Data mapping](/docs/catalog-mapping) — map columns once and keep the catalog current. *Updated 2026-10-27.* ### [CSV structure](https://scalarcut.com/en/docs/catalog-csv) > How to form the catalog CSV: required and optional columns, size formats, image URLs, and the supported file types. Your catalog is one spreadsheet of SKUs. You export it from your store or ERP, upload it once, map the columns once, and the widget locks each product page to the real dimensions of the SKU being viewed. #### Supported files - **CSV** and **TXT** — comma or semicolon delimited. The delimiter is detected automatically from the first line. - **XLSX** and **XLS** — standard spreadsheets. - Up to **20 MB** per upload. The first row is the header. Each following row is one SKU. #### How to form the CSV You do not need to rename your store's columns to match ours. Export whatever headers your system already produces — `article`, `sku`, `size`, `boxes per pack`, and so on are all fine — and map them to Scalarcut fields in the next step (see [Data mapping](/docs/catalog-mapping)). The essential requirement is simply that the data you need is present somewhere in the file: - a unique **SKU code** for every row, and - the tile **size** in millimetres. Everything else is optional and enriches the widget. #### Required columns | Field | Notes | | --- | --- | | **SKU code** | The identifier your store already uses. Cart lines return this exact value, so it must match what your checkout recognises. | | **Size** | One of the two formats below. | ##### Size Size can be supplied one of two ways: - **One combined column** — for example `600×300`, `600x300`, or `600*300`. Millimetres, centimetres, and metres are all accepted when the unit is written out (for example `60×30 cm`). - **Two separate columns** — a `width` column and a `height` column, each in millimetres. A single combined column is the most common, since most ERPs and stores already keep size as one field. #### Optional columns | Field | Notes | | --- | --- | | **Name** | Shown in the widget's material dropdown. Falls back to the SKU code when empty. | | **Thickness** | Millimetres. | | **Pack qty** | Tiles per box, so the order can be expressed as boxes. Defaults to `1` when absent. | | **Image URL** | Public HTTPS URL to the product image. See below. | | **Face list** | Optional. Every printed face of the SKU in one cell, separated by a pipe: `url1\|url2\|url3`. The first URL is the product thumbnail. See below. | | **Material type** | `ceramic`, `porcelain`, `lvt`, `wood`, or `other`. Unrecognised values map to `other`. | | **Collection** | Groups products into the widget's collection picker. | | **ERP / 1C id** | Your internal identifier, carried through for your own reporting. | | **Barcode** | Carried through for your own systems. | | **Price** | Optional list price for the on-screen estimate, display only. | #### Images stay on your servers Scalarcut does not host your product images. The CSV holds a public HTTPS URL to each image, and the widget loads it from your CDN or storefront at render time — the file is referenced, never copied. This keeps licensing, caching, and storage entirely with you. - The URL must be public HTTPS. An `http://` or non-public URL is omitted with a warning, so the row still imports and the tile just renders without a photo. - Update the image on your side and the widget picks up the change on the next load — no re-upload needed. ##### Several faces of one SKU A printed decor series ships several faces under a single article number. Put every face in the optional **face list** column, in order, separated by a pipe character: ```csv sku,name,size_mm,texture_urls CER-1200-600,Porcelain Calacatta,1200×600,https://cdn.example.com/calacatta-1.jpg|https://cdn.example.com/calacatta-2.jpg ``` The planner distributes the faces across the surface: each tile gets one face, offcuts keep their parent tile's face, and neighbouring tiles are not forced to repeat. A SKU with a single URL renders exactly as it always has — `texture_url` on its own is treated as a one-face list. #### Prices are display-only If you include prices, the widget shows them in the estimate for context. The final price is always applied by your checkout when the cart lines are added. The widget never charges a shopper. #### A worked example A minimal but complete file: ```csv sku,name,width_mm,height_mm,pack_qty,texture_url,material_type,collection CER-600-300,Porcelain Grey,600,300,8,https://cdn.example.com/cer-600-300.jpg,porcelain,Porcelain LVT-1210-180,Herringbone Oak,1210,180,10,https://cdn.example.com/lvt-1210-180.jpg,lvt,Wood ``` The same catalog using a single size column instead: ```csv sku,name,size_mm,pack_qty,texture_url CER-600-300,Porcelain Grey,600×300,8,https://cdn.example.com/cer-600-300.jpg LVT-1210-180,Herringbone Oak,1210×180,10,https://cdn.example.com/lvt-1210-180.jpg ``` For a complete worked file, download the [sample catalog CSV](/assets/samples/scalarcut-catalog-sample.csv) — a small, realistic tile and flooring range across a few collections, in exactly the shape the importer expects. #### What happens next Upload the file in your Scalarcut dashboard and map the columns once. From then on the same headers are recognised automatically on every re-upload. See [Data mapping](/docs/catalog-mapping) for the mapping step and the day-to-day process for adding, editing, and removing products. *Updated 2026-10-27.* ### [Data mapping](https://scalarcut.com/en/docs/catalog-mapping) > Map your CSV columns to Scalarcut fields once, then keep the catalog current — add, edit, and remove products without touching the embed. Your store calls a column `article`; another calls it `sku`. Scalarcut does not require either. You map each column in your file to a Scalarcut field once, and the mapping is remembered. #### How mapping works When you upload a file, Scalarcut reads the header row and fingerprints it. If you have imported this header layout before, the saved mapping is applied automatically — you only map a new column layout once. Each mapped column carries a transform that tells the importer how to read the value: | Transform | Used for | Behaviour | | --- | --- | --- | | `trim` | SKU, name, collection, ids | Whitespace trimmed. | | `integer` | Width, height, thickness, pack qty | Parsed as a whole number. | | `parse_size_pair` | Combined size | Accepts `600×300`, `600x300`, `600*300`, with `mm`, `cm`, or `m`. | | `url` | Image URL | Must be public HTTPS or it is dropped with a warning. | | `enum_map` | Material type | Matches values like `porcelain`, `gres`, or `керамогранит` to a known type. | #### The import flow 1. **Upload** the file and choose a mode (below). 2. **Map** the columns — or let a saved profile apply automatically. 3. **Validate** — every row is checked; errors and warnings are reported. 4. **Confirm** — you review the created / updated / rejected counts before anything is published. 5. **Commit** — the rows are written to the catalog and the revision is bumped. If any row fails, you can download an errors CSV listing the row number, SKU, and the reason, fix the source file, and re-upload. ##### Validation rules - A row needs a **SKU** and a **size**. Without either, it is rejected. - A tile size below **10 mm** is rejected. - A missing or non-HTTPS image URL is a **warning**, not an error — the tile still imports. #### Keeping the catalog up to date Your catalog changes constantly. You do not need to re-embed the widget or touch your snippet — the widget always serves the latest committed revision on each load. The workflow for everyday changes: ##### Add new products Add the new rows to your usual export and re-upload. The same headers are recognised automatically, so the new SKUs are added and the existing ones are left untouched. ##### Edit a product Update that product's row (a new size, a corrected pack quantity, a new image URL) and re-import. The existing SKU is updated in place; the other rows are unchanged. ##### Remove products Removal is an explicit choice, so nothing disappears by accident. Choose the mode that fits: | Mode | What it does | | --- | --- | | **Upsert** | Adds or updates the rows in the file and leaves everything else alone. Use for adding and editing. | | **Replace a collection** | Replaces one collection entirely — any SKU in that collection that is no longer in the file is removed. | | **Full catalog sync** | Makes the catalog match the file exactly — any tile SKU missing from the file is removed. | For a one-off product that is out of stock or discontinued, edit the file and re-import rather than leaving a stale SKU in the planner. #### Images and prices stay yours The mapping only records where things come from. Images stay on your servers (referenced by URL), and prices are display-only in the widget — the checkout remains the source of truth. #### Next steps - [CSV structure](/docs/catalog-csv) — the columns and file formats. - [Catalog](/docs/catalog) — what the catalog stores and how the widget uses it. *Updated 2026-10-27.* ### [API reference](https://scalarcut.com/en/docs/api-reference) > The HTTP endpoints behind the widget: estimate and cart intent, with authentication and response shapes. The widget and SDK cover the common path, but everything is also available as a plain HTTP API on the embed host (`https://embed.scalarcut.com`). Use it for headless or server-side integrations. #### Authentication API calls authenticate with a **widget token** issued to your account. Pass it as a Bearer token: ```bash Authorization: Bearer $WIDGET_TOKEN ``` The token carries your enterprise id, the widget key id, and the catalog it is scoped to. Tokens are issued when the widget loads, are valid for seven days, and are rotated on each load; your server obtains a fresh one for server-side calls. #### Estimate `POST /v1/tiling/estimate` Runs the layout engine and returns the full bill of materials for a wall or floor. The body is the same layout document the studio builds: ```bash curl -X POST "https://embed.scalarcut.com/v1/tiling/estimate" \ -H "Authorization: Bearer $WIDGET_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "catalog": "YOUR_CATALOG_SLUG", "tile": { "sku": "CER-600-300" }, "surfaces": [ { "width": 2.4, "height": 2.5, "openings": [] } ] }' ``` When a catalog is locked, the endpoint takes the tile's dimensions from the SKU, so a request can never drift from the catalog's real geometry. #### Cart intent `POST /v1/tiling/cart-intent` Resolves a layout into cart lines without a browser: ```bash curl -X POST "https://embed.scalarcut.com/v1/tiling/cart-intent" \ -H "Authorization: Bearer $WIDGET_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "catalog": "YOUR_CATALOG_SLUG", "sku": "CER-600-300", "layoutFingerprint": "…", "quantities": { "boxes": 5 } }' ``` Response: ```json { "lines": [ { "sku": "CER-600-300", "qty": 5, "unit": "box" } ], "layoutFingerprint": "…", "layoutToken": "…" } ``` With consumables enabled for the store, the request may also carry `adhesiveKg`, `groutKg`, and `primerL`, and the response gains the corresponding adhesive, grout, and primer lines. #### SDK `GET /v1/sdk.js` Serves the embed SDK your pages load. It is version-stable and safe to cache: ```html ``` #### Errors The API returns standard HTTP status codes with a JSON `message`: - `401` — missing or invalid token. - `403` — origin not allowed, or the action is disabled for the plan. - `404` — unknown catalog or SKU. - `422` — validation failed; the body carries `errors` keyed by field. *Updated 2026-10-27.* ### [Security & licensing](https://scalarcut.com/en/docs/security) > How the widget is scoped to your domains, how keys and tokens work, and the transport guarantees around the iframe. Scalarcut is built for stores that run real checkouts, so the widget is scoped tightly to your domains and your catalog. #### Widget keys are bound to your origins Your widget key only loads on the origins you register with your account. A key copied to another domain simply does not render — the widget cannot be framed on a site you do not own, and a leaked key is not a working embed anywhere else. When you add a store or a new domain, add it to your account's origin list. No code changes needed. #### Tokens are scoped and rotated The widget and API use signed tokens that carry your enterprise id, the widget key id, and the catalog they may touch. Tokens expire after seven days and are issued by the widget at load time, so your server never has to store long-lived secrets. - The embed token is scoped to a single enterprise and catalog. - Cart intent and estimate calls validate the token before touching any catalog data. - Usage is recorded per event, so every estimate and add-to-cart is attributable to a store. #### HTTPS everywhere The widget, the SDK, and the API are served over HTTPS, and catalog image URLs are accepted only as public HTTPS. In production the parent page must be HTTPS, matching the widget's secure frame. #### Frame protections The widget's response sets `frame-ancestors` to your registered origins. Browsers enforce this through the `Content-Security-Policy` header, so only your domains can host the iframe — no other site can frame the planner, even with a valid-looking URL. #### Message origin checks The SDK verifies the origin of every `postMessage` before acting, in both directions. A page outside your registered origins cannot send commands to the widget, and the widget will not deliver cart lines to an untrusted listener. #### Checkout authority stays with you Security also means the widget cannot do anything with money. It holds no payment credentials, no customer data, and no way to place an order. It resolves SKUs and quantities; your store — with your authentication, your stock, and your payment provider — is the only place an order is created. #### Rotation and revocation Widget keys can be rotated or revoked from your dashboard at any time. A revoked key stops serving immediately, and its tokens stop validating on the next request. *Updated 2026-10-27.* ### [Localization & branding](https://scalarcut.com/en/docs/localization) > Eight UI locales, per-locale catalog names, display currency, and brand theming so the widget looks like part of your store. The widget adapts to your storefront's language, currency, and brand, so the planning experience feels like part of your site rather than a third-party tool. #### UI locales The widget ships eight UI locales: English, Русский, Deutsch, Polski, Italiano, Español, Français, and Português. Set the language once: ```js ScalarcutTiling.mount('#sc-tiling', { widgetKey: 'YOUR_WIDGET_KEY', locale: 'de', }); ``` The locale drives every label, the blueprint PDF, and number formatting for that shopper. If you do not pin a locale, the widget falls back to the shopper's browser language. #### Per-locale catalog names Your catalog can carry a name for each locale. When you provide them, the widget shows the product name in the shopper's language; otherwise it uses the default name. This is set in the same CSV mapping as the rest of the catalog. #### Display currency Set a display currency for the estimate: ```js ScalarcutTiling.mount('#sc-tiling', { widgetKey: 'YOUR_WIDGET_KEY', currency: 'EUR', }); ``` Currency is a display preference for the on-screen estimate. The price charged at checkout is still yours — see [Cart integration](/docs/cart-integration). #### Brand theming Your account carries the widget's theme: - **Primary colour** — the widget's buttons and focus states use your brand colour, with hover and active shades derived automatically. - **Logo** — shown in the widget header and on the blueprint PDF. - **Legal name** — printed on blueprints as the issuing company. - **Powered-by** — a small, optional attribution line. Keep it to help shoppers recognise the planner, or hide it for a fully white-label look. Theming is configured once in your dashboard and applies to every embed automatically — no per-page code. #### What the widget never shows The widget has no competing calls to action: no "sign up for Scalarcut", no redirects, no third-party checkout. Every forward step the shopper sees — add to cart, or the link back to your store — is yours. *Updated 2026-10-27.* ### [FAQ](https://scalarcut.com/en/docs/faq) > The questions integrators and store owners ask before going live, answered. #### Does the shopper need a Scalarcut account? No. The widget runs entirely in the shopper's browser. There is no login, no redirect, and nothing to fill in beyond the layout itself. #### Where does the catalog live? Your catalog is stored with Scalarcut so the widget can lock SKUs to their real dimensions, but product images are referenced from your CDN and never copied. You can update the catalog any time by re-importing a CSV. #### Who owns the cart and checkout? You do. The widget resolves SKUs and quantities and passes them to your `onAddToCart` callback. Price, tax, discounts, stock, payment, and fulfilment all stay in your store. #### Does it work with my platform? Almost certainly. The widget is a self-contained iframe with no dependency on your store's backend. It works with WooCommerce, Shopify, Magento, BigCommerce, 1C-Bitrix, Shopware, JTL, and fully custom or headless stores — anywhere you can add a script tag and call an add-to-cart function. #### How long does setup take? The embed itself is a few lines. With a prepared CSV export, a store can be live the same day: upload the catalog, map the columns once, drop in the snippet, and publish. #### What materials does it handle? Tile and flooring coverings — ceramic and porcelain tile, LVT, laminate, engineered wood, large-format slabs, and granite — on walls and floors, with openings such as doors, windows, and hatches. #### Can I theme it? Yes. Primary colour, logo, legal name on blueprints, and a powered-by toggle are all account-level settings that apply to every embed. See [Localization & branding](/docs/localization). #### Does the widget include AI room rendering? No. AI room rendering is turned off by default in the embed to protect your rendering quota and keep your costs predictable. The Online Store widget focuses on interactive planning, quantities, cut lists, and the path to purchase. If you want machine-readable manufacturing data for your ERP or factory floor, that is a separate Enterprise product — see [Factory MBOM](/enterprise/factory-bom). #### Is the widget mobile-friendly? Yes. It is touch-first and switches to a full-viewport layout on phones, so a shopper can plan a bathroom on the same device they are buying from. #### How do I get a widget key? Widget keys are created when you sign up. Talk to us — we will set up your catalog and origins with you and hand over a snippet that is ready to paste. *Updated 2026-10-27.* ### [Factory MBOM Overview](https://scalarcut.com/en/docs/factory-bom-overview) > The planner's Factory MBOM export: the same cut list and BOM as your Blueprint PDF, downloaded as machine-readable JSON and CSV for ERP, MES, and cutting tables. **Factory MBOM** is a capability of the Scalarcut tiling planner, not a separate app. It is a distinct product from the [Online Store Widget](/docs/overview): the widget plans a shopper's room on a storefront and hands SKUs to the cart, while Factory MBOM turns a planned layout into a machine-readable manufacturing bill of materials. #### What it is Factory MBOM turns a room planned in Scalarcut into structured manufacturing data: the same millimetre cut list and bill of materials as the Blueprint PDF, in a machine-readable form your ERP, MES, or cutting table can read. The planner already does everything you need to plan a room: 2D/3D layout, catalog products, cut list, estimate, and blueprints. Factory MBOM adds one thing — a **Factory MBOM** button in the planner header that downloads the layout as structured data. #### How it works 1. **Plan.** A designer prepares a tile layout in Scalarcut — dimensions, tile, pattern, openings, cut list, and estimate. Sliver Guard re-anchors thin cuts and the Cut Recycling Engine reuses offcuts. 2. **Export.** The designer clicks **Factory MBOM** to download the JSON and CSV, or an integration pulls the same document over the authenticated HTTP API. 3. **Map.** An integration maps the exported fields to the receiving system (ERP, MES, or cutting table). 4. **Consume.** The receiving system uses the data in its own production workflow. Exporting structured data does not, by itself, mean Scalarcut drives a cutting table, creates production orders, or integrates automatically with a particular ERP — the mapping and downstream workflow are yours. #### JSON vs CSV | Capability | JSON | CSV | | --- | --- | --- | | Individual pieces and cut dimensions | Yes | Yes | | Full document structure and metadata | Yes | No | | Packing, recipes and totals | Yes | No | | Optional geometry data | If present in the export | No | The JSON document is versioned (`scalarcut.factory_bom.v1.1`). The CSV is a flat piece list — the same columns as the JSON pieces, without packing, ids, rates, totals, or the optional geometry. A piece **may** include an optional `geometry` object. This is not richer hidden geometry the Blueprint PDF omitted — it is the same leftover shape the PDF already shows, expressed as structured millimetre vertices for integrators that consume leftover polygons. It is not a CNC toolpath. See the [Schema Reference](/docs/factory-bom-schema). #### What the document contains - **Header** — schema version, scene/project identity, unit policy (`metric`, `mm`). - **Pieces** — one entry per cut group: width and height in millimetres, cut type, quantity, fragility flags, L-cut and recycling metadata. - **Recipes** — the Cut Recycling Engine plan, so each cut is traceable to the blank it came from. - **Consumables** — frozen adhesive, grout, and primer rates, computed from the actual layout geometry. - **Totals** — a rollup across all surfaces for audit against the blueprint. #### Factory MBOM vs. the Online Store Widget | | Online Store Widget | Factory MBOM | |---|---|---| | Audience | Shoppers on a product page | ERP / MES integrators, production | | Where it lives | `/v1/tiling` iframe + SDK on your storefront | The planner's header export button | | Output | SKUs + quantities into the store cart | `scalarcut.factory_bom.v1.1` JSON / CSV download | | Geometry | Screen layout | Integer mm cut geometry | | Consumables | Opt-in cart lines | Frozen rates, always emitted | | AI rendering | Disabled by default | Not applicable | The two products share the same layout math and cut engine, but their surfaces and integrations are deliberately separate. #### Who it is for - **Manufacturers and importers** who want their dealers' plans to drop straight into production. - **Factories and cutting services** that receive plans and need a deterministic cut list. - **System integrators** building the bridge between Scalarcut and an ERP or MES. #### Where to go from here - [Quickstart](/docs/factory-bom-quickstart) — export your first document. - [Schema Reference](/docs/factory-bom-schema) — every field, its meaning, and its units. - [API Reference](/docs/factory-bom-api) — the machine-to-machine pull path. - [ERP & MES Integration](/docs/factory-bom-integration) — mapping the fields into your systems. *Updated 2026-10-27.* ### [Factory MBOM Quickstart](https://scalarcut.com/en/docs/factory-bom-quickstart) > Plan as usual, then click the Factory MBOM button in the planner header to download the JSON and CSV. Plus the machine-to-machine HTTP path for ERP middleware. Factory MBOM is a feature of the Scalarcut tiling planner, not a separate app. You plan the room the same way you always do — 2D/3D, catalog, cut list, estimate — and an enabled planner adds a **Factory MBOM** button in the header that downloads the machine-readable document. #### Required - **A Scalarcut account with Factory MBOM enabled.** The export is unlocked on the Enterprise plan. If you do not have it, open the [Factory MBOM](/enterprise/factory-bom) page and request access. #### 1. Plan as usual Open the planner and lay out the room exactly as you would for any job: dimensions, tile size, pattern, openings, cut list, and estimate. Sliver Guard and the Cut Recycling Engine work the same way — Factory MBOM does not change the layout. #### 2. Export the Factory MBOM Click the **Factory MBOM** button in the planner header. The planner downloads two files: - `…-factory-bom.json` — the full `scalarcut.factory_bom.v1.1` document. - `…-factory-bom.csv` — the piece list (same columns as the JSON pieces). The JSON is generated by the same cut-list and BOM engine as the Blueprint PDF — it is the same millimetre schedule, in a machine-readable form. #### 3. Feed the files to your systems Hand the JSON to your ERP/MES middleware or the CSV to a cutting table. See [ERP & MES Integration](/docs/factory-bom-integration) for the field mapping. #### Machine-to-machine (ERP pull) If your middleware pulls the document itself rather than receiving the downloaded files, a keyed HTTP API is available. It returns the same `scalarcut.factory_bom.v1.1` document: ```bash curl -sS -H "X-Enterprise-Key: sc_bom_…" \ "/v1/tiling/factory-bom?scene_id=12345" ``` This path returns the Factory MBOM for your own project. See the [API Reference](/docs/factory-bom-api) for auth, headers, and responses. The planner export button and the API produce the same schema — pick whichever fits your workflow. #### Next steps - [Schema Reference](/docs/factory-bom-schema) — understand every field. - [API Reference](/docs/factory-bom-api) — the machine-to-machine path. - [ERP & MES Integration](/docs/factory-bom-integration) — map the document into your systems. *Updated 2026-10-27.* ### [Schema Reference](https://scalarcut.com/en/docs/factory-bom-schema) > The scalarcut.factory_bom.v1.1 document, field by field: header, pieces, cut types, recipes, pack rounding, consumables, totals, and stable IDs. The Factory MBOM document is versioned by a top-level `schema` string. The current version is `scalarcut.factory_bom.v1.1`. Treat the schema field as the contract: if a constant or field meaning changes, the version bumps. This schema describes actual project MBOMs — the document downloaded by the planner's **Factory MBOM** button and returned by the API for the enterprise's own projects. The public garage sample used in documentation and the **Try MBOM API** panel conforms to the same `scalarcut.factory_bom.v1.1` version. #### Dual units, one truth The planner's internal lattice is in metres, but the exported document is millimetres: - Cut sizes and export fields are **integer millimetres** (`round(m × 1000)`). - The document states `unit_system: "metric"` and `lattice_unit: "mm"`. - Canonical piece sizes are always `w_mm` / `h_mm`. - Inch/foot display in the planner converts *from* the millimetre lattice and is never written back into the cut keys. This export emits **no inch columns**. #### Document header | Field | Meaning | |---|---| | `schema` | `scalarcut.factory_bom.v1.1` | | `scene_id` | Planner scene id, or `null` if unsaved | | `project_id` | Same as `scene_id` this round (one tiling scene = one ERP key) | | `title` | Scene display label | | `unit_system` / `lattice_unit` / `unit_policy` | `metric` / `mm` / policy string | | `rates` | Frozen consumable constants (below) | | `totals` | Room rollup across surfaces | | `surfaces` / `pieces` / `recipes` | Per-surface BOM, cut list, and CRE recipes | #### Pieces A piece describes a cut group — a size repeated `qty` times. Key fields: | Field | Meaning | |---|---| | `surface_id` | `wall-a` … `wall-d`, or `floor` | | `letter` | Legend letter matching the PDF cut list (A, B, …) | | `group_id` | Stable group id derived from location + size | | `sku` | Catalog SKU, or empty on the first-party planner | | `w_mm` / `h_mm` | Canonical millimetre size | | `cut_type` | The cut class for this piece | | `qty` | Number of identical pieces | | `fragile` | True when the cut is below the 50 mm fragility floor | | `cre_recycled` | True when the piece is recycled by the Cut Recycling Engine | | `cre_parent` | Parent blank size key (`tileW×tileH` mm) when recycled, else empty | | `is_l_cut` | True for L-shaped cuts | ##### Cut types `cut_type` classifies how the piece is produced. An integrator can key cutting-table behaviour off it. Fragile pieces are flagged separately so they can be routed for special handling rather than dropped onto a machine that will shatter them. ##### L-cuts L-shaped pieces are flagged with `is_l_cut` and carry their arm dimensions in the piece geometry. CRE nesting still treats each piece as its `w_mm × h_mm` bounding rectangle. #### Optional leftover polygon (`geometry`) A piece **may** include an additive `geometry` object: ```json "geometry": { "frame": "tile_local_mm", "vertices_mm": [[0, 0], [180, 0], [180, 600], [0, 600]] } ``` - The `frame` is wall-aligned millimetres translated so the nominal unclipped tile AABB minimum is `(0, 0)`. - Present when the leftover is a single convex/simple ring (a 45° diagonal or herringbone fragment, or an axis-aligned rectangular leftover). - Omitted for L-cuts, multi-fragment leftovers, and qty groups whose members do not share the same ring. - It is **not** a CNC toolpath and does not introduce arbitrary blade angles — CRE still nests `w_mm × h_mm` rectangles. - Unknown fields are additive: an ERP that ignores `geometry` keeps `w_mm` / `h_mm` / `cut_type` / `is_l_cut`. #### Box and pack rounding When the total piece count (`totalPieces`) is known: 1. `orderPieces = ceil(totalPieces × (1 + wastage) − 1e-12)` 2. With a pack quantity (`pack_qty`, tiles per box) of 1 or more: - `fullBoxes = floor(orderPieces / pack_qty)` - `looseTiles = orderPieces % pack_qty` - `boxes_to_order = fullBoxes` — leftover tiles are **not** rounded into an extra box. - `pack_mode = "full_boxes_plus_loose"` 3. With no pack quantity: `pack_mode = "pack_unset"`, `boxes_to_order = null`; the tile line is still `orderPieces`. When `totalPieces` is unknown: `pack_mode = "area_ceil_boxes"`, `boxes_to_order = ceil(grossTileAreaSqm / sqmPerBox − 1e-12)`. Surface packing fields: `pack_qty`, `pack_mode`, `order_pieces`, `full_boxes`, `loose_tiles`, `boxes_to_order`, and the deprecated `boxes` alias (equal to `boxes_to_order`). #### Consumables (frozen rates) Consumables are emitted as a `rates` formula version and as kg/L per surface and in `totals`. These constants are frozen with the schema; if they change between builds, the contract has changed and the schema bumps. | Constant | Value | Use | |---|---|---| | `adhesive_kg_per_sqm` | `4.5` | `adhesiveKg = grossTileAreaSqm × 4.5` | | `adhesive_bag_kg` | `25` | `adhesiveBags = ceil(adhesiveKg / 25 − 1e-12)` | | `primer_l_per_sqm` | `0.2` | `primerL = grossTileAreaSqm × 0.2` | | `grout_density_kg_m3` | `1200` | CAD grout mass | | `grout_compaction_factor` | `1.05` | CAD grout mass | Grout mass is computed from pattern geometry with density × compaction. Display rounding (`0.1` steps) is for the human sheets only; the factory JSON stores the engine value before display rounding. #### Totals rollup `totals` sums the surface BOM fields, plus: - `cut_qty` — sum of piece `qty` (must match the blueprint cut-list header when audited). - `boxes_to_order` (and deprecated `boxes`) — sum of surface carton counts where set. #### Stable IDs - **Surfaces:** `wall-a`, `wall-b`, `wall-c`, `wall-d`, `floor`. - **Cut groups:** `group_id` from location key + size (`w×h` mm or L-arm key). - **Legend letters:** A, B, … from group array order, identical to the PDF cut list. The same lattice always yields the same `group_id` and letters on re-export. #### SKU - An empty `sku` is allowed on the first-party planner (demo, no catalog). - A catalog / widget embed **must** populate `sku` for a live factory feed. - An empty SKU does not block the export. #### CSV piece list The CSV is the piece list only (same columns as v1). Packing, ids, rates, totals, and the optional `geometry` live in JSON. Columns: `surface_id`, `letter`, `group_id`, `sku`, `w_mm`, `h_mm`, `cut_type`, `qty`, `fragile`, `cre_recycled`, `cre_parent`, `is_l_cut`. *Updated 2026-10-27.* ### [API Reference](https://scalarcut.com/en/docs/factory-bom-api) > The machine-to-machine Factory MBOM endpoint: authentication, headers, query parameters, and every response code. The planner export button produces the same schema. The primary way to get a Factory MBOM document is the **Factory MBOM** export button in the planner header, which downloads the JSON and CSV directly. This page documents the machine-to-machine path for ERP and MES middleware that pull the document itself. Both paths return the same `scalarcut.factory_bom.v1.1` document for the same project. #### Endpoint ``` GET /v1/tiling/factory-bom ``` The endpoint is a server-to-server `GET` on the Scalarcut embed host. An authenticated enterprise integration requests the Factory MBOM for one of its own projects by `scene_id` or `project_id`. #### Authentication Send your Factory MBOM Enterprise Key as a header: | Header | Value | |---|---| | `X-Enterprise-Key` | Your Factory MBOM Enterprise Key (`sc_bom_…`). Required. | The Factory MBOM key purpose is distinct from the storefront Widget purpose. A key without the Factory MBOM purpose is rejected with `401`. #### Origin / Referer allowlist - An **empty** `Origin`/`Referer` is allowed, so ERP middleware that sends neither works without changes. - If `Origin`/`Referer` is present, it must match your enterprise allowlist (playground keys accept Scalarcut marketing origins only). A mismatch returns `403`. #### Query parameters | Parameter | Type | Meaning | |---|---|---| | `scene_id` | integer | Optional. Selects the project by scene id. | | `project_id` | integer | Optional. Selects the project by project id. | The request is scoped to the enterprise identified by the key. Until live scene retrieval ships, the endpoint returns the sample document for any id; the ids you send are recorded in the usage event for metering and will select the real project once retrieval is live. #### The sample document For integrator trials, documentation examples, and the **Try MBOM API** panel, the endpoint also serves a public sample document — the garage fixture. It is sample data and conforms to the same `scalarcut.factory_bom.v1.1` schema; it is not evidence that live project retrieval is unavailable. #### Conditional requests The response carries an `ETag` (SHA-256 of the body). Send `If-None-Match` to skip re-downloading an unchanged document: ```bash curl -sS -H "X-Enterprise-Key: sc_bom_…" \ -H 'If-None-Match: "