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

rainmaker-client

v0.0.8

Published

A NodeJs Package for interfacing Espressif Rainmaker IoT

Readme

rainmaker-client

A NodeJs Package for interfacing Espressif Rainmaker IoT.

Install

npm install rainmaker-client

Usage

import RainMaker from "rainmaker-client";
const client = new RainMaker("username", "password");

const SUCCESS = 200;

async function isAuth() {
  const { status, result } = await client.authenticate();
  if (status == SUCCESS) {
    console.log(result);
  } else {
    console.log(result);
  }
}
isAuth();

Authenticate

authenticate method is used to get accesstoken for Authnticated APIs. Pass true as param to extend session using refreshtoken instead of password.

Stored refreshtoken can be retrieved by :

const token = client.refreshtoken;

User Nodes

getUserNodes returns a list of nodes associated to the user. Pass argument true to get details information for the nodes.

User Group List or Group Details

Get User Group

getUserGroupDetails returns a list of groups associated to the user or details about specific group.

It accepts three arguments

  1. nodeList (default false): Pass true to get list of nodes in the group.
  2. groupID: pass Group ID to get specific details of a particular group.
  3. nodeDetails (default false): to get node details associated to that group. Must provide a group ID.

Add User Group

createUserGroup creates a new user group with the option of adding nodes and description.

It accepts three arguments

  1. groupName: Name of the group.
  2. nodeList (optional): Array of Node IDs.
  3. description (optional): Add description to user group.

Delete User Group

deleteUserGroup deletes a user group.

It accepts only one argument

  1. groupID: User Group ID to deletye.

Time Series Data

getTimeSeriesData returns time series data for a specific node. Currently it only supports aggregate = raw.

Demo

This package is being developed to create a webApp dashboard for ESP Rainmaker IoT solution. Checkout the link below -

Quick links