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 🙏

© 2025 – Pkg Stats / Ryan Hefner

tapic

v5.0.2

Published

A simple Twitch API and Chat library.

Readme

tapic.js

A Twitch API and Chat library in javascript.

This works in both Node.js and modern browsers. It makes accessing chat as easy as listening to events and it automatically polls the Twitch API at regular intervals, making lots of data accessible instantly that's at most a couple of seconds old, all without having to deal with HTTP requests, JSONP, IRC, Websockets, or anything else besides simple Javascript. At around 23KB minified, it's also light weight.

Tapic.js has coverage of most of the Twitch API, and makes accessing those last bits easy too.

View the complete reference docs here: https://skhmt.github.io/tapic/


Installation

Download tapic.js or tapic.min.js from the /dist/ folder and include in your webpage via: <script src="tapic.js"></script>.

See examples/web/index.html for examples on every part of tapic.js. Open up the console (F12 or ctrl-shift-i) to see the test outputs. You will need to put in an oauth token in index.html for it to work.

Alternatively, install via NPM: npm install tapic --only=production and include in your Node.js app via: let TAPIC = require('tapic');.


Building

Navigate to the tapic directory

npm install

npm run build


To Do (as of 5 March 2017)

  • Communities endpoint
  • Channel Feed endpoint
  • Option for message length limit check
  • Option for messages per 30 seconds limit check
  • (low priority) Transition whispers from irc/ws to pub/sub

Misc

This was written entirely in Javascript and has no runtime dependencies besides "ws" when used in node.

MIT License.