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

@superpingu/coffeerobot

v0.1.0

Published

js framework to control robots

Readme

CoffeeRobot

This library provides high-level control over a Raspberry Pi-controlled robot, in javascript with nodeJS.

Install

just add coffeerobot to your node project using :

npm install @superpingu/coffeerobot

Usage

First create the robot with

var robot = require("@superpingu/coffeerobot")();

Sequence

To make complex action programming easier, it is possible to create sequences of instruction, that will executed automatically.

Here is a simple example :

// two AX12 are connected to the robot
robot.xAxis = robot.ax12(140);
robot.yAxis = robot.ax12(141);

var seq = robot.sequence()
     .xAxis.moveTo(-50)
     .yAxis.moveTo(90)
     .then() // wait until the actions are completed before going on
     .xAxis.moveTo(0)
     .then() // wait until the actions are completed before going on
     .yAxis.moveTo(-90);

// a callback can be called when the sequence has been fully executed
seq.done(function() { console.log("sequence finished !") });

// execute the sequence
seq.start();

robot.sequence()

Returns a new empty sequence. All functions in the robot object when this function is called will be available in the returned sequence.

sequence.then()

Wait for all the previous actions to be completed before going on. Returns the sequence (is chainable).

sequence.run()

Run a function in the sequence. If the function calls a callback after completing its task, its only argument should be named exactly 'callback'.

For example :

var seq = robot.sequence().run(function(callback) { /* ... */ })
    .then()
    /* ... */
    .start();

Returns the sequence (is chainable).

sequence.done(callback)

Set up a function called when the sequence is fully executed.
Returns the sequence (is chainable).

sequence.start(callback)

Start a sequence from the beginning. A sequence can be executed several times.
callback : a function to be called when the sequence is fully executed. Returns the sequence (is chainable).

sequence.stop()

Stop sequence execution.

sequence.create()

Returns a new sequence starting with the sequence it is created from.