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

streamjockey

v0.1.0

Published

Media streaming services orchestration for OSX

Readme

stream jockey

Stream Jockey provides you a way to control media streaming services (like soundcloud, mixcloud, youtube, etc) in browser. Right in the existing instance of your browser where you read this message.

Requirements

  • Os: Mac OS
  • Browser: Chrome or Safari
  • If node version >= 4 : XCode 7

Installation

npm install -g streamjockey

or

git clone [email protected]:nogizhopaboroda/streamjockey.git
cd streamjockey
npm install

Then run the application

streamjockey

or in case you've chosen variant with cloning repository

node index.js

then go to the demo page http://nogizhopaboroda.github.io/streamjockey#demo

to make sure that application works well

Usage


streamjockey -h

      Usage: streamjockey [rcfile]
      Options:
        -h, --help            output usage information
        -v, --version         output the version number

Run as a daemon:


streamjockey > /dev/null &; disown

RC file


RC file should be a valid nodejs module and consist of key-value pairs

where key is url matcher and value contains at least this 3 functions: play, pause, is_playing

optionally there might be functions prev and next


after installation application saves default RC file here: ~/.sjrc.js with snippets for page http://nogizhopaboroda.github.io/streamjockey#demo

check it out to get into


all the functions should be javascript snippets that can be executable on target page, e.g.:

document.querySelector('<play button selector>').click();
//or
window.AudioPlayerInstance.play();

you can test them right in browser console on target page

play: plays media

pause: stops/pauses media

is_playing: should return true if media is playing and false or anything else if not

next: next media source

prev: previous media source

Example:

module.exports = {
  "<url_matcher>": { //e.g.: "nogizhopaboroda.github.io/streamjockey"
    /* required functions */
    "play": function(){
      document.querySelector('<play button selector>').click();
      return 'play'; //return is optional
    },
    "pause": function(){
      document.querySelector('<pause button selector>').click();
      return 'pause';
    },
    "is_playing": function(){
      //return is required
      return document.querySelector('<play/pause button selector>').classList.contains('playing');
    },
    /* optional functions */
    "next": function(){
      document.querySelector('<next button selector>').click();
    },
    "prev": function(){
      document.querySelector('<prev button selector>').click();
    },
  }
}

As long as RC file is node module, you can require one module from another, e.g.:

// ~/.sjrc.js
module.exports = require('./.dotfiles/sjrc.js');

There might be more than one target sites. Streamjockey handles it well


Just check out the demo if you still didn't do so. It can tell much more than text here

How it works

Application uses native binding for mediakeys interception (https://github.com/tcr/mediakeys) and executes js code in browser using applescript. That's why there is no Firefox support - it's not scriptable.

Bugs/Issues/Feature requests

Create new issue here