
Security News
Nx npm Packages Compromised in Supply Chain Attack Weaponizing AI CLI Tools
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.
Add the gem to your Gemfile
gem "echonest_resource"
Obtain an API key from echonest and create a file called 'echonest.yml' in your /config directory
api_key = "YOUR_API_KEY"
Right now the gem supports two Echonest resources: Artist and Song
class Artist < ActiveResource::Base
include EchonestResource::Base
echonest_resource :artist
end
class Artist < ActiveResource::Base
include EchonestResource::Base
echonest_resource :song
end
Now you can search for an artist:
artists = Artist.search("Macklemore")
The search method also accepts an options hash where you can specify things like: results, bucket, sort
artists = Artist.search("Macklemore", {:results => 20, :sort => "hotttnesss-desc"})
You can search for songs for an artist name
songs = Song.find_by_artist_name("Macklemore")
The find_by_artist_name method also accepts an options hash
songs = Song.find_by_artist_name("Macklemore", :sort => "song_hotttnesss")
You can retrieve additional information by specifying a bucket like so:
songs = Song.find_by_artist_name("Macklemore", :bucket => "audio_summary", :results => 20)
All the attributes on the songs use the same name as the Echonest API (http://developer.echonest.com/docs/v4)
FAQs
Unknown package
We found that echonest_resource 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.
Security News
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.
Security News
CISA’s 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.
Security News
A clarification on our recent research investigating 60 malicious Ruby gems.