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

bohemian

v0.1.0

Published

A command-line interface for playing music from Napster

Downloads

5

Readme

Bohemian

Bohemian is a command-line interface for playing music from Napster (previously Rhapsody). It allows you to play tracks on your local machine without needing Napster open in your web browser.

NOTE: To use this, you must already have a paid Napster plan with full/unlimited access (currently known as the "premier" plan). This project does not allow you to do anything without a subscription plan (free trial should work).

It works by following the requests normally made by the Napster web client, fetching tracks with RTMPDump and sending the output to MPlayer.

At the moment, Bohemian is mostly a "proof of concept" as it only implements a basic interface to search for and play a single song at a time. In the future, it may evolve into a more complete music player.

Requirements

Installation

1. Install the prerequisites:

For Mac OS X (with Homebrew):

  • brew install node mplayer rtmpdump

For Ubuntu/Debian Linux:

  • Install node.js (>= 4.x) - If you install the default node.js package provided by your distro, it's probably too old, so follow the directions here for a newer version.
  • apt-get install mplayer rtmpdump

2. Install Bohemian:

npm install -g bohemian

To install as a library:

  • npm install bohemian --save

Usage

Once installed, run bohemian --help for some basic usage info.

TODO

  • Add tests and better error-handling
  • Implement albums, playlists, radio, etc. in interactive mode
  • Add more options to the CLI

FAQ

Why not just use the official Napster API?

The official API does not allow for actually playing music. Napster does provide SDKs for Android, iOS, and the web, but they're basically just wrappers for Napster's own players.

There's currently no other way (that I'm aware of) to do everything from the command-line.

Is this... allowed?

Technically the web client in bohemian consumes the public resources available on the Napster website just like any other web browser. This project does not include any proprietary or secret information (API keys, decryption, etc). If any portion would be subject to scrutiny for "reverse engineering" proprietary/protected content, it would be RTMPDump - not this project.

That said, you're on your own if you decide to use this :)

License

MIT license. See the LICENSE file for more info.