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 🙏

© 2024 – Pkg Stats / Ryan Hefner

nodebb-plugin-vs-twitch-monitor

v3.1.2

Published

Monitors specific channels and adds them to widget view

Downloads

3

Readme

NodeBB: Twitch Monitor

Monitors specific channels and adds them to widget view Version Dependencies bitHound Score Code Climate

Notes

  • At Server start, some time is needed to fetch enough data for stream statuses
  • Highly recommended to limit concurrent streams in widget view, by default - 3

Look

ACP

Admin Panel View

Widget

Horizontal Widget View

TODO

  • ACP: Show progress on channel add
  • ACP: Show animated update ticks
  • ACP: Update stream status in real time
  • Tests: add tests client and server
  • Core: use stream pagination
  • Core: smart list update - merge online/offline states, etc
  • Core: batch stream status updates
  • Core: edit update time
  • Widget: create cross-fade thumbnail update
  • Widget: use Twitch Video Player

vr version

The admin part of this plugin uses very outdated libraries. I need help updating it

I updated the plugin to use the new twitch API, and updated some libraries for the widget code. To make it work, you must the following code in the global footer of the page

<script>
    'use strict';

    $(document).ready(function () {
        var limit  = <limit>,
            layout = '<layout>';

        ns.TwitchMonitor.init(limit, layout, '.widget-twitch-monitor');
    });
</script>

limit is the number of streams you want to show, and layout is either 'horizontal' or 'vertical'. The widget settings you set won't work.

You must put your OAuth token on line 40 of plugin/twitch/api.js. You can use this site to generate a client id and oauth token (Access token).

Finally, now you must now enter the user ID instead of the username. You can query the https://api.twitch.tv/helix/search/channels?query= endpoint with your client-id and Authorization headers (You can use postman or curl), as per the Twitch api docs.

Notes for people who want to help

To build the acp and widget javascript files, you must use browserify and webpack, respectively. After you compile the acp, you must move the bootbox definitions on line 500 of public/js/acp.js into the prompForChannel function, and do the same thing with the ones on line 583 into deleteItem, or else you won't be able to add or delete channels.

TODOS:

  • Critical: Update the acp page to correctly use bootbox and to use newer module versions.
  • Put the initialization script into the template so the widget settings work.
  • The original TODOs