npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@thermal-label/labelmanager-core

v0.3.0

Published

Core protocol and bitmap helpers for DYMO LabelManager printers

Readme

@thermal-label/labelmanager-core

Core protocol and bitmap helpers for DYMO LabelManager printers.

Use this package when you want low-level rendering and encoding primitives to build custom Node.js or browser printing flows.

It is the shared foundation used by the higher-level packages:

  • @thermal-label/labelmanager-node
  • @thermal-label/labelmanager-web
  • @thermal-label/labelmanager-cli

Install

pnpm add @thermal-label/labelmanager-core
npm install @thermal-label/labelmanager-core

Quick Start

import { encodeLabel, renderText } from '@thermal-label/labelmanager-core';

const bitmap = renderText('Hello DYMO');
const reports = encodeLabel(bitmap, { tapeWidth: 12, density: 'normal' });

reports is an array of Uint8Array chunks ready to send to a HID transport implementation.

API Highlights

  • renderText(text, options) renders text into a monochrome label bitmap.
  • renderImage(rawImageData, options) converts raw pixels into a printable label bitmap.
  • encodeLabel(bitmap, printOptions) encodes a bitmap into protocol reports.
  • buildResetSequence() and buildFormFeed() expose lower-level protocol commands.
  • DEVICES and findDevice(vid, pid) provide supported device metadata.

Common Examples

Render and encode text with print options

import { encodeLabel, renderText } from '@thermal-label/labelmanager-core';

const bitmap = renderText('Shelf A-17', { invert: false });
const reports = encodeLabel(bitmap, {
  tapeWidth: 12,
  density: 'high',
  copies: 2,
});

Convert raw RGBA image pixels into printer reports

import { encodeLabel, renderImage } from '@thermal-label/labelmanager-core';

const raw = {
  width: 128,
  height: 32,
  data: new Uint8Array(128 * 32 * 4), // RGBA pixels
};

const bitmap = renderImage(raw, { dither: true, threshold: 128 });
const reports = encodeLabel(bitmap, { tapeWidth: 12 });

Check whether a USB HID device is supported

import { findDevice } from '@thermal-label/labelmanager-core';

const descriptor = findDevice(0x0922, 0x1002);
if (!descriptor) {
  throw new Error('Unsupported DYMO LabelManager device');
}

Supported Devices

Use DEVICES/findDevice to detect known models. The package tracks common DYMO LabelManager-family USB product IDs and tape-width capabilities.

For the latest compatibility list, see the project site: https://thermal-label.github.io/labelmanager/

Integration Notes

  • This package does not open USB/HID devices by itself.
  • Use Node WebUSB/HID wrappers in @thermal-label/labelmanager-node or browser WebHID support in @thermal-label/labelmanager-web for transport.
  • Keep this package if you need custom transport layers while reusing bitmap/protocol logic.

Environment

  • ESM package.
  • Designed as a shared protocol/core layer for higher-level packages.

Links

  • Homepage: https://thermal-label.github.io/labelmanager/
  • Repository: https://github.com/thermal-label/labelmanager
  • Issues: https://github.com/thermal-label/labelmanager/issues

License

MIT