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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@mmote/niimblue-node

v0.0.10

Published

Headless clients for niimbluelib. Command line interface, simple REST server are also included.

Downloads

98

Readme

niimblue-node NPM

niimbluelib BLE and serial client implementations for non-browser use cases.

Command line interface, simple REST server are also included.

Tested with:

Windows:

  • Windows 10
  • Bluetooth adapter (TP-LINK UB500)
  • USB serial connection
  • Printers: B1, D110, B21_C2B, B21_PRO

Mac:

  • macOS 15.5
  • Integrated Bluetooth adapter
  • Printer: D110

Protocol tested with these models (niimbluelib repo).

Usage example:

Install

Global (for cli usage):

npm i -g @mmote/niimblue-node

node-gyp is required to install noble dependency. It requires working compiler installed on your system.

Windows requirements:

Mac requirements:

  • Xcode
  • Permissions: Open "System Settings" → "Privacy & Security" → "Bluetooth" and then add your terminal to allowed applications.

See node-gyp and noble installation.

Command-line usage

While development:

npm run cli --- <options>

If installed as package globally:

niimblue-cli <options>

Available options:

niimblue-cli help print
niimblue-cli help info
niimblue-cli help scan
niimblue-cli help server
niimblue-cli help flash

Examples

B1 BLE:

niimblue-cli print -d -t ble -a 27:03:07:17:6e:82 -p B1 -o top label_15x30.png

D110 BLE:

niimblue-cli print -d -t ble -a 26:03:03:c3:f9:11 -p D110 -o left label_15x30.png

D110 BLE via name:

Connecting via the Bluetooth device name instead of address is required on macOS. Find the device name with niimblue-cli scan -t ble.

niimblue-cli print -d -t ble -a 'D110-XXXXXXXXXX' -p D110 -o left -w 192 -h 96 label_15x30.png

B1 serial, long parameter names (will resize image to fit 50x30 label, keeping aspect ratio):

niimblue-cli print --debug --transport serial --address COM8 --print-task B1 --print-direction top --label-width 384 --label-height 240 label_15x30.png

B21_PRO BLE, long parameter names (will resize image to fit 50x30 300dpi label, don't keep aspect ratio):

niimblue-cli print --debug --transport ble --address c3:16:13:04:06:18 --print-task D110M_V4 --print-direction top --label-width 584 --label-height 354 --image-fit fill label_15x30.png

B1 firmware upgrade via serial:

niimblue-cli flash -t serial -a COM8 -n 5.14 -f path/to/B1_5.14.bin

Server mode

You can start a simple server with:

niimblue-cli server

Enable debug logging, set host and port, enable CORS:

niimblue-cli server -d -h 0.0.0.0 -p 5000 --cors

See sharp docs for image resize options.

Server API docs