Starting with version 3, the library works in both the browser and Node.js. Let's quickly look at the specificities of both these environments.
- Edge v79+
- Chrome 43+
- Opera 30+
- Firefox 108+
It is also possible to use this library in other browsers if you install Jazz-Plugin v1.4+. This combination provides support for the following additional web browsers:
- Internet Explorer
Note that, in 2020, Apple has announced that they would not natively support the Web MIDI API (and a host of other APIs) in Safari because of fingerprinting concerns.
Version 3.0 of WEBMIDI.js introduced full Node.js support. Nothing special needs to be done, it should just work in the following environments (with Node.js 8.5+):
- Raspberry Pi
Starting with version 3, TypeScript is officially supported. You will find the TypeScript definition file in these locations in side tje library's folder: