Skip to content
🚀🎹 A high-level, feature-filled interface for the Novation Launchpad
JavaScript TypeScript
Branch: typescript-rew…
Clone or download
evelynhathaway Fix: Export `rocketry.devices` so that it can be accessed in non-defa…
…ult exports

Alternative fixes:
1) Simpler export structure (probably what I will do down the line)
2) bind the exported methods
Latest commit 757055d Nov 11, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
docs @ c7a3aa3
examples @ 067fe75 Examples and docs in submodules Feb 25, 2019
test Chore: Tidy code comments Nov 11, 2019
.eslintrc.js Manual test sturcture, package update, don't test node 7 Jan 27, 2019
.gitignore Types, moving device logic to MIDI layer, base for device and MIDI apis Feb 27, 2019
.travis.yml Manual test sturcture, package update, don't test node 7 Jan 27, 2019
LICENSE Initial commit Nov 12, 2017 Update: Fix root TS, typos/small text changes, package Sep 1, 2019
package.json Merge remote-tracking branch 'origin/typescript-rewrite' into typescr… Sep 1, 2019
tsconfig.json Update: Fix root TS, typos/small text changes, package Sep 1, 2019

Rocketry - JavaScript Launchpad Interface

npm organization: @rocketry build status dependencies: 3 license documentation


Rocketry is an interface for the Novation Launchpad product line written in JavaScript. Its goal is to take care of the quirks of the commands exposed by the device so you can write integrations at a higher level quickly. Rocketry is still in its early stages and should be considered a beta. I'm open to any suggestions on the process or project big or small.



  • Multi-platform
  • Automatic and manual detection of devices
  • Support for the Launchpad MK2
  • Planned support for Launchpad Mini and Launchpad Pro
  • Querying for buttons by name, coordinates, etc.
    • Query for many buttons at once by group as well
  • Shims for commands that aren't supported by the device
    • For instance, light the whole device with an RGB color
  • Unit tests and manual integration tests


  • Events for press and release of buttons
  • Light, flash, or pulse buttons
  • Change the layout
  • Scroll ASCII characters across the device
  • Arrays of buttons can run commands for each button
    • You can use less for loops
    • Events trigger an array when any button inside fires
    • Lighting of buttons is quicker in a group
  • Inquire for information about the device
  • And more...


npm install @rocketry/core

See Documentation > Installation for more information.

Getting Started

  1. Plug in your Launchpad
  2. Make sure your computer installed the drivers or install them manually
  3. Install Rocketry
  4. Try the "Getting Started" example
  5. Create a new .js file
  6. require() or import the package
  7. Browse the documentation


// Require Rocketry
const rocketry = require("@rocketry/core");

// Make a new device instance
// This method will automatically pick a supported device and its class
const launchpad = new rocketry();

// Get a button instance on the Launchpad at bottom-left button
// There are many other ways to get buttons like column, row, quadrant, etc.
const button =, 0);

// Set its color to pink
// Rocketry supports standard RGB, full RGB, and bi-color values or their names

// Log to console on press of the bottom-left button
// Rocketry passes helpful values into your function, but let's not use them now
button.on("press", function() {
    console.log("3... 2... 1... Blast off!");

// Reset the device and close connection on release of the button named "mixer""mixer").on("release", function() {
    console.log("Launch aborted!");

    // You can use `this.device` instead of `launchpad` inside of this, but let's use our own reference
    // Reset the Launchpad to defaults (lights, layout, etc)
    // Close MIDI ports and cleanup

Supported Devices

  • Launchpad MK2

Currently only the Launchpad MK2 is supported, but and support for the Launchpad Mini and Launchpad Pro are planned. Hopefully the module is also structured in such a way that other Novation devices could be added in the future with a minimal amount of breaking changes. If you're interested in expanding the support to your device, contact me or check out a related issue.


I think @TaranVH sums up my intentions the best. And his keyboards don't light up and control, say for instance, the Toggl API.


If you find any bugs or would like to suggest features, make an issue for it being as descriptive as possible and I'll do my best to address it.

If you have a device that's not supported, have ideas for new features, or just want to fix it up a bit; pull requests are highly appreciated.


Copyright Evelyn Hathaway, MIT License

You can’t perform that action at this time.