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

garmin-empirbus-ts

v0.1.32

Published

Garmin EmpirBus TypeScript (Clean Architecture)

Readme

Garmin EmpirBus TypeScript (Clean Architecture)

Quickstart:

  1. cd garmin-empirbus-ts
  2. npm i
  3. npm run build
  4. EMPIRBUS_WS=ws://192.168.1.1:8888/ws npm run start

CLI prints channels and streams updates. Toggle and dim methods are available via repository for later command extensions.

wslog (Viewer)

  • Live von WebSocket lesen oder bestehende Logdatei wie tail -f verfolgen.
  • Filterbar nach Richtung (in/out) und Text.
  • Optionales Mitschreiben in Datei.

Beispiele:

# Live ansehen
node dist/bin/wslog.js --ws ws://192.168.1.1:8888/ws

# Live ansehen und gleichzeitig mitschreiben
node dist/bin/wslog.js --ws ws://192.168.1.1:8888/ws --log traffic.ndjson

# Nur Datei ansehen (tail -f)
node dist/bin/wslog.js --file traffic.ndjson

Tasten: F=Filter, I=In, O=Out, A=All, C=Clear, S=Save, Q=Quit

wstap (reiner Mitschreiber ohne UI)

node dist/bin/wstap.js --log traffic.ndjson --ws ws://192.168.1.1:8888/ws

$env:EMPIRBUS_LOG="1"

Raw communication observation

EmpirBusClient and EmpirBusChannelRepository expose onCommunication(listener) for passive observation of all valid raw RX/TX EmpirBus telegrams, including heartbeats and system/subscription traffic. Each event contains direction, timestamp, and a copied message. Consumers are responsible for filtering; observation never changes protocol processing.

Target-state switch behavior

Channels learn their MFD control type from incoming MFD status messages (messagecmd 0 = pulse, 1 = momentary, 3 = dimmer, 5 = generic status). switch() uses that runtime information automatically:

  • pulse channels receive an explicit ON/OFF command,
  • momentary channels compare the requested target with onOffStatus and send a 150 ms press/release only when the target differs,
  • unknown or unsupported types fail without sending.

The repository never optimistically changes the cached state after sending a momentary target-state command.

Dimmer scale

Dimmer values use the protocol-level range 0..1000, where 1000 represents 100%. Incoming MFD dimmer status messages are exposed with the raw value in Channel.rawValue and the percentage in Channel.decodedValue.