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

@grantler-instruments/mqtt-midi-bridge

v0.1.2

Published

Bridge MQTT MIDI topics to system MIDI ports (hardware or virtual)

Readme

@grantler-instruments/mqtt-midi-bridge

Node daemon that bridges system MIDI (hardware or virtual ports) to MQTT MIDI topics using @grantler-instruments/mqtt-midi.

  • Subscribes to {prefix}/in/... (commands from web UIs) → MIDI out
  • Publishes {prefix}/out/... (events from your DAW/hardware) ← MIDI in

Requires Node 18+ and a working native build of @julusian/midi (RtMidi).

Install

Recommended — run with npx (no global install):

npx @grantler-instruments/mqtt-midi-bridge --help

Or install globally:

npm install -g @grantler-instruments/mqtt-midi-bridge
mqtt-midi-bridge --help

All examples below use mqtt-midi-bridge; with npx, prefix the command:

npx @grantler-instruments/mqtt-midi-bridge --url mqtt://localhost:1883 --prefix remote

Usage

Config file

Copy mqtt-midi-bridge.config.example.json and edit:

{
  "url": "mqtt://localhost:1883",
  "prefix": "remote"
}

On macOS and Linux, if you omit midiIn, midiOut, and virtual, the bridge creates a virtual port named mqtt-midi-bridge (same idea as Max, Protokol, etc.). Point your DAW at that port. Override with "virtual": "MyName" or --virtual.

Run:

npx @grantler-instruments/mqtt-midi-bridge --config ./mqtt-midi-bridge.config.json

CLI flags override the file. Optional mqttOptions is passed through to MQTT.js (username, password, clientId, etc.).

Windows: virtual ports are not auto-created. Use loopMIDI (or similar), then set midiIn / midiOut to those port names, or use --list-ports.

CLI only

List ports:

npx @grantler-instruments/mqtt-midi-bridge --list-ports

Minimal (macOS / Linux — auto virtual port):

npx @grantler-instruments/mqtt-midi-bridge \
  --url mqtt://localhost:1883 \
  --prefix remote

Your DAW sees mqtt-midi-bridge for MIDI in and out. Use the same prefix in your web app (MqttMidi({ prefix: "remote", ... })).

Custom virtual name or hardware / loopMIDI ports:

npx @grantler-instruments/mqtt-midi-bridge \
  --url mqtt://localhost:1883 --prefix remote --virtual my-midi-port

npx @grantler-instruments/mqtt-midi-bridge \
  --url mqtt://localhost:1883 --prefix remote \
  --midi-in "IAC Driver Bus 1" --midi-out "IAC Driver Bus 1"

Programmatic API

import { startBridge } from "@grantler-instruments/mqtt-midi-bridge";

const bridge = await startBridge({
  url: "mqtt://localhost:1883",
  prefix: "remote",
  midiIn: { mode: "name", name: "IAC Driver Bus 1" },
  midiOut: { mode: "name", name: "IAC Driver Bus 1" },
});

await bridge.stop();

License

MIT — see LICENSE.