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

@asls/wsc-sdk

v2.2.0

Published

ASLS's WSC Web Show Control) Web SDK

Readme

WSC SDK

A JavaScript implementation of the WSC wire format that is independent of any I/O or transport layer, exposing the protocol through idiomatic types, functions, and constants without prescribing how packets are sent or received.

About WSC: WSC defines a unified wire format that transports DMX data, linear timecode, cue triggers, structured parameter updates, and arbitrary binary payloads. A gateway can then relay this data to downstream protocols such as Art-Net, sACN, OSC, MIDI, Modbus, and others.

Public API

All domain constants live as static members of their owning class:

| Class | Responsibility | |---|---| | WscPacket | Packet construction, serialization, deserialization, payload codecs, validation | | WscTransport | Transport Descriptor construction, serialization, compatibility matrices | | WscAddress | Address token encoding, dot-notation parsing, serialization | | WscFlags | Flags field serialization and validation | | WscError | Typed protocol error with class and error code | | BinaryReader / BinaryWriter | Low-level byte-level read/write helpers |

Constants

| Expression | Values | |---|---| | WscPacket.Type | STREAM_CHANNELS, STREAM_TIMECODE, CONTROL_CUE, CONTROL_PARAM, TUNNEL_RAW, STATE_QUERY, STATE_ANSWER, STATE_ERROR | | WscPacket.CueAction | LOAD, START, STOP, PAUSE, RESUME, RELEASE | | WscPacket.ValueType | U8, U16, U32, U64, I8, I16, I32, I64, F32, F64, STRING, BOOL | | WscPacket.StateQuery | KEEPALIVE | | WscPacket.Status | SUCCESS, PARTIAL, ERROR, NOT_FOUND, NOT_SUPPORTED, BUSY | | WscPacket.ErrorCode | PROTOCOL_VERSIONCONFIG_ERROR | | WscTransport.Protocol | DMX512, ARTNET, SACN, OSC, MIDI, MODBUS, RAW, … | | WscTransport.Iface | UDP, TCP, SERIAL, USB, WEBSOCKET, HTTP | | WscTransport.Addr | NONE, IPV4, IPV6, SERIAL, USB, HOSTNAME, URL | | WscTransport.Param | PRIORITY, TTL, BAUD_RATE, SEQUENCE, IFACE_IDX | | WscFlags.Bit | TR, GW, ACK, MC, TS |

Packet factory

// Construct a typed packet
WscPacket.create(type, data, opts?)
// opts: { id?, flags?: WscFlags, transport?: WscTransport }

// Serialize
packet.serialize()              // → Uint8Array

// Deserialize
WscPacket.deserialize(buffer)   // → WscPacket

// Decode payload
WscPacket.decode(packet)        // → plain object | null

// Validate before send
WscPacket.validate(packet)      // → { valid, errors[], warnings[] }

Transport factory methods

WscTransport.udp(protocol, ip, port)
WscTransport.tcp(protocol, ip, port)
WscTransport.serial(protocol, portIndex, baudRate)
WscTransport.usb(protocol, vendorId, productId)
WscTransport.http(protocol, url)
WscTransport.websocket(protocol, url)
WscTransport.raw()

Address parsing

// From dot-notation string
WscAddress.parse('lighting.layer.2.intensity')   // → WscAddress

// From token array
WscAddress.build([WscToken.AUDIO, WscToken.TRACK, 3, WscToken.LEVEL])

// Round-trip
addr.serialize()                 // → Uint8Array
WscAddress.deserialize(bytes)    // → WscAddress
addr.toString()                  // → 'lighting.layer.2.intensity'