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/brother-ql-core

v0.6.1

Published

Protocol encoding, device registry, and media registry for Brother QL label printers

Downloads

1,036

Readme

@thermal-label/brother-ql-core

Protocol encoder, device registry, and media registry for Brother QL label printers (DK paper labels) and PT-P / PT-E label printers (TZe laminated tape + HSe heat-shrink). Both families share the raster command set — the encoder branches on engine.protocol (ql-raster vs pt-raster).

Consumers rarely import this package directly. Use one of the runtime packages instead:

Install

pnpm add @thermal-label/brother-ql-core

Quick start

import { encodeJob, findDevice, findMedia, renderText } from '@thermal-label/brother-ql-core';

const device = findDevice(0x04f9, 0x209d);
if (!device) throw new Error('Unknown Brother device');

const media = findMedia('dk-22205')!;
const bitmap = renderText('Hello QL', { mediaWidth: media.printableWidthDots });
const bytes = encodeJob([{ bitmap }], { engine: device.engines[0], media });

bytes is a contiguous Uint8Array the transport ships unchanged.

What's inside

  • encodeJob(pages, options) — encode a complete print job to a byte stream.
  • parseStatus(bytes) + STATUS_REQUEST — status decoder + request frame.
  • DEVICES / findDevice / getUsbIds / isMassStorageMode.
  • MEDIA / findMedia — DK label + TZe / HSe tape registry.
  • Bitmap renderers re-exported from @mbtech-nl/bitmap.

Requirements

  • Node.js >=20.9.0 (Node 24 LTS recommended).
  • Runs in browser and Node.js — no Node.js built-ins.

Documentation

https://thermal-label.github.io/brother-ql/core

License

MIT

Supported hardware

24 devices — 3 verified · 0 partial · 15 expected · 0 unsupported · 6 unverified

| Model | Key | USB PID | Transports | Status | | ---------------------------------------------------------------------------- | ------------ | ------- | ---------------- | ------------- | | PT-E550W | PT_E550W | 0x2060 | USB, TCP | ⏳ unverified | | PT-P750W | PT_P750W | 0x2062 | USB, TCP | ⏳ unverified | | PT-P900 | PT_P900 | 0x2083 | USB | ⏳ unverified | | PT-P900W | PT_P900W | 0x2085 | USB, TCP | ⏳ unverified | | PT-P910BT | PT_P910BT | 0x20c7 | USB, BT SPP | ⏳ unverified | | PT-P950NW | PT_P950NW | 0x2086 | USB, TCP | ⏳ unverified | | QL-500 | QL_500 | 0x2013 | USB | 🔄 expected | | QL-550 | QL_550 | 0x2016 | USB | 🔄 expected | | QL-560 | QL_560 | 0x2018 | USB | 🔄 expected | | QL-570 | QL_570 | 0x2019 | USB | 🔄 expected | | QL-580N | QL_580N | 0x201b | USB, TCP | 🔄 expected | | QL-600 | QL_600 | 0x2100 | USB | 🔄 expected | | QL-650TD | QL_650TD | 0x201c | USB | 🔄 expected | | QL-700 | QL_700 | 0x2042 | USB | ✅ verified | | QL-710W | QL_710W | 0x2044 | USB, TCP | 🔄 expected | | QL-720NW | QL_720NW | 0x2045 | USB, TCP | 🔄 expected | | QL-800 | QL_800 | 0x209b | USB | ✅ verified | | QL-810W | QL_810W | 0x209c | USB, TCP | 🔄 expected | | QL-820NWBc | QL_820NWBc | 0x209d | USB, TCP, BT SPP | ✅ verified | | QL-1050 | QL_1050 | 0x2027 | USB | 🔄 expected | | QL-1060N | QL_1060N | 0x2028 | USB, TCP | 🔄 expected | | QL-1100 | QL_1100 | 0x20a7 | USB | 🔄 expected | | QL-1110NWB | QL_1110NWB | 0x20a8 | USB, TCP | 🔄 expected | | QL-1115NWB | QL_1115NWB | 0x20ab | USB, TCP | 🔄 expected |

Click any model to open its detail page on the docs site, where engines, supported media, and verification reports live. The same data backs the interactive cross-driver table.