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

@cwiz89/mujoco-wasm

v0.0.1

Published

Run MuJoCo simulations in browser

Downloads

6

Readme

MuJoCo-WASM

MuJoCo built with emscripten for use in JavaScript and WebAssembly. This includes MuJoCo 2.3.1 built as static library and a simple example application.

Usage

1. Install emscripten

2. Build MuJoCo-WASM application

mkdir build
cd build
emcmake cmake ..
make

JavaScript API

Model

| method | description | | ------------- | --------------------------- | | load_from_xml | Load model from xml string | | ptr | Get pointer to MuJoCo model | | val | Get MuJoCo model value | | names | Get names of model | | mesh_vertadr | Get mesh vertex address | | mesh_vertnum | Get mesh vertex number | | mesh_faceadr | Get mesh face address | | mesh_facenum | Get mesh face number | | body_parentid | Get body parent id | | body_geomnum | Get body geometry number | | body_geomadr | Get body geometry address | | geom_type | Get geometry type | | geom_bodyid | Get geometry body id | | geom_group | Get geometry group | | geom_contype | Get geometry contact type | | mesh_normal | Get mesh normal | | mesh_face | Get mesh face | | mesh_vert | Get mesh vertex | | name_meshadr | Get name mesh address | | geom_pos | Get geometry position | | geom_quat | Get geometry quaternion | | geom_size | Get geometry size | | geom_rgba | Get geometry rgba | | body_pos | Get body position | | body_quat | Get body quaternion |

State

| method | description | | ------ | --------------------------- | | ptr | Get pointer to MuJoCo state | | val | Get MuJoCo state value |

Simulation

| method | description | | ------ | -------------------- | | step | Step simulation | | state | Get simulation state | | model | Get simulation model | | xquat | Get quaternion | | xpos | Get position | | xmat | Get matrix |