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

@kirknock/nodexr-monado-web-remote

v0.4.1

Published

Web control panel for Monado's remote driver: move the simulated HMD and controllers with on-screen buttons (Node.js port of remote-mndset).

Readme

@kirknock/nodexr-monado-web-remote

Web control panel for Monado's remote driver — a Node.js port of remote-mndset. Instead of grabbing keyboard and mouse, every input combination is an on-screen button you hold (mouse or multi-touch).

The Node server owns the TCP connection to Monado and runs the 60 Hz simulation loop; the browser only sends press/release events over a WebSocket.

Install and run

npm install -g @kirknock/nodexr-monado-web-remote  # or: npm install -g ./kirknock-nodexr-monado-web-remote-<version>.tgz
P_OVERRIDE_ACTIVE_CONFIG=remote monado-service    # Monado with the remote driver
nodexr-monado-web-remote                          # prints the control page URLs

Without installing: npx @kirknock/nodexr-monado-web-remote.

Open the page, check host/port (default 127.0.0.1:4242), press Connect, start your OpenXR app.

Control page with HMD, left and right controller panels, and an OpenXR app running on Monado in front

nodexr-monado-web-remote [options]
  -H, --host <addr>        address for the web page        (default 0.0.0.0, env HTTP_HOST)
  -p, --port <n>           port for the web page           (default 8080, env HTTP_PORT)
  -m, --monado-host <addr> monado-service address          (env MONADO_HOST)
  -P, --monado-port <n>    monado remote driver port       (env MONADO_PORT)
  -c, --connect            connect to Monado on start
  -s, --settings <file>    settings file
  -v, --version / -h, --help

No Monado at hand? nodexr-monado-mock [port] starts a fake remote driver (default port 4242) that prints the decoded frames.

It can also be embedded: import { startServer } from '@kirknock/nodexr-monado-web-remote' returns { config, server, ready, close }; the packet encoder is available as @kirknock/nodexr-monado-web-remote/protocol.

Development

npm install
npm start          # same as the CLI, options after --: npm start -- -P 9292
npm run mock
npm test
npm pack           # builds kirknock-nodexr-monado-web-remote-<version>.tgz (runs the tests first)

Controls

| remote-mndset | Web page | |----------------------------|---------------------------------------------------| | no modifier / LShift / LAlt| HMD / Left controller / Right controller panel | | W / S / A / D | Forward / Back / Left / Right | | Space / Ctrl | Up / Down | | Q / E | Roll left / Roll right | | Mouse X / Y | Yaw left/right, Pitch up/down | | LMB / RMB | Left / Right controller Trigger | | Mouse side buttons 1 / 2 | A/X / B/Y | | Tab | Thumbstick emulation: Off / Left stick / Right stick | | — | Squeeze, Menu/System, Stick click, 4-way thumbstick pad (extra protocol fields) |

  • Controllers follow the head; their own movement is relative to it (as in remote-mndset).
  • With thumbstick emulation on, HMD Forward/Back/Left/Right drive that controller's thumbstick instead of moving the head.
  • Latch (global or per panel) turns buttons into toggles, e.g. to keep a trigger pressed while moving.
  • Everything this page holds is released when the page loses focus or closes.

Configuration

config/default.json (shipped with the package) holds defaults. Changes made in the page (host, port, auto-reconnect, speeds) are saved per user to ~/.config/nodexr-monado-web-remote/settings.json ($XDG_CONFIG_HOME/... if set, %APPDATA%\nodexr-monado-web-remote\settings.json on Windows), or to the file given with --settings / SETTINGS_FILE. CLI options override environment variables, which override both files.

The web page listens on all interfaces (0.0.0.0) by default so a phone/tablet on your LAN can be used as the controller — anyone who can reach the port can drive your headset. Use --host 127.0.0.1 to restrict it to this machine.

monado.header is the 8-byte protocol tag (mndrmt3, used by Monado since commit e4931a46). Change it in config/default.json if your Monado build expects a different version.

Protocol

One little-endian r_remote_data packet (376 bytes) is written to the TCP socket every frame — see src/protocol.js for the field offsets. Nothing is read back.

Layout

bin/cli.js           command line entry point
src/server.js        HTTP + WebSocket server, wiring (startServer)
src/config.js        defaults + per-user settings
src/simulator.js     frame loop (port of remote-mndset main.cpp)
src/movement.js      per-device movement (port of movement.cpp)
src/math.js          quaternion / YXZ euler helpers (port of math_helper.cpp)
src/protocol.js      packet encode/decode
src/monadoClient.js  TCP client with auto-reconnect
public/              control page
tools/mock-monado.js fake remote driver for testing
test/                node:test unit tests