Jerry Picker is a tool for combing through and playing Grateful Dead tracks hosted on Archive.org. A handful of other artists are supported too, and you can add your own.
$ php -S 0.0.0.0:8080 # requires php 5+
Then open a browser to http://localhost:8080
and you'll see a rough
approximation of a Spotify player.
You can add support for new artists (or more tracks for existing artists) by running the seed script. To add "Tedeschi Trucks Band" for example, you can just run:
$ php lib/seed "Tedeschi Trucks Band"
And it'll import track data and store them in assets/data/tedeschi-trucks-band.json
By default, it'll pull the information for up to 1000 shows, which for most bands exceeds the show count available on Archive.org anyway. But for the Grateful Dead, you might need to raise that limit with and optional second parameter:
$ php lib/seed "Tedeschi Trucks Band" 2000
Once this is done, you can start the server (see 'Running Locally' above) and just visit:
http://localhost:8080/tedeschi-trucks-band
The server basically just scans the assets/data
directory and makes all band data
available as a subdirectory with the "slugified" version of the band's name.
You can build a static version of the site which doesn't require PHP (which is how it's hosted on Github Pages).
For that, just run: php index.php build
That will place a static/html version of the site in the build/
directory with
the timestamp of the build in its name.
The project uses two things that I think are pretty cool:
-
index.php
: index.php is a script/single-file framework for quickly building sites that can be served dynamically (eg, via a webserver like Apache) or build to static HTML. Yes, there are many static site generators out there, but this one is my own and I like it. It's somewhat like a single-file CodeIgniter without any data layer ability built in. It supports plugins ("bottlenecks") too. -
kucene
: Kenny-Lucene is a javascript search algorithm for efficiently searching through thousands of tracks. Complete with aStandardAnalyzer
, it's a reverse-index based full text search algorithm based on the Java Lucene project, which I worked with a while back. You'll find that in angular.js service form inassets/app.js
- Added 5 years' worth the new tracks from Archive.org, which includes an absurd number of Grateful Dead Tracks
- Pushed the Slightly Stoopid, Jack Johnson, and Phish datasets to production.
- Added an English word stemmer for better matches on tracks names (eg, a search for "vision of johanna" should match "visions of johanna")
- Filtered English stop words out of searches
- Realized I like this hack a lot more than I remember
- Use newer / improved HTML audio player
Special thanks:
- Porter word stemmer: https://github.com/kristopolous/Porter-Stemmer
- Audio player: https://github.com/greghub/green-audio-player
Wrote most of it.