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/d1-core

v0.6.1

Published

Shared D1 tape-protocol encoder, status parser, and tape-type table for the LabelManager and LabelWriter Duo (tape side) drivers.

Readme

@thermal-label/d1-core

npm version CI codecov License: MIT

Shared D1 tape protocol primitives — wire-format encoder, status-byte parser, and tape-type / colour-palette tables — for the DYMO LabelManager and DYMO LabelWriter Duo (tape side) drivers.

The D1 vocabulary is ESC A..E plus SYN (per the LW 400 Series Tech Ref and on-the-wire analysis). Both the standalone LabelManager chassis and the LabelWriter Duo's tape engine speak the same protocol with the same 1-byte status reply; this package centralises the encoder so both drivers stay byte-for-byte aligned. The 8-byte status reply that some DYMO firmware references belongs to the Duo's label-side lw-450 engine on a separate endpoint and is not D1.

Install

pnpm add @thermal-label/d1-core

Most users won't depend on this package directly — install the runtime-flavoured LabelManager or LabelWriter driver instead, which re-exports the relevant surface.

Quick start

import {
  buildPrinterStream,
  parseStatus,
  STATUS_REQUEST,
  tapeTypeFor,
} from '@thermal-label/d1-core';

// engine + media come from the driver's DEVICES + MEDIA tables.
const stream = buildPrinterStream(bitmap, engine, options, media);
// Ship `stream` over the transport. Then poll status:
const reply = await transport.exchange(STATUS_REQUEST);
const status = parseStatus(reply);

What's inside

  • buildPrinterStream(bitmap, engine, options, media) — encode a print job to a contiguous USB Printer-class byte stream.
  • parseStatus(bytes) + STATUS_REQUEST — single-byte D1 status decoder. Same shape on every D1 device.
  • tapeTypeFor(media) + TAPE_TYPE_DEFAULT / TAPE_TYPE_MAX — map a user-selected media's text / background colours to the ESC C n selector (0..12) per LW 400 Series Tech Ref p.24. Host-declared: D1 firmware detects cassette presence but not type.

Consumers

Documentation

https://thermal-label.github.io/d1-core/

License

MIT