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 🙏

© 2025 – Pkg Stats / Ryan Hefner

asls-wsc-server

v1.0.0

Published

ASLS's implementation of a WSC (Web Show Control) server

Downloads

9

Readme

ASLS WSC Server

ASLS WSC Server is a Node.js application that bridges Web Show Control (WSC) DMX packets to various lighting protocols, with current support for Art-Net. It enables seamless communication between web-based lighting control interfaces and traditional DMX lighting systems.

      ___           ___           ___       ___      
     /  /\         /  /\         /  /\     /  /\     
    /  /::\       /  /::\       /  /:/    /  /::\    
   /  /:/\:\     /__/:/\:\     /  /:/    /__/:/\:\   
  /  /::\\ \:\   _\_ \:\ \:\   /  /:/    _\_ \:\ \:\  
 /__/:/\:\_\:\ /__/\ \:\ \:\ /__/:/    /__/\ \:\ \:\ 
 \__\/  \:\/:/ \  \:\ \:\_\/ \  \:\    \  \:\ \:\_\/ 
      \__\::/   \  \:\_\:\    \  \:\    \  \:\_\:\   
      /  /:/     \  \:\/::/     \  \:\    \  \:\/::/   
     /__/:/       \  \::/       \  \:\    \  \::/    
     \__\/         \__\/         \__\/     \__\/     

Features

  • WebRTC-based DMX data transmission
  • Art-Net protocol support
  • Real-time packet conversion and forwarding
  • Websocket signaling for connection establishment
  • Broadcast capability for network-wide DMX distribution

Prerequisites

  • Node.js (v12.0.0 or higher)
  • npm or yarn package manager

Installation

  1. Clone the repository:
git clone https://github.com/yourusername/asls-server.git
cd asls-server
  1. Install dependencies:
npm install

Configuration

Default configuration:

  • WebSocket signaling port: 5214
  • Art-Net UDP port: 6454

These values can be modified when initializing the server.

Usage

Command Line Interface

The server can be started using the CLI with optional port configurations:

# Start with default ports
DMXWebRTC

# Configure WebSocket port
DMXWebRTC -w 5215

# Configure UDP port
DMXWebRTC -u 6455

# Configure both ports
DMXWebRTC -w 5215 -u 6455

# Show help
DMXWebRTC --help

CLI Options

Usage: DMXWebRTC -w <web_socket_port> -u <udp_port>

Options:
  -w, --websocket-port  Sets up port number of the web socket server instance
                        used for signaling
  -u, --udp-port        Port number of the ArtNET server from which data will
                        be intercepted and/or forwarded through WebRTC
  --help                Show help information

Programmatic Usage

const DMXWebRTC = require('./DMXWebRTC');

// Initialize with default ports
DMXWebRTC.init();

// Or initialize with custom ports
DMXWebRTC.init(wsPort, udpPort);

Data Flow

  1. Client connects via WebSocket for signaling
  2. WebRTC data channel is established
  3. DMX data is transmitted through the WebRTC channel
  4. Server converts and forwards packets to Art-Net devices

Protocol Support

Current Implementation

  • Art-Net (OpCode: 0x5000)
    • Universe: 0-32767
    • Channels: 512 per universe
    • Supports standard DMX512 data format

Packet Structure

Art-Net DMX packet structure:

0                   1                   2                   3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|      'A'      |      'r'      |      't'      |      '-'      |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|      'N'      |      'e'      |      't'      |     0x00      |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|   OpCode Lo   |   OpCode Hi   |  ProtVer Hi   |  ProtVer Lo   |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|   Sequence    |   Physical    |    SubUni     |     Net       |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|    Length Hi  |    Length Lo  |                               |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+                               |
|                                                               |
/                            DMX Data                           /
|                                                               |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

License

This project is licensed under the GNU General Public License v3.0 - see the COPYING file for details.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Acknowledgments

  • Built with Node.js
  • Uses WebRTC for reliable data transmission
  • Implements Art-Net protocol specifications

Support

For issues and feature requests, please create an issue in the repository.