Live data from Hacker News

Show HN: Spotify for the Terminal Written in Rust

github.com

21–30 of 31 posts

Re: Show HN: Spotify for the Terminal Written in Rust

#21

Not Spotify, but for Pandora nothing beats pianobar[1]. I've been using it for years and it's just a delight. No bloated interface, simple and quick to use. 1: https://6xq.net/pianobar/ or https://github.com/PromyLOPh/pianobar

pianobar was quite receptive to my small patches. lovely software, definitely stretched the lifetime of pandora for me

Re: Show HN: Spotify for the Terminal Written in Rust

#23

Another interesting one is https://github.com/librespot-org/librespot This actually implements the reverse-engineered Spotify protocol and authenticates as a Spotify Connect device. To avoid Spotify being mad and potential legal problems, they implemented artificial limitations that block you from extracting the audio files unencrypted or using premium features on free accounts. A skilled Rustecean could probably dea…

This is very nice. I might use this.

By the way with puppeteer you can login and intercept the bearer auth token to masquerade as the web player.

Re: Show HN: Spotify for the Terminal Written in Rust

#24
post #12

Reminder that there is also CMUS[1] for those of us who prefer pointing to a library of MP3s. 1: https://cmus.github.io/

Now that you bring console music players to the discussion, I admit that I have never understood how to use ncmpc/ncmpcpp.

Pretend it’s like emacs or vim for music.

Also a shoutout to xmms2: https://en.wikipedia.org/wiki/XMMS2

Re: Show HN: Spotify for the Terminal Written in Rust

#25
post #4
post #2

This is awesome! I've been looking for an alternative to the bloated Electron mess that is Spotify's UI for a long time. It leaks memory like a sieve on Linux and is generally a pain to use. I'll try this out later.

You need to have the official Spotify app open in order to play songs

Or spotifyd, which provides the necessary shimmage to do the streaming.

Re: Show HN: Spotify for the Terminal Written in Rust

#26

Is this news? There’s already a Spotify client for Emacs.

Emacs is about the only cross-platform environment I can think of that makes Electron look efficient ;)

It's the perfect operating system. A shame it's missing a good text editor.

More seriously, though: the heaviest of my Emacs processes right now is at around 28k of resident memory, while Rambox (Electron wrapper around Gmail and GCal, among potentially other things) is at 395MB + 195MB (presumably for the Gmail and GCal tabs) + some other more negligible subprocesses, and Slack is at 265MB. Total virtual/mapped memory is much higher for all of those (Emacs is still the lowest, at 541MB for the biggest process, while Rambox's are around 1GB each and Slack's is at a "mere" 20.8GB).

Granted, my Emacs processes are doing a bit less than any of the Electron processes, but I still think you've got things the wrong way round :)

Re: Show HN: Spotify for the Terminal Written in Rust

#27

Not Spotify, but for Pandora nothing beats pianobar[1]. I've been using it for years and it's just a delight. No bloated interface, simple and quick to use. 1: https://6xq.net/pianobar/ or https://github.com/PromyLOPh/pianobar

Oh man, Pandora is still around? It was my favorite online radio for so long starting in 2007, but they made it increasingly difficult to access their service from Europe and they never did roll it out here. Ended up being too much effort. Still miss it though.

Re: Show HN: Spotify for the Terminal Written in Rust

#30
post #2

This is awesome! I've been looking for an alternative to the bloated Electron mess that is Spotify's UI for a long time. It leaks memory like a sieve on Linux and is generally a pain to use. I'll try this out later.

The Spotify client is indeed an ugly bloated mess but is it not based on Electron and never has been. It's using Chromium Embedded Framework (aka CEF): https://en.wikipedia.org/wiki/Chromium_Embedded_Framework
Post reply on HN