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

spoticly

v1.0.1

Published

Browse, control and listen to spotify from the command line

Downloads

15

Readme

Build Status NPM

SPOTICLY

Browse, control and listen to spotify from the command line (mac os only for now, windows support might come later)

Why would I need this?

I am on dual screen at work and I was fed up with switching from command line/ editor to spotify all the time, also I was not happy with already existing CLI solutions, I made this CLI utility to spare me some time. Context switching aside, it's actually even faster than using the GUI.

alt text

INSTALL AND SETUP

INSTALL

npm install -g spoticly

FIRST USE

Get your credentials (spotify client ID and secret token) by creating an app at this address: https://developer.spotify.com/my-applications It's fast and easy, put whatever in the form.

Spoticly will ask for it the first time you use it.

Usage

Listen to an artist

By default, you will get to choose among an artist's albums using this command:

    spoticly artist radiohead

Use the '--choose' option or just 'ch' if you need to choose among several artists, it's useful if several artists have similar names, ex:

    spoticly artist ch radiohead
    spoticly artist --choose radiohead

    (will give you a list of artists to choose from)

Use the 'all' option if you want to select not only albums but also singles and compilations (without this option, you will get to choose among albums only)

    spoticly artist all nirvana

Use the '--top-tracks' option, or just 'tt' if you just want to listen to the artist's top tracks, ex:

    spoticly artist tt qotsa

    (will play Queen of the Stone Age's top tracks)

Listen to a playlist

Use this command to choose a playlist or its shortcut 'pl':

    spoticly playlist "chanson française"    
    spoticly pl "chanson française"

Listen to a specific track

You can search for a specific track using the "track" command, or 'tr'

    spoticly track "song for the dead"
    spoticly tr "song for the dead"

Navigate inside an album or a playlist

Use 'track-list' or 'tr' to display and navigate inside an album or playlist

    spoticly --track-list
    spoticly tr

CONTROLS AND OTHER COMMANDS

Use the --help command to get a detailed list of all features (play/pause/next/previous etc...)

    spoticly --help

TODO

Improve tests, get a user's playlists, paginate long playlists, add an about command, notify updates...