Skip to content

web/src

Classes

ClassDescription
LetraTagPrinterPrinterAdapter for the LT-200B over Web Bluetooth.

Interfaces

InterfaceDescription
LetraTagMediaDYMO LetraTag media descriptor.
LetraTagPrintOptionsPublic LetraTag print options.
PairResultResult of a successful pairing — the printer adapter plus the BLE plumbing the debug harness needs (observed full UUIDs, link MTU, raw BluetoothDevice for diagnostics export).
RequestPrinterOptions-

Type Aliases

Type AliasDescription
LetraTagDeviceDYMO LetraTag device entry. Alias for the contracts DeviceEntry narrowed to family: 'letratag'.
LetraTagMaterialLT cassette substrate family. Picker / preview UX hint — the rasterizer does not branch on this.

Variables

VariableDescription
DEFAULT_MEDIA-
DEVICESRegistry of supported LetraTag devices, keyed by the device's stable key field (LT_200B). Values are the full contracts DeviceEntry.
LT_PAPER_WHITECanonical default — the white-paper cassette ships in the box with every LT-200B. Single named const, not a per-cassette export.
MEDIAIndexed registry of every LT cassette SKU the driver knows about, keyed by entry id (e.g. MEDIA['lt-paper-white']).
MEDIA_LIST-
PROTOCOLSWire protocols this core's encoder produces correct bytes for. Pair with DEVICE_REGISTRY_DATA and resolveSupportedDevices from @thermal-label/contracts to filter a device list to what this runtime can drive.

Functions

FunctionDescription
devicesForTransportFilter the registry to entries declaring transport. Used to populate DeviceIdentificationRequiredError.candidates from the harness shell.
encodeLabelEncode a complete LetraTag print job into the ordered list of BLE writes. The transport calls write() with each entry in turn.
findMediaBySkuFind a media entry by vendor SKU. LT cassettes ship under many regional part numbers (US 91XXX vs EU S07XXXXX); this helper does the lookup against MediaDescriptor.skus.
parseStatusParse a 3-byte status notification frame from the printer.
requestPrinterOpen the browser BLE picker, pair with an LT-200B, and resolve the GATT service / characteristics.
requestPrintersUnified browser-picker factory.