Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
ampache-webamp
Advanced tools
Ampache web interface to make browsing, and playing your music a simple task
NOTE: This is still a work-in-progress!!
Only tested on Chrome, uses HTML5 Audio, probably won't work on any other browser
http://bahamas10.github.com/node-webamp/
First install Node, then install this program using NPM
npm install -g ampache-webamp
Create the necessary config file by running
webamp --init
This will create a json file at ~/.webamp/config.json
that will be used
to configure the local webserver settings, as well as store the ampache credentials.
Modify this file to reflect your setup, and then run webamp
to start the service.
$ webamp
[2012-11-04T02:33:50.165Z] Server running at http://localhost:8076/
[2012-11-04T02:33:50.193Z] You are running the latest version 0.0.22
[2012-11-04T02:33:50.336Z] Successfully Authenticated!
[2012-11-04T02:33:50.336Z] Populating cache
[2012-11-04T02:33:50.340Z] Loaded artists from local cache
[2012-11-04T02:33:50.362Z] Loaded albums from local cache
[2012-11-04T02:33:50.381Z] Calculating albums by artist
[2012-11-04T02:33:50.383Z] Finished albums by artist
[2012-11-04T02:33:50.615Z] Loaded songs from local cache
[2012-11-04T02:33:50.616Z] Calculating songs by album
[2012-11-04T02:33:50.625Z] Finished songs by album
[2012-11-04T02:33:50.625Z] All caches ready
[2012-11-04T02:33:51.084Z] 127.0.0.1 GET 200 /api/artists (15ms)
[2012-11-04T02:33:51.086Z] 127.0.0.1 GET 200 /api/conf (1ms)
[2012-11-04T02:33:51.088Z] 127.0.0.1 GET 200 /api/albums_by_artist (2ms)
After running webamp --init
you can view the configuration file at ~/.webamp/config.json
{
"ampache": {
"debug": false,
"ping": 600000,
"user": "user",
"pass": "pass",
"url": "http://example.com:1234/ampache/server/xml.server.php"
},
"web": {
"log": true,
"host": "localhost",
"port": 8076
},
"cache": {
"artwork": true
}
}
Most of the options are self explanatory, but for those that aren't
ampache.debug
: (Optional) Enable debug messages for Ampache moduleampache.ping
: (Optional) The time in milliseconds to between sending ping
requests to Ampache (default: 10 minutes)web.log
: (Optional) Log a line for every request to the local webservercache.artwork
: Cache album art locally (faster, but more bandwidth initially)The design goal is that a request to /
will return a nice looking web page, with all your music in
a nice, easy to navigate format. All interactions on that page will use Ajax to hit the server
at /api/...
to pull JSON with relevant information.
Return an array of all of the artists/albums/songs in the cache (which is populated when the program starts)
Return an object for the relevant song/album/artist by id in the cache
Same as above, but force the info to come from Ampache and not the cache
Return an object with an album or artist as the key, and a list of song or album ids (respectively)
An object representing the possible themes to use
An object representing non-private config variables
All issues are tracked in github
https://github.com/bahamas10/node-webamp/issues?state=open
Webamp relies on HTML5 audio (for now), install the codecs with this
sudo apt-get install chromium-codecs-ffmpeg-extra
To wipe all caches (including artwork) invoke webamp like this
webamp --clear
webamp --init
MIT License
FAQs
Ampache web interface
We found that ampache-webamp demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.