Wondering what’s next for npm?Check out our public roadmap! »

    TypeScript icon, indicating that this package has built-in type declarations

    4.0.6 • Public • Published


    package json version npm version npm downloads

    NPM Badge

    vMix API utility library for Javascript can be used in either frontend or backend applications (NodeJS).

    It is recommended to import the package as a NPM package. Alternatively you can download the source code and included it as a library manually.

    OBS - NodeJS utility for vMix

    Note: The NodeJS utility for communicating with vMix is branched out in its own repository/package - See node-vmix for more info. The node-vmix package is only for NodeJS applications, used for easy connection to vMix instances.

    This library can be used both in front-end and NodeJS projects.

    Simple use

    // Import XML API functionality
    import { DataParser, InputMapping } from 'vmix-js-utils/modules/xml-api'


    This library is a set of utilities consisting of several modules. Each can be used on its own, but usually it makes more sense to make it interplay with some of the other modules. This is demonstrated in the examples.

    The modules are coded as classes, meaning that they are constructed with specific parameters.

    The source code is written in TypeScript, and compiled to javascript to allow it to be used as a npm package. It includes type declarations for TypeScript support, meaning that you can type defer i.e. the input types.


    Please read the documentation.

    Installation and use

    As a dependency using npm (or yarn)

    The library is published at npmjs as a package, meaning that you can easily add the utilities as a dependency in your project. Found here: https://www.npmjs.com/package/vmix-js-utils

    npm install vmix-js-utils --save
    # or 'yarn add vmix-js-utils -d'

    In your code the simplest way to import the modules is the following:

    const { DataParser, GeneralState } = require('vmix-js-utils/modules/xml-api')
    // ...

    You are also able to import all of the modules as a gathered variable, but less elegant way:

    // Import all vMix utils
    const vMixUtils = require('vmix-js-utils')
    // Import XML API functions
    const { DataParser, GeneralState, Inputs } = vMixUtils.XmlApi
    // ...

    Standalone project / Fork

    The code can be cloned and tested as needed from the source code. It is especially useful when deveoping and extending the functionality.

    git clone https://github.com/jensstigaard/vmix-js-utils.git
    cd vmix-js-utils

    To run the project as standalone locally, you may want to first install the dependencies

    npm install # or 'yarn'

    Compile TypeScript source code to JavaScript code

    npm build # or 'yarn build'

    Run tests

    npm test # or 'yarn test'


    Work in progress.




    Jens Grønhøj Stigaard - jens@stigaard.info (http://jens.stigaard.info)


    You are more than welcome to contribute to the repository!


    • More examples
    • More tests
    • Perhaps more functionality


    npm i vmix-js-utils

    DownloadsWeekly Downloads






    Unpacked Size

    241 kB

    Total Files


    Last publish


    • avatar