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

magical-mixers

v1.1.0

Published

An open-source engine for communicating with digital mixers with nodejs.

Readme

Magical Mixers

npm version

An open-source engine for communicating with digital mixers in Node.js.

This library is the core communication layer behind Magical Mixing Console, a cross-platform application for remote control of digital mixers. It is designed to be reusable in other tools or custom workflows that need to interact with compatible digital audio consoles.

Built and maintained with ❤️ by Matías Barrios in Piriápolis, Uruguay 🇺🇾. Aguante la música ✨

Features

  • 🧠 Provides a high-level abstraction layer over digital mixers, allowing applications to interact with them through a unified and simplified interface, regardless of specific model details.
  • 🔌 Communication with digital mixers over LAN/WLAN.
  • ⚡ Real-time bidirectional message handling.
  • 🧱 Modular structure for easy extension and customization.
  • 🧰 Used in production by Magical Mixing Console.

Supported Mixers

Currently supports:

  • Behringer X Air series (XR12, XR16, XR18, X18).
  • Midas M Air series (MR12, MR18).

Let's hope more models and brands will be supported in the future!

Development

Clone and install

git clone https://github.com/matiasbarrios/magical-mixers.git
cd magical-mixers
npm install

Searching for devices

You can run LAN searches for devices with the following script in the examples folder:

node src/examples/search.js

If you're having connection problems with your device, this script will help debug what's going on.

Virtual device

If you don't own a supported digital mixer, you can run a virtual one by executing the following script:

npm run x18

By default it will listen on 127.0.0.1 on port 10024.

Has, get, set

The following code can be found in src/examples/busName.js. It shows how to connect to a device, get the main bus name, edit it, and get notifications every time it is edited.

Run it from the command line:

node src/examples/busName.js 127.0.0.1 10024
// Requirements
import { searchNew, initialize } from '../core/index.js';
import { isValidIP, isValidPort } from '../core/helpers/values.js';


// Constants
const mainBusId = 27;


// Internal
const disconnect = async (device) => {
    await device.dispose();
    console.log('Disconnecting, bye bye!');
    process.exit(0);
};


const readWriteBusName = async (device) => {
    // Does the device have buses? It should!
    device.features.bus.name.has(mainBusId, (has) => {
        if (!has) {
            console.error('Main bus not found');
            setTimeout(() => disconnect(device), 1);
            return;
        }

        // Get the main bus name
        // Every time it's edited this will run
        device.features.bus.name.get(mainBusId, (name) => {
            console.log(`Main bus name: ${name}`);
        });

        // Edit it it two times, every time it should be printed
        setTimeout(() => {
            device.features.bus.name.set(mainBusId, 'The Great Main Bus');
        }, 3000);

        setTimeout(async () => {
            device.features.bus.name.set(mainBusId, 'The Main Bus');
            // Once finished, disconnect
            await disconnect(device);
        }, 6000);
    });
};


const onDeviceFound = search => async (data) => {
    const device = await search.getFound(data.ip, data.port);
    await device.connect();
    await search.stop();
    console.log(`Device found on ${data.ip}:${data.port}`);
    await readWriteBusName(device);
};


// Main
const main = async () => {
    const ip = process.argv.length > 2 ? process.argv[2] : null;
    const port = process.argv.length > 3 ? process.argv[3] : null;

    if (!isValidIP(ip) || !isValidPort(port)) {
        console.error('Invalid IP or port');
        process.exit(1);
    }

    console.log(`Searching for ${ip}:${port}`);
    initialize();
    const search = searchNew();
    await search.inIPPort(ip, port, onDeviceFound(search), async () => {
        await search.stop();
        console.error('Device not found');
        process.exit(1);
    });
};


// Run
main();

If you want to develop the communication with a new device brand/model, you'll have to copy the structure of src/core/drivers/xair and implement the interaction for each feature. With the shown example, you can test the feature. Good luck!

Package installation

If you want to develop your own app that can handle the digital mixers supported, install the library:

npm install magical-mixers

Hello World

You'll also be able to connect to the device and access its features:

// Requirements
import { initialize, searchNew } from 'magical-mixers';


// Constants
const mainBusId = 27;


// Internal
const disconnect = async (device) => {
    await device.dispose();
    console.log('Disconnecting, bye bye!');
    process.exit(0);
};


const readWriteBusName = async (device) => {
    // Does the device have buses? It should!
    device.features.bus.name.has(mainBusId, (has) => {
        if (!has) {
            console.error('Main bus not found');
            setTimeout(() => disconnect(device), 1);
            return;
        }

        // Get the main bus name
        // Every time it's edited this will run
        device.features.bus.name.get(mainBusId, (name) => {
            console.log(`Main bus name: ${name}`);
        });

        // Edit it it two times, every time it should be printed
        setTimeout(() => {
            device.features.bus.name.set(mainBusId, 'The Great Main Bus');
        }, 3000);

        setTimeout(async () => {
            device.features.bus.name.set(mainBusId, 'The Main Bus');
            // Once finished, disconnect
            await disconnect(device);
        }, 6000);
    });
};


const onDeviceFound = search => async (data) => {
    const device = await search.getFound(data.ip, data.port);
    await device.connect();
    await search.stop();
    console.log(`Device found on ${data.ip}:${data.port}`);
    await readWriteBusName(device);
};


// Main
const main = async () => {
    const ip = '127.0.0.1';
    const port = 10024;

    console.log(`Searching for ${ip}:${port}`);
    initialize();
    const search = searchNew();
    await search.inIPPort(ip, port, onDeviceFound(search), async () => {
        await search.stop();
        console.error('Device not found');
        process.exit(1);
    });
};


// Run
main();

API Reference

Coming soon – in the meantime, see the source code and join the Discord community.

Contributing

Contributions are welcome! If you find a bug or want to request a feature, please open an issue or pull request. Also feel free to use the discussion board or join our Discord server for help and collaboration.

License

Apache License 2.0 © 2025 Matías Barrios
Piriápolis, Uruguay 🇺🇾
📧 [email protected]