Transport-independent gaming mouse protocol codecs used by OpenMouse.
The package owns packet layouts, command constants, checksums, encoders, decoders, protocol-specific value types, device catalogs, and the WebHID drivers used by OpenMouse. Pure codec entry points do not depend on WebHID, so browser, Node.js, and TypeScript projects can use them independently from the optional driver layer.
import { buildFinalmouseReport } from "@openmouse/protocol/finalmouse";
import { encodeRazerRequest } from "@openmouse/protocol/razer";
import { RAZER_PRODUCTS } from "@openmouse/protocol/razer-devices";
import {
createSupportedClient,
SUPPORTED_HID_FILTERS,
} from "@openmouse/protocol/drivers";npm install
npm run checkThe prepare script builds dist automatically when this package is installed
directly from Git. Codec sources are grouped by brand under src/; WebHID
drivers, discovery filters, the driver registry, and shared status types live
under src/drivers/. OpenMouse retains application orchestration and UI code.
See CONTRIBUTING.md for protocol boundaries, hardware evidence requirements, local OpenMouse integration, and the pull-request checklist.
| Brand | Import |
|---|---|
| A4Tech Bloody R36 Ultra | @openmouse/protocol/a4tech |
| AJAZZ | @openmouse/protocol/ajazz |
| ATK | @openmouse/protocol/atk |
| Corsair | @openmouse/protocol/corsair |
| Dareu | @openmouse/protocol/dareu |
| Delux M800 Mini / M600 Pro / M800 Pro | @openmouse/protocol/delux |
| Endgame Gear OP1/XM2 8K | @openmouse/protocol/endgame-gear-op1 |
| Endgame Gear XM1r/OP1/OP1 RGB | @openmouse/protocol/endgame-gear-ot |
| Endgame Gear wireless | @openmouse/protocol/endgame-gear-we |
| Fantech | @openmouse/protocol/fantech |
| Finalmouse | @openmouse/protocol/finalmouse |
| G-Wolves | @openmouse/protocol/gwolves |
| GearHub (AJAZZ / Attack Shark / Lingbao) | @openmouse/protocol/gearhub |
| Glorious | @openmouse/protocol/glorious |
| Glorious classic (Model O/D/I, Series One Pro) | @openmouse/protocol/glorious-classic |
| Glorious core2 (O2/D2 Pro 4K/8K) | @openmouse/protocol/glorious-core2 |
| Hitscan (Hyperlight web control / native Utility) | @openmouse/protocol/hitscan |
| HyperX | @openmouse/protocol/hyperx |
| Incott | @openmouse/protocol/incott |
| Instant A825 | @openmouse/protocol/instant |
| K-snake | @openmouse/protocol/ksnake |
| Keychron | @openmouse/protocol/keychron |
| Lamzu / CRDRAKO / Attack Shark / LunaFury | @openmouse/protocol/lamzu |
| LEOBOG GM3 | @openmouse/protocol/leobog |
| Logitech | @openmouse/protocol/logitech |
| MCHOSE | @openmouse/protocol/mchose |
| Microsoft | @openmouse/protocol/microsoft |
| Motospeed | @openmouse/protocol/motospeed |
| moddoMOUSE | @openmouse/protocol/moddo |
| Ninjutso | @openmouse/protocol/ninjutso |
| Orbital | @openmouse/protocol/orbital |
| RAWM | @openmouse/protocol/rawm |
| Pulsar / GravaStar | @openmouse/protocol/pulsar |
| Razer legacy/current | @openmouse/protocol/razer |
| Rapoo VT9 Pro | @openmouse/protocol/rapoo |
| Razer V4 | @openmouse/protocol/razer-v4 |
| Redragon (M612 / M724 / M690 PRO / M719RGB-PRO / M991) | @openmouse/protocol/redragon |
| Ryunix | @openmouse/protocol/ryunix |
| Amkette XS series | @openmouse/protocol/amkette |
| SteelSeries Rival 3 (Gen 1) | @openmouse/protocol/steelseries |
| Teevolution | @openmouse/protocol/teevolution |
| VGN | @openmouse/protocol/vgn |
| WALLHACK | @openmouse/protocol/wallhack |
| WLMouse | @openmouse/protocol/wlmouse |
| Wooting | @openmouse/protocol/wooting |
| Zaunkoenig | @openmouse/protocol/zaunkoenig |
The Attack Shark RS3 Ultra appears under the CompX vendor id 0x3554 and uses
its own Attack Shark identity with the shared V8S/CompX controls. Its receiver
reports a generic product name, but the CompX identity handshake identifies
the paired RS3 Ultra. Its verification scope is documented in
docs/attackshark-rs3-ultra.md.
An exported protocol means OpenMouse implements that wire format. It does not
claim every mouse from that brand works. When a catalog provides a verified
field, use it to distinguish hardware-tested support from USB recognition.
LunaFury uses the shared Lamzu/CompX driver at @openmouse/protocol/lamzu.
LUNA33 firmware 0.0.26.0 has owner-confirmed cable/8K coverage; TYPE33 and
bottom-button behavior are not hardware-verified. See the
support and testing notes for the verified scope.
The Ninjutso catalog and packet layouts are derived from the JavaScript shipped by the official NinjaForce WebHID panel. They have automated transport and codec coverage, but are not marked as hardware-verified until tested on the corresponding Sora V2/V3 and TEN-family devices.
AJAZZ AJ179 PRO is supported by the GearHub driver, identified by device id 1851 rather than its shared receiver PID. USB, 2.4 GHz and Bluetooth settings have been exercised on hardware. See docs/ajazz-aj179-pro.md for transport framing, verified writes and remaining limitations. This does not claim support for other AJAZZ models or measured high-rate Bluetooth input.
A4Tech Bloody R36 Ultra (09da:fa38, 2.4 GHz receiver) is the only A4Tech
model with a driver. Its configuration channel is report 7 on usage page
0xFF32; identification, DPI and polling rate were written and read back on
hardware. Battery has no confirmed command on this firmware, so the status
reports null rather than a guess. See
docs/a4tech-r36-ultra.md for the measured frames.
The SteelSeries Rival 3 Gen 1 codec and driver are derived from the public rivalcfg project, corroborated against libratbag and OpenRGB. The device is write-only — only the firmware version can be read back — and no entry is marked hardware-verified yet. See docs/steelseries-testing.md.
Glorious Series One Pro Wireless (258a:2018 wired, 258a:2031 2.4 GHz
receiver) is listed in the Glorious classic driver. Only its firmware and
battery reads have been exercised on hardware (wired); the classic RGB, DPI,
polling, lift-off and debounce writes have not. See
docs/glorious-series-one-pro.md for those
replies and the resident Compx bootloader protocol (entry, read-back,
erase/program behavior).