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 🙏

© 2025 – Pkg Stats / Ryan Hefner

mrjs

v0.6.4

Published

an MR first webXR framework

Downloads

39

Readme

The MRjs logo, an indigo and purple bowtie.

An extensible library of Web Components for the spatial web.

npm run build npm run test License: MIT

docs dev-examples

Branches

  • Large refactor of MRjs happening on sub-main branch, stay tuned!
  • main branch still being used for dependabots and quick fix cleanups

Overview

MRjs is a mixed-reality-first, WebXR user interface library meant to bootstrap spatial web development. It implements much of the foundational work so that developers can spend less time on the basics and more time on their app.

Designed to be extensible, MRjs provides a familiar interface via THREE.js, the Custom Elements API, Rapier.js, and our own built-in ECS (Entity Component System) setup.

[ECS - what is it?] - [ECS - how we use it] - [MRjs - Creating custom entities, components, && systems]

Getting started

Via HTML Script Tag:

For the latest stable version:

<head>
    …
    <script src="https://cdn.jsdelivr.net/npm/mrjs@latest/dist/mr.js"></script>
    …
</head>

For the daily build. No guarantee of stability:

<head>
    …
    <script src="https://cdn.jsdelivr.net/gh/volumetrics-io/mrjs/dist/mr.js"></script>
    …
</head>

Via NPM:

npm i mrjs

Via Github Source:

  1. Clone this repository (github's how-to-clone)
git clone the.cloning.url

If you are planning to contribute to this repo instead of just using is as a source you will need its submodules for proper samples and testing:

git clone --recurse-submodules the.cloning.url

If you've already cloned the repo the normal way (git clone the.cloning.url) you can update for the submodule as follows:

git submodule update --init --recursive
  1. Next, setup your node environment (make sure node is setup properly):
npm install
  1. and now build:
npm run build

Running the samples and tests

Note for in-headset testing / running of samples: https requirement

Samples

This only works if you're setting this up via github source; otherwise, go to examples.mrjs.io to try out the samples there.

You are able to try the samples locally and in headset by running the following:

npm run server

We serve some of our examples and testing files from submodules, if you are planning to contribute, there will be times when the submodule for your work might be out of date. Since we run scripts along with our submodule update. Run the following to stay up to date:

npm run update-submodules

Tests

npm run test

Updating Documentation:

Check docs.mrjs.io or our repository for the full documentation.

For local documentation or to check the local output when writing your own PR to see how it will update, run the below command.

Note: the order of creation of docs depends on your operating system, so if when you run this and the order looks different, do not worry - in the repository itself our action will handle that for you and default to use the right version for these automatically generated docs.

npm run docs

HTTPS Requirement

To test in headset, WebXR requires that your project be served using an HTTPS server. If you're using Webpack, you can achieve this by utilizing the Dev Server webpack plugin with https: true.

Here are some additional solutions:

Both options require you generate an SSL certificate and a key via OpenSSL:

openssl req -x509 -newkey rsa:2048 -keyout key.pem -out cert.pem -days 365