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

picogw-plugin-mqtt

v0.0.2

Published

MQTT plugin for PicoGW

Readme

This package is no longer necessary, because MQTT support is unified into PicoGW core system.

MQTT plugin for PicoGW

This is a MQTT plugin package of PicoGW, developed by Shigeru Owada@Sony CSL.

PicoGW MQTT plugin allows calls of PicoGW API through MQTT broker. However, because of its early development stage, it currently does not support authenticated access. Please understand that this plugin can increase vulnerablility of your network. We do not take any responsibility.

Installation

npm i -g picogw   # Install Picogw
npm i -g picogw-plugin-mqtt   #Install MQTT plugin

Running

picogw

Uninstallation

npm un -g picogw-plugin-mqtt
npm un -g picogw

How to use

Boot PicoGW with MQTT plugin and open the frontend http://localhost:8080/. The mqtt object shows up under /v1/. Right click on it and then left click the Settings button to open Settings dialog.

MQTT plugin settings

By default, the first combobox is 'false', which means the plugin is not connected to MQTT broker yet. The MQTT broker address is defaulted to mqtt://test.mosquitto.org, and MQTT Quality of Service is 1. Please change the broker address (which can start with mqtts://) and QoS as desired, change the first item to true and press Apply button at the right-bottom. The plugin should connect to the broker.

The plugin subscribes to the topic whose name is the MAC address of the running machine plus '-Req' (eg. '11:22:33:44:55:66-Req'. The MAC address PicoGW knows (including itself) is listed under /v1/admin/net. Please check the MAC address which corresponds to the IP address of the machine.

The MQTT API client sends request to the topic [MAC ADDRESS]-Req, and receives the result at the topic [MAC ADDRESS]. Like websocket API, MQTT plugin provides both procedure call (that immediately returns the payloaded reply) and subscription (that returns the reply when published.) Concrete client example is in test-tool.js.

Testing feature

This plugin has two unnecessary APIs for testing purpose. One is a dummy procedure call /v1/mqtt/testProcedure The other is a dummy topic that publishes every two seconds /v1/mqtt/testTopic. These two APIs are used in client example test-tool.js.