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

overlaylive-device-library

v2.3.1

Published

Overlay.live device management library

Downloads

41

Readme

The Overlay.live Library

Overlay.live Platform

Overlay.live is a platform to send real-time data across multiple devices and display it as an overlay on a live broadcast stream. for more details about the platform, see the official Overlay.live website.

With the Overlay.live Library, you can connect to the Overlyay.live platform to send custom data from your own devices (physical or virtual).

Getting Started

Prerequisites

In order to use a custom device, you first need to create an account on the Overlay.live dashboard and create a manual device. See the dashboard documentation for more details on how to do it.

Installing

To use Overlay.live Library in your project, install it with npm :

npm install --save overlaylive-device-library

An example of how to use the library is provided in the examples folder. Here are the basics steps to setup your device :

Setup the manager :

var overlayliveDevice = require('overlaylive-device-library');
var config = require('device-config.js'); // Load the device configuration
var manager = new overlayliveDevice(config); // Setup the library

The device-config.js file must contain device configuration as shown below. This file can be renamed or moved somewhere else as long as it still contains this structure :

module.exports = {
  apiKey: 'YOUR_OVERLAYLIVE_API_KEY',
  ingest: 'ingest.epeakgears.com',
  deviceKey: 'YOUR_CUSTOM_DEVICE_NAME'
}

Describe the sensors you will use :

manager.declareSensor({
  'name': 'Temperature',
  'channel': 'temperature-channel'
});
manager.declareSensor({
  'name': 'Voltage',
  'channel': 'voltage-channel'
});

Start the manager and setup the sensors to publish data on the Overlay.live platform :

manager.start().then(function(){
  // Setup sensor watchs here
  setInterval(function() {
    // Custom code here to retreive the sensor value
    var temperature = getTemperature();

    // Publish the value to the Overlay.live platform
    manager.publish('temperature-channel', temperature);

  }, 500);
});

To wire a custom function to be called from somewhere else on your device, you have to declare a "command". Here is the syntax :

lib.declareCommand('command_name', function() {
  // Your device code goes here
  var computedVar = 'Hello';
  return computedVar;
});

In order to call this command remotely, you will have to call the procedure COMMAND with the given parameters :

  1. The command name
  2. The command parameters (can be anything depending on how you want to manage it in your function)

Here, we are calling the remote command say_hello with the parameter {name:'Overlay.live'}

// autobahn session
session.call('COMMAND', ['say_hello', {name:'Overlay.live'}])
.then(function(result) {
  // OK
}, function(err) {
  // Error
});

The result is processed as a promise returning an object with this structure :

{
  status: '', // OK if command was executed properly, KO if there was an execution error
  result: '', // The returned value of your command to be usd by the callee
  error: ''   // The error stacktrace if there was some error while running your code
}

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Authors

  • Alex Frêne - Initial work - Drakulo

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE.md file for details