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

midi-relay

v1.0.0

Published

Listens for HTTP request with JSON payload and relays MIDI/MSC commands on local ports.

Readme

About MIDI Relay

MIDI Relay was written by Joseph Adams and is distributed under the MIT License.

It is not sold, authorized, or associated with any other company or product.

To contact the author or for more information, please visit www.techministry.blog.

INSTALLING THIS SOFTWARE: npm install midi-relay To run, node main.js within the midi-relay folder.

TO USE THIS SOFTWARE:

  1. This program runs an HTTP server listening on port 4000.

  2. Upon startup, the program will enumerate through the available MIDI ports.

  3. Making a GET request to /midi_inputs will return a JSON list of MIDI Input ports available on the server.

  4. Making a GET request to /midi_outputs will return a JSON list of MIDI Output ports available on the server.

  5. Making a GET request to /refresh will refresh the list of available MIDI ports and update the internal variables with these ports. A JSON response of {result: 'ports-refreshed-successfully'} indicates it was successful.

  6. Making a POST request to /sendmidi will send a MIDI command to the port identified in the JSON object included in the POST body.
    If sending a MIDI Note On or Note Off, the JSON object should be in this format:

    {  
    midiport: 'MIDI Port Name',  
    midicommand: 'noteon',  
    note: 21,  
    channel: 0,  
    velocity: 1  
    }

    A JSON response of {result: 'note-on-sent-successfully'} indicates the note was successfully sent. A midicommand of noteon specifies a MIDI Note On command. noteoff specifies that it is a Note Off command.

    • note should be an integer of the MIDI Number value that represents the note, between 21 (A0) and 108 (C8).
    • channel should be a integer between 0 and 15.
    • velocity should be a integer between 1 and 127.

    To send a MSC (MIDI Show Control) message, the JSON object should be in this format:

    {
    midiport: 'MIDI Port Name',  
    midicommand: 'msc',  
    deviceid: 0,  
    commandformat: 'lighting.general',  
    command: 'go',  
    cue: '10',  
    cuelist: '13',  
    cuepath: '' }

    deviceid should be an integer between 0 and 111. It can also be a string "g1" through "g15" to represent groups, or it can be "all".

    commandformat should be a string with one of the following values:

    • lighting.general
    • sound.general
    • machinery.general
    • video.general
    • projection.general
    • processcontrol.general
    • pyro.general
    • all Any other value for commandformat will default to "all".

    command should be a string with one of the following values:

    • go
    • stop
    • gojam
    • gooff
    • resume
    • timedgo
    • load
    • set
    • fire
    • alloff
    • restore
    • reset
    • opencuelist
    • closecuelist
    • startclock
    • stopclock

    Any other value for command will default to "go".

    Values for cue, cuelist, and cuepath are all optional strings. If left blank ("") or not included in the object, those will not be included in the MIDI command that is generated.
    A JSON response of {result: 'msc-sent-successfully'} indicates the note was successfully sent.