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 🙏

© 2024 – Pkg Stats / Ryan Hefner

@iwer/devui

v0.1.1

Published

Dev UI for IWER

Downloads

5,115

Readme

@iwer/devui is a developer user interface designed to integrate with the Immersive Web Emulation Runtime (IWER). It provides full control of an emulated WebXR device via an intuitive overlay UI on top of your development environment. This tool is ideal for developers building and testing WebXR applications, offering advanced features for comprehensive device emulation directly within your project's source code.

Key Features

  • Comprehensive Transform Controls: Modify the position and orientation of the emulated headset and controllers with precision.
  • Full Gamepad Controls Support: Exposes complete control over the emulated XR controllers, perfectly recreating the behavior and input of physical controllers for thorough testing.
  • Experimental Play Mode: Allows developers to efficiently test their immersive experiences using traditional FPS-like mouse and keyboard controls. This mode locks the pointer to the canvas and offers fully mappable keyboard shortcuts to emulate controller actions, streamlining the testing process without the need for physical devices.

Current Status

@iwer/devui is currently in 0.x status and is under active development. This is an early build, meaning that while it already excels in many areas and offers better usability than the current IWE, it is not yet complete. Key features and functionalities are being actively developed, and significant changes may occur before the official v1.0 release.

Areas Under Development

  • Emulated Hand Tracking Support: Enable hand tracking emulation to test applications that rely on this feature.
  • AR Module Support: Work is ongoing to integrate augmented reality features such as hit-testing, meshing, and plane detection.

Relationship with IWE

@iwer/devui is a package that developers can add directly to their projects, providing a powerful WebXR emulation tool within the source code. In contrast, IWE (Immersive Web Emulator) is an extension that injects similar emulation capabilities without requiring access to the project’s source code.

In the long term, starting with the IWE 2.0 release, the @iwer/devui experience will be integrated into IWE, enhancing its functionality. However, @iwer/devui will continue to be available as a standalone package, allowing developers to choose the integration method that best suits their workflow.

Installation

To install @iwer/devui, use the following npm command:

npm install @iwer/devui

Usage

@iwer/devui depends on an active IWER runtime within your experience. To get started, you first need to initialize the IWER runtime. If you haven't already, check out the IWER Getting Started Guide. Here is a quick example:

import { XRDevice, metaQuest3 } from 'iwer';

// Initialize the XR device with a preset configuration (e.g., Meta Quest 3)
const xrDevice = new XRDevice(metaQuest3);

// Install the IWER runtime to enable WebXR emulation
xrDevice.installRuntime();

You can choose to emulate other preset devices or use a custom device configuration with iwer. @iwer/devui will automatically read the configuration from iwer and generate the appropriate control UI based on the selected device.

To integrate @iwer/devui into your project, add the following code:

import { DevUI } from '@iwer/devui';

// Initialize the DevUI with the configured XR device
const devui = new DevUI(xrDevice);

This setup will allow you to use @iwer/devui's comprehensive emulation controls directly within your WebXR project.

License

@iwer/devui is licensed under the MIT License. For more details, see the LICENSE file in this repository.

Contributing

Your contributions are welcome! Please feel free to submit issues and pull requests. Before contributing, make sure to review our Contributing Guidelines and Code of Conduct.