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

reachy-mini

v0.3.1

Published

Reachy Mini Wasm API!

Readme

Reachy Mini

Browser-based control for Reachy Mini robot via WebAssembly.

npm install reachy-mini

Complete Example

import init, {
  // Connection
  connect,
  disconnect,
  is_connected,

  // Head pose (Cartesian)
  get_head_pose,
  set_head_pose,

  // Joints (degrees)
  get_head_joints,
  set_head_joints,
  get_all_joints,
  set_all_joints,

  // Antennas
  get_antennas,
  set_antennas,
  get_left_antenna,
  set_left_antenna,
  get_right_antenna,
  set_right_antenna,

  // Torque
  enable_torque,
  disable_torque,
  enable_head_torque,
  disable_head_torque,
  enable_antenna_torque,
  disable_antenna_torque,
  enable_left_antenna_torque,
  disable_left_antenna_torque,
  enable_right_antenna_torque,
  disable_right_antenna_torque,

  // Diagnostics
  get_motor_temperature,
  get_motor_load,
  get_all_motor_temperatures,
  get_all_motor_loads,
  get_head_motor_temperatures,
  get_head_motor_loads,
  get_antenna_temperatures,
  get_antenna_loads,
  get_left_antenna_temperature,
  get_right_antenna_temperature,
  get_left_antenna_load,
  get_right_antenna_load,

  // Reboot
  reboot_motor,
  reboot_all_motors,
  reboot_head_motors,
  reboot_antennas,
  reboot_left_antenna,
  reboot_right_antenna,

  // Kinematics (offline)
  forward_kinematics,
  inverse_kinematics,

  // Recording
  start_fk_stream,
  replay_recording,
  stop,
  clear_recording,
  get_recording_length,
} from "https://unpkg.com/[email protected]";

await init();
await connect(); // WARNING: Connect should be in block with user motion like a click
await enable_torque();

// Head pose: x, y, z (mm), roll, pitch, yaw (degrees)
await set_head_pose(0, 0, 50, 0, 15, 0);
const pose = await get_head_pose();

// Joints (degrees)
await set_head_joints([0, 0, 0, 0, 0, 0]);
await set_all_joints([0, 0, 0, 0, 0, 0, 45, -45]);

// Antennas
await set_antennas(45, -45);
await set_left_antenna(30);
await set_right_antenna(-30);

// Diagnostics
const temps = await get_all_motor_temperatures();
const loads = await get_all_motor_loads();

// Offline kinematics
const joints = inverse_kinematics([0, 0, 50, 0, 15, 0]);
const xyz = forward_kinematics([0, 0, 0, 0, 0, 0]);

// Recording
await start_fk_stream(3000); // record 3s
await replay_recording();

await disable_torque();
await disconnect();

Motors

  • 11-16: Head (parallel kinematics)
  • 17: Left antenna
  • 18: Right antenna

Hardware

  • Reachy Mini Lite ( Wireless supported soon ) with 8× Dynamixel XL330
  • USB serial adapter (1,000,000 baud)
  • Or WebSocket at ws://localhost:8000/api/move/ws/raw/write

License

MIT