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

robotics-dev

v1.0.38

Published

Robotics.dev P2P SDK client for robot control

Downloads

85

Readme

ROBOTICS.DEV App Builder

Run ROS2 AI P2P robotics apps anywhere!

This Robotics.dev NodeJS SDK automatically connects to Robotics.dev and uses peer-to-peer data channels to send and receive ROS2 messages between robots and cloud, edge, and developer machines as well as send twist movement commands and text to speak on the robot.

npm install robotics-dev

Here's an example of basic robotics.dev P2P app using this SDK.

//import robotics from 'robotics-dev';
const robotics = require('robotics-dev');

// Define movement commands
const moveForward = {
    linear: {x: 0.2, y: 0.0, z: 0.0},
    angular: {x: 0.0, y: 0.0, z: 0.0}
};
const turnLeft = {
    linear: {x: 0.0, y: 0.0, z: 0.0},
    angular: {x: 0.0, y: 0.0, z: 0.2}
};
const turnRight = {
    linear: {x: 0.0, y: 0.0, z: 0.0},
    angular: {x: 0.0, y: 0.0, z: -0.2}
};
const stop = {
    linear: {x: 0.0, y: 0.0, z: 0.0},
    angular: {x: 0.0, y: 0.0, z: 0.0}
};

var robotId = 'eeeaa722-...-9a53-c945a5822b60';

// Connect to robotics.dev
robotics.connect({
    server: 'ws://192.168.0.47:3001',
    robot: robotId,
    token: '5a66b323-...-9169-77a95014f339'
}, (rosMessage) => {

    // rosMessage is already parsed by the SDK
    if (rosMessage.topic === '/camera2d') {
        console.log("Base64 image: ", rosMessage.data.data);
    }    

    if(oneTime){
        oneTime = false;
        robotics.speak('eeeaa722-b7b0-4799-9a53-c945a5822b60', 'this is a test')

        console.log('Moving robot forward at 20% speed...');
        robotics.twist('eeeaa722-b7b0-4799-9a53-c945a5822b60', forwardTwist);

        // Stop after 5 seconds
        setTimeout(() => {
            console.log('Stopping robot...');
            robotics.twist('eeeaa722-b7b0-4799-9a53-c945a5822b60', stopTwist);
        }, 5000);
    }
});

See examples directory for demos.