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

@espressif/rainmaker-base-sdk

v3.0.0

Published

Espressif's Rainmaker Base SDK enables seamless integration of applications with the ESP Rainmaker ecosystem.

Downloads

384

Readme

ESP Rainmaker Typescript Base SDK

The @espressif/rainmaker-base-sdk package provides a foundational SDK to help mobile app developers quickly integrate with the ESP Rainmaker ecosystem. It enables seamless provisioning, control, and management of devices.

Table of Contents

Overview

The @espressif/rainmaker-base-sdk package is designed to accelerate app development by providing a unified API for interacting with the ESP Rainmaker platform. With support for different communication transports, developers can seamlessly integrate features such as provisioning, device control, and discovery into their apps.

The SDK provides:

  • Native module support with adapter interfaces for iOS and Android.
  • Support for various transport modes (currently local and cloud).
  • A modular design with separate modules for user management, device management, and group management.

Key Features

  • [x] Provisioning and Discovery: Support for device provisioning and discovery via native modules with customizable adapter interfaces.
  • [x] Local and Cloud Communication: Control devices locally, with automatic fallback to cloud communication for updates and retrieval of the latest parameters.
  • [x] Cross-Platform Compatibility: Works with React Native and other cross-platform frameworks.
  • [x] Extensible Modules: Provides modular APIs for user, device, and group management.
  • [ ] Matter Protocol Support: Future-proof your app with Matter protocol support (planned).

Requirements

Before installing the @espressif/rainmaker-base-sdk package, ensure you meet the following prerequisites:

  • Node.js: Version 20.17.0 or higher is recommended.
  • Package Manager: Any one from npm, yarn, or pnpm installed.

Installation

Package Manager

To install the latest version of the @espressif/rainmaker-base-sdk package from the npm registry, you can use your preferred package manager:

Using npm:

npm install @espressif/rainmaker-base-sdk

Using Yarn:

yarn add @espressif/rainmaker-base-sdk

Using pnpm:

pnpm add @espressif/rainmaker-base-sdk

Local Installation

To build and install the package locally for development and testing:

  1. Clone the repository

  2. Check out the appropriate branch:

    git checkout main
  3. Ensure you are using Node.js v20.17.0 or higher. If you have nvm installed, you can run:

    nvm use

    If you don’t have nvm, please install Node.js v20.17.0 or a higher version manually.

  4. Install the required dependencies using Yarn:

    yarn install
  5. Build the package:

    yarn run build
  6. Create a tarball for testing locally:

    yarn pack
  7. Add the tarball to your project:

    yarn add <PATH_TO_PACK_TARBALL_FILE>

After installation, you can import and configure the SDK in your project as shown in the usage examples below.

Usage

User Login Usage Example

Below is a step-by-step guide to logging in a user using the @espressif/rainmaker-base-sdk SDK:

  1. Import the SDK

    Begin by importing the ESPRMBase class from the @espressif/rainmaker-base-sdk package.

    import { ESPRMBase } from "@espressif/rainmaker-base-sdk";
  2. Configure the SDK

    Use the configure method to initialize the SDK with the required base URL and API version.

    ESPRMBase.configure({
      baseUrl: "https://api.rainmaker.espressif.com",
      version: "v1",
    });
  3. Get an Instance of the Authentication Module

    Obtain an instance of the authentication module by calling getAuthInstance() on the ESPRMBase class.

    const authInstance = ESPRMBase.getAuthInstance();
  4. Attempt User Login

    Call the login method on the authentication instance, passing the username and password as arguments. Handle the response or any potential errors using a try-catch block.

    try {
      const resp = await authInstance.login("<USERNAME>", "<PASSWORD>");
      console.log(resp); // Log the response on successful login
    } catch (error) {
      console.log(error); // Handle and log any errors during login
    }
  5. Review the Login Response

    The login method returns a promise. On successful resolution, it provides the user's instance. Ensure you properly log or handle the response in your application.

Resources

License

This project is licensed under the Apache 2.0 license - see the LICENSE file for details.