Headless
Pure TypeScript document model + render pipeline. Runs in Node.js, the browser, and CI without a DOM or UI framework.
Runs identically in Node.js 24 and all modern browsers — no DOM, no Vue/React, no UI dependencies.
pnpm add @burnmark-io/designer-coreOptionally install a printer driver:
pnpm add @thermal-label/brother-ql-nodeimport { LabelDesigner, exportPng } from '@burnmark-io/designer-core';
const designer = new LabelDesigner({
canvas: { widthDots: 696, heightDots: 0, dpi: 300 },
});
designer.add({
type: 'text',
x: 20,
y: 20,
width: 656,
height: 60,
rotation: 0,
opacity: 1,
locked: false,
visible: true,
color: '#000000',
content: 'Hello, {{name}}!',
fontFamily: 'Burnmark Sans',
fontSize: 40,
fontWeight: 'bold',
fontStyle: 'normal',
textAlign: 'left',
verticalAlign: 'top',
letterSpacing: 0,
lineHeight: 1.2,
invert: false,
wrap: true,
autoHeight: false,
});
const blob = await exportPng(designer.document, {
variables: { name: 'Piet' },
});Continue to Getting started for Node.js, CLI, and browser paths, or jump straight to the API reference.