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

hubot-lastfm-notifier

v1.0.2

Published

A hubot script to post scrobbles of followed users within a chat application.

Downloads

4

Readme

Track users and share what's currently being played within your chat!

NPM

This integration was built using the free API key from Last.fm. It uses Node Cron to check followed users recent tracks in regular intervals and post back what people are listening to in your chat. Shout out to Last.fm for supporting a free tier API capable of allowing us to do this.

Some things to note, in recent years, more and more companies are closing up their open integrations and trying to keep users in a walled garden. To see how to scrobble from your favorite media sources, look here Track My Music | Last.fm.

Have question, comment, or feature request? Reach out to me on Twitter @kwandrews7 or open up an issue here in the GitHub repo.

Example Interaction:

Hubot >> 🎧 IsolatedSnail: Rehab - Bottles & Cans Hubot >> 🎧 IsolatedSnail: Usher - Burn

API

Managing Followed Last.fm Users

Commands are case insensitive. Any changes to the list of followed users from a channel that is not the notification channel will be announced in the notification channel so all users are kept up to date of changes.

  • hubot show lastfm users - List all users hubot is currently tracking on Last.fm.
  • hubot follow lastfm (username) - Add new user to the list of currently tracked Last.fm profiles.
  • hubot forget lastfm (username) - Remove a user from the list of currently tracked Last.fm profiles.

Installation

Run the following command

$ npm install hubot-lastfm-notifier --save

To enable the script, add a hubot-lastfm-notifier entry to the external-scripts.json file (you may need to create this file).

["hubot-lastfm-notifier"]

Release Notes

1.0.2

  • 1.0.1 tried to rework the scans to only pick up songs that were being actively listened to (i.e: Now Playing). This resulted in several clients no longer reporting listens as several clients wait until a song is mostly played and then just report the played song.
  • 1.0.2 will filter out the "now playing" track and interact only with completed listens. This should prevent the previous 1.0.0 bug where songs would flip around as the song changed. And it should also allow for clients that only report listens.

1.0.1

  • Only notifies on "now playing" to prevent bot from resending previous scrobbles when Last.fm's API is running behind and songs don't immediately show up in history after played.

1.0.0

  • Initial release.
  • Includes adding, removing, and listing followed Last.fm users.
  • Notification channel and alerting channels can be configured separately.
  • Supports custom cron schedule, defaults to once/minute.