Scan your whole stack
From OX Research Newsroom
Are you using node-dmx?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v1.3.0
node-dmx was last scanned on 22 Nov 2026 at version 1.3.0. Risk score 45 of 100 (medium). High-severity rules fired.
| Version | Published | Status |
|---|---|---|
| 1.3.0 LATEST | 22 Nov 2026 | 1 rule fired |
| 1.2.0 | 14 Sep 2026 | No rules fired |
Findings for v1.3.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
A DNS lookup command (nslookup, dig or host) takes its query name from a subshell that first encodes the data, for example with base64 or xxd. Encoding the name turns a lookup into a way to send data to the nameserver of the queried domain. Ordinary diagnostic lookups have no encoding step.
HIGHThe score describes 1.3.0; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
node-dmx is a TypeScript library for controlling DMX over IP from Node.js.
It supports:
rdmnet/packet), Broker PDU (rdmnet/broker), and RPT PDU (rdmnet/rpt) are wire-format-correct per ANSI E1.33, verified byte-for-byte against ETCLabs' open-source E1.33 reference implementation (root-layer extended flags+length, Broker Connect/Connect Reply/Client Entry/Client List/Disconnect/Null, RPT header + Request/Notification/Status PDUs including the RDM Command PDU's leading-0xCC encoding).rdmnet/llrp-transport: LlrpManager, LlrpTarget) implements the real ANSI E1.33 §6 UDP multicast transport — two multicast groups (request/response), the 27-byte LLRP PDU header, Probe Request/Reply, RDM command passthrough, and the reference discovery algorithm (ranged probing with a known-UID exclusion list, gated by consecutive clean rounds). It is intentionally not carried over RdmnetClient's TCP connection, matching the spec's requirement that LLRP work without a live Broker session.| Area | Feature | sACN (E1.31) | Art-Net 4 | RDMnet (E1.33) | Notes |
|---|---|---|---|---|---|
| Core I/O | DMX Send | ✅ | ✅ | ❌ | DMXController sends DMX via sACN/Art-Net |
| Core I/O | DMX Receive / Listen | ✅ | ✅ | ❌ | Receiver, ArtNetReceiver — RDMnet carries RDM device management, not DMX slot data |
| Core I/O | Synchronization / Discovery | ✅ | ✅ (ArtSync) | n/a | Sender.sendSync, UniverseDiscoverySource (E1.31 §6/§8) |
| Device Discovery | Controller/Node Discovery | ⚠️ Discovery packets | ✅ | ✅ | ArtNetDiscovery, RdmnetDiscovery (DNS-SD + mDNS), LlrpManager |
| Device Management | RDM Messaging (controller) | ❌ | ✅ | ✅ | ArtNetRdmClient full flow, RdmnetClient RPT rdmTransaction, LlrpManager RDM passthrough |
| Device Management | RDM Responder (fixture/device) | n/a | ✅ | ✅ | RdmResponder core + ArtNetRdmResponder / RdmnetClient.useRdmResponder / LlrpTarget |
| Security | Secure Transport | ❌ | ❌ | ✅ | RdmnetClient supports transport: 'tls', peer auth policy, post-connect auth hook |
| Ecosystem | Fixture Plugin System | ✅ | ✅ | ❌ | Fixture API currently targets DMX output protocols |
| Compliance | Formal Protocol Compliance Claim | ✅ E1.31 implementation | ✅ Art-Net implementation | ⚠️ Wire-format verified | RDMnet: root/Broker/RPT/LLRP wire-verified; full claim depends on third-party conformance runs |
This guide is written for students and first-time users: start simple, then move to advanced features.
npm install node-dmx
flush() to send them.keepAliveMs, default 1000), because sACN receivers drop a source after
2.5 s of silence. Call close() when done to stop it.import {DMXController} from 'node-dmx';
const controller = new DMXController({protocol: 'sacn'});
const universe = controller.addUniverse(1);
universe.setChannel(1, 255); // channel 1 at full
await controller.flush();
controller.close();
import {DMXController} from 'node-dmx';
const controller = new DMXController({
protocol: 'artnet',
artSync: true,
artnet: {
host: '255.255.255.255',
broadcast: true,
},
});
controller.setChannel(1, 1, 255); // universe 1, channel 1, full
await controller.flush();
controller.close();
import {DMXController} from 'node-dmx';
const controller = new DMXController({protocol: 'sacn'});
const u1 = controller.addUniverse(1);
const u2 = controller.addUniverse(2);
u1.setChannel(1, 255);
u2.setChannel(1, 128);
await controller.flush(); // sends all dirty universes
By default Art-Net universes are 1-based (universe 1 = Port-Address 0),
matching sACN. Most Art-Net consoles and nodes show the raw 0-based
Port-Address instead; opt in with artnetPortAddressing:
const controller = new DMXController({protocol: 'artnet', artnetPortAddressing: true});
controller.setChannel(0, 1, 255); // Port-Address 0 (Net 0, Sub-Net 0, Universe 0)
ArtNetSender accepts portAddress directly, and received ArtDMX packets
carry both universe (1-based) and portAddress (0-based).
import {ArtNetDiscovery} from 'node-dmx';
// Listens on UDP 6454 (where nodes send ArtPollReply). Pass `bindAddress`
// to poll that interface's directed broadcast address.
const discovery = new ArtNetDiscovery({bindAddress: '192.168.1.50'});
const replies = await discovery.pollOnce();
for (const node of replies) {
console.log(node.ip, node.shortName, node.longName);
}
discovery.close();
import {ArtNetRdmClient, RdmCommandClass, PIDS} from 'node-dmx';
const client = new ArtNetRdmClient({host: '192.168.0.10'});
const response = await client.rdmTransaction(1, {
destinationUid: {manufacturerId: 0x7a70, deviceId: 0x00000001},
sourceUid: {manufacturerId: 0x7a70, deviceId: 0x00000002},
// transactionNumber is optional: the client auto-increments it (0-255, wrapping)
portId: 1,
subDevice: 0,
commandClass: RdmCommandClass.GET_COMMAND,
pid: PIDS.DEVICE_INFO,
});
console.log(response); // null on timeout
client.close();
Replies are matched to requests by transaction number, UIDs and command
class, so concurrent requests are safe. Art-Net nodes send OpRdm/ArtTodData
to UDP 6454, so the client binds that port by default (localPort, with
reuseAddr: true) and falls back to a random port if it's taken. On Windows,
sharing 6454 with another socket in the same process (e.g. an ArtNetReceiver)
can cause one of them to miss unicast replies; give each its own interface or
use localPort: 0 if your nodes reply to the source port.
RdmResponder is a transport-agnostic RDM device core — it answers GET/SET for the
standard PID set (DEVICE_INFO, DMX_START_ADDRESS, IDENTIFY_DEVICE, DEVICE_LABEL,
DMX_PERSONALITY, MANUFACTURER_LABEL, SUPPORTED_PARAMETERS, DISC_MUTE/UN_MUTE...) for you —
no manual ACK/NACK frame or checksum handling. Three wrappers plug it into each transport:
import {ArtNetRdmResponder, RdmResponder} from 'node-dmx';
const uid = {manufacturerId: 0x7a70, deviceId: 0x00000042};
const responder = new RdmResponder({
uid,
deviceLabel: 'Sim Fixture 1',
dmxStartAddress: 1,
personalities: [{footprint: 3, description: 'RGB'}],
onIdentifyChange: (on) => console.log('identify', on),
});
// Art-Net: answers ArtPoll/ArtTodRequest/ArtRdm; discoverable via ArtNetDiscovery.
const fixture = new ArtNetRdmResponder({responder, universe: 1});
fixture.on('dmx', (frame) => console.log('levels', frame.subarray(0, 3)));
ArtNetRdmResponder (also receives ArtDMX for the configured universe).RdmnetClient.useRdmResponder(responder) — auto-answers inbound RPT Requests.new LlrpTarget({..., onRdmCommand: (frame) => responder.respond(frame)}).See examples/artnet-fixture-simulator.ts, examples/rdmnet-fixture-simulator.ts, and
examples/rdmnet-llrp-fixture-simulator.ts.
import {DMXController, Fixture, RGBDimmerFixture} from 'node-dmx';
const controller = new DMXController({protocol: 'sacn'});
controller.addUniverse(1);
const fixture = new Fixture(
controller,
RGBDimmerFixture,
1, // universe
1, // start address
'4ch', // personality id
);
// RGBDimmerFixture expects state with `dimmer` and `rgb` array values in range 0..1
fixture.set({dimmer: 1, rgb: [1, 0.25, 0.1]});
fixture.render();
await controller.flush();
Available built-in example fixture plugins:
RGBDimmerFixture (4ch: dimmer + RGB)RGBWW5Fixture (5ch: R + G + B + warm white + cool white)All examples live in examples/.
Core examples:
examples/sacn-basic.tsexamples/sacn-animate.tsexamples/sacn-animate-orignal.ts (older single-universe variant)examples/sacn-rainbow.tsexamples/sacn-sync.ts — Synchronization Packets (E1.31 §6)examples/sacn-universe-discovery.ts — Universe Discovery (E1.31 §8)examples/sacn-listen-matrix.tsexamples/artnet-animate.tsexamples/artnet-listen-matrix.tsexamples/artnet-discover.tsexamples/artnet-fixture-simulator.ts — simulate a DMX+RDM fixtureexamples/rdm-tod.tsexamples/rdmnet-listen.tsexamples/rdmnet-discover.tsexamples/rdmnet-interop-smoke.tsexamples/rdmnet-rdm-transaction.ts — RDM GET over RPTexamples/rdmnet-llrp-discover.ts — real LLRP UDP device discoveryexamples/rdmnet-fixture-simulator.ts — simulate an RDMnet RDM deviceexamples/rdmnet-llrp-fixture-simulator.ts — simulate an LLRP Targetexamples/fixture-rgbww5.tsexamples/list-network-interfaces.tsAdditional animation examples:
examples/sacn-comet-chase.tsexamples/sacn-fire-flicker.tsexamples/sacn-police-strobe.tsexamples/sacn-breathing-pastels.tsexamples/sacn-color-wipe.tsexamples/sacn-sparkle.tsexamples/sacn-theater-chase.tsexamples/sacn-aurora.tsexamples/sacn-pulse-stack.tsexamples/sacn-storm.tsexamples/sacn-halloween.tsexamples/sacn-christmas.tsRun an example:
npm run example/sacn-rainbow
All sacn-* examples read DMX_IFACE to override the hardcoded interface IP:
DMX_IFACE=192.168.1.50 npm run example/sacn-rainbow
Useful options for DMXController:
protocol: 'sacn' | 'artnet'iface: local interface IPv4 addressreuseAddr: allow multiple listeners/senders on same UDP portunicastDestination: send unicast instead of multicast/broadcastartSync: send ArtSync after flush (Art-Net)sacnSyncUniverse: E1.31 synchronization address; receivers hold frames until the sync packet sent after each flushkeepAliveMs: resend interval for unchanged universes (default 1000, 0 disables)artnetPortAddressing: use raw 0-based Art-Net Port-Addresses as universe idsReceiving sACN from several sources:
import {Receiver, Merger} from 'node-dmx';
const receiver = new Receiver({universes: [1]});
const merger = new Merger(receiver); // highest priority wins, HTP between equal priorities
merger.on('merged', ({universe, data}) => console.log(universe, data[0]));
receiver.on('sourceLost', (s) => console.log('lost', s.sourceName, s.reason));
The receiver applies the E1.31 sequence rules, reports sources that time out
(2.5 s) or send Stream_Terminated via sourceLost, and emits non-zero START
Code frames (e.g. 0xDD priority) as alternateStartCode instead of packet.
Malformed network input never raises error (sACN: PacketCorruption,
Art-Net: invalidPacket), so a bad packet can't crash your process.
RDMnet client options:
uid: required — this component's RDM UID ({manufacturerId, deviceId}), carried in the Broker Client Entry and every RPT headertransport: 'tcp' | 'tls' (default tcp)tls: Node TLS options (CA, client cert/key, ciphers, min/max version, etc.)requireTlsAuthorization: reject unauthorized TLS peers (default true when transport: 'tls')postConnectAuth: async hook for environment-specific auth/profile checksUse real brokers/devices for compliance verification (not mocks only).
Smoke-runner against a real broker:
RDMNET_INTEROP_HOST=192.168.1.50 \
RDMNET_INTEROP_PORT=5568 \
npm run example/rdmnet-interop-smoke
Environment-gated integration test:
RDMNET_INTEROP_HOST=192.168.1.50 \
RDMNET_INTEROP_PORT=5568 \
RDMNET_INTEROP_SCOPE=default \
npm run test:interop:rdmnet
Useful flags:
RDMNET_INTEROP_TLS=1: use TLS transportRDMNET_INTEROP_TLS_STRICT=0: allow non-authorized TLS peer for lab setupsRDMNET_INTEROP_CHECK_LISTS=1: also validate the broker client-list requestRDMNET_INTEROP_TIMEOUT_MS=5000: per-request timeout overrideTypeDoc output uses README.md as the landing page.
Build docs:
npm run docs:build
Output:
generated/docsiface) is on the same subnet as the fixture.Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.