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

@inorbit/edge-sdk

v1.5.5

Published

InOrbit Edge SDK

Readme

InOrbit Edge SDK


The InOrbit Edge SDK allows Javascript programs to communicate with InOrbit platform on behalf of robots - providing robot data and handling robot actions. It's goal is to ease the integration between InOrbit and any other software that handles robot data.

This package can be installed using NPM as shown below:

npm i @inorbit/edge-sdk

The following example shows how this package can be used to send data belonging to various robots to InOrbit:

import { InOrbit } from '@inorbit/edge-sdk';

function sleep(ms) {
  return new Promise((resolve) => setTimeout(resolve, ms));
}

async function main() {
  const robots = ['robot0', 'robot1', 'robot2', 'robot3'];

  // Initialize the SDK reading the InOrbit API Key from the environment
  const sdk = new InOrbit({ apiKey: process.env.INORBIT_API_KEY });

  // Initialize the connection for each robot
  await Promise.all(robots.map((robotId) => sdk.connectRobot({ robotId })));

  while (true) {
    // Publish Key-Values with battery and status values
    await Promise.all(robots.map((robotId) => sdk.publishCustomDataKV(robotId, {
      battery: Math.random() * 100,
      status: Math.random() > 0.5 ? 'Mission' : 'Idle'
    })));

    // Publish the robots' poses
    await Promise.all(robots.map((robotId) => sdk.publishPose(robotId, {
      ts: new Date().getTime(),
      x: Math.random() * 20 + 20,
      y: Math.random() * 20 + 10,
      yaw: Math.random() * Math.PI * 2,
      frameId: 'map'
    })));

    await sleep(1000);
  }
}

main();

The code publishes fake data about four robots to InOrbit. The data is then available in InOrbit platform and can be queried via APIs or using InOrbit Control.

You can extend this example to actually integrate your existing applications, including fleet manager systems, with InOrbit.

Support for callbacks

The EdgeSDK provides a mechanism to register callback functions for handling InOrbit builtin commands.

const sdk = new InOrbit({
  apiKey: process.env.INORBIT_API_KEY,
});

// Initialize the robot connection
await sdk.connectRobot({ robotId, name: 'robot0' });

// Register a sample command callback function
sdk.registerCommandCallback((robotId, commandName, args, options) => {
    console.log('Received command! What should I do now?', {
      commandName, args, options, robotId
    });  
  }
);

Supported commands

  • navGoal
    • Arguments: x, y, theta
  • initialPose
    • Arguments: x, y, theta
  • customCommand
    • Arguments: scriptName, parametersArray

Run example files

Two example files are located at repository root, namely example.js and example-multi-robot.js.

npm run build
export INORBIT_API_KEY="APIKEY"
npm run example

Please note that they reference to the locally built @inorbit/edge-sdk package, but when installed through npm install @inorbit/edge-sdk it should be imported as:

import { InOrbit } from '@inorbit/edge-sdk';

Publishing this package to the NPM registry

Requirements

You must be a maintainer of the edge-sdk package or have an access token that allows you to publish. You can get a token from any of the maintainers.

If you use a token, remember to export the NPM_TOKEN environment variable (check Using private packages in a CI/CD workflow).

Publishing

Before publishing check that the version in package.json is the right one. Then run these commands to publish the package:

npm i
npm run-script build
npm publish