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

twitchpackets

v1.3.2

Published

Use twitch to send packets between computers at a rate of 2 messages per second!

Downloads

7

Readme

Twitch as a Packet Distributor

Use twitch to send packets between computers at a rate of 2 messages per second!

NOTE: The accounts used must be mods, or otherwise you have to lower their messages per 30 seconds to 20 in the source code.
Even then you'll probably still be "shadow muted" if you're not a mod.

This library lets you do 3 things:

  • Create json credential files for your account.

    • You can use the web server locally to generate json credential files for each of your bots. These files contain all information necessary for the library to authenticate.
    • See the section create json credential files below.
  • Generate an authentication token using the json credential file information.

    • The information needed is your bot client ID, your bot secret key, and a refresh token.
    • This authentication token is used to log into the twitch redistribution channel in the next step.
  • Log in to the twitch redistribution channel using your twitch username, a host channel twitch username, and an authentication token.

    • You should use this method after the authentication token has been generated on a server using the json credential file and passed to the client.
    • See the section `` below.

    NOTE: You could potentially be banned on twitch for using this bot and using twitch as a packet distributor.

Install everything locally

Clone the repository.

Be sure you have yarn installed. https://yarnpkg.com/

cd TwitchPackets

yarn install

yarn start

Navigate to http://localhost/ and see that the website works.

Set up your application on twitch

  • Create a new application.
  • Name it whatever you want, it only shows when the user is authenticating.
  • Set the oauth redirect url to http://localhost in the application management settings.

Create a bot and download json credential files

  • To create a bot just create a new account on twitch.
  • Your bot apparently must be a mod in your channel if you're going to get near the 20 messages per 30 second limit, otherwise you'll be shadow muted by twitch for some arbitrary amount of time. I learned.
  • Once this account is created navigate back to http://localhost/ and follow the instructions on the website.
  • Once you've authenticated you can click "download credential file" and store this on your server. The information in this file can be used to refresh your auth token.

Twitch setup

  • Be sure you have Non-Mod Chat Delay turned off in your hosts moderation settings.
  • If you're using more than 1 account be sure Followers-only mode is turned off in your hosts moderation settings.
  • Depending on how you set up your bot system, be sure that Email Verification is turned off in your hosts moderation settings.