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

node-streamelements

v0.1.3

Published

An unofficial wrapper for the StreamElements API.

Readme

node-streamelements

An unofficial wrapper for the StreamElements API.

Official StreamElements API Documentation

Install

Install the node-streamelements package from the NPM repository, using --save to update your package.json:

npm install node-streamelements --save

API Reference

Some calls require few, specific options and are required method arguments. More complex calls, such as create or update operations require more detailed options. Reference the official documentation for type requirements and object structure.

Usage

Import the package, create a new instance using your Account ID and JWT Token (found in your account profile), and call methods which return promises.

const StreamElements = require('node-streamelements');

const myInstance = new StreamElements({
  token: 'YourJWTToken',
  accountId: 'YourAccountID'
});

// Get current song in queue.
myInstance
  .getCurrentSong()
  .then((response) => {
    console.log(`Current song is ${response.title}.`);
  })
  .catch((error) => {
    console.log(error);
  });

Using Unimplemented Endpoints

In the event the API sees a non-major version bump which introduces new functionality, you may call makeRequest() directly until a new node-streamelements package version is available.

Updating Third-party Channels

Even though your current instance may be tied to a specific channel, you may optionally override the channel being requested upon by passing its ID into methods. For example:

myInstance
  .getCurrentSong('CHANNELID')
  .then((response) => {
    console.log(`Current song is ${response.title}.`);
  })
  .catch((error) => {
    console.log(error);
  });

NOTE: In order for this to work, you must be given Manager permissions for the target channel.

Contributing

To contribute to the package, please follow the forking model:

  1. Fork the repository to your own account.
  2. Create a branch off master.
  3. Apply your changes and commit to your branch.
  4. Open a pull request against the central develop branch.

Your pull request will be reviewed by Maintainers, feedback will be provided if necessary, and then merged. Please, do not bump the package version in your pull request.

Disclaimer

This package was created to help reduce the amount of code manually written for each project wishing to work with the StreamElements API. In no way is this project officially endorsed, maintained, or approved by StreamElements.