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

dpvr-e3s-driver

v2.0.0

Published

A (non-official) driver for the DPVR E3S VR headset.

Readme

dpvr-e3s-driver

npm

A (non-official) driver for the DPVR E3S VR headset.

Installation

npm install -g dpvr-e3s-driver

Usage

After installation, the dpvr-e3s-driver command is available.

Use the --help option to show available commands and options:

dpvr-e3s-driver --help

udev rule

This driver uses node-hid to communicate with the device.

If you are using Linux with udev, you can use the following command to allow members of the video group to access the device:

dpvr-e3s-driver udev-rule | sudo tee /etc/udev/rules.d/50-dpvr.rules

This will add the following rule:

ATTRS{idVendor}=="2d49", ATTRS{idProduct}=="001b", MODE:="660", GROUP="video"

If you want to use another mode than 660 or another group than video, you can pass the appropriate mode or group with the -m or -g option in the dpvr-e3s-driver udev-rule command.

console

The console command continuously prints to the console (as a json) the position computed from sensor data:

dpvr-e3s-driver console

The output on the console is similar to this:

{"heading":-2.8829463899181356,"pitch":-0.023084540826202843,"roll":1.681257805217968}
{"heading":-2.8829528161583027,"pitch":-0.023084025854777143,"roll":1.6813853348790158}
{"heading":-2.882960945538963,"pitch":-0.023081032498493505,"roll":1.6814685059132433}

server

The driver can start a web server that serves the position computed from sensor data as server-sent events:

dpvr-e3s-driver server

The above command starts the web server with default options.

The command below starts a web server on port 4001, accepting CORS connections from http://localhost:5173 and serving the VR headset position as Server Sent Events (SSE) on the URL http://localhost:4001/vr-position.

dpvr-e3s-driver server --port 4001 --origin http://localhost:5173 --url-sse /events

To use the position from a web application, you can use the following typescript code snippet:

let position: null | { heading: number; roll: number; pitch: number } = null;
const eventSource = new EventSource("http://localhost:4001/events");
eventSource.onmessage = function (event) {
	position = JSON.parse(event.data);
};

// use the position as you wish in your application

The driver can be used with this video player by running:

dpvr-e3s-driver server --port 4001 --origin https://davdiv.github.io

API

dpvr-e3s-driver also exports an API:

import { createDriver } from "dpvr-e3s-driver";
// ...
const driver = await createDriver();
try {
	while (true) {
		await driver.update();
		console.log(JSON.stringify(driver.getEulerAngles()));
	}
} finally {
	await driver.close();
}