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

genius-api-client

v2.0.4

Published

🎧 JavaScript Client for accessing Genius.com api

Downloads

22

Readme

Genius API Client

🎧 JavaScript Client for accessing the Genius.com api

Documentation

Genius.com API Documentation

Supported Resources

Search

getArtistIdDetails('Tupac')

Request: GET /search
Response:
 id: '59',
  songs: [
    {
      song_id: 320,
      full_song_title: "Hit 'Em Up (Ft. Outlawz)",
      song_title: 'Hit ’Em Up',
      song_art_image_thumbnail: 'https://images.genius.com/a6d7f93a83ec4f3dde28a749c01a6465.300x300x1.jpg',
      song_art_image_url: 'https://images.genius.com/a6d7f93a83ec4f3dde28a749c01a6465.480x480x1.jpg'
    },
    ...
  ]

Artists

getArtistDetails('59')

Request: GET /artists/:id
Response:
{
  bio: 'Tupac Amaru Shakur (June 16, 1971 – September 13, 1996), known by his stage names 2Pac and Makaveli, was an actor and a highly influential rapper who is considered by many to be the greatest of all-time due to the revolutionary spirit and thug passion he mixed into his music. During his music career, he made appearances in movies such as his acclaimed debut in Juice (1992), Poetic Justice (1993), and Above the Rim (1994).\n' +
  ...
  alias: [
    'Pac',
    'MC New York',
    'Makaveli',
    'Tupac Shakur',
    'Makaveli the Don',
    'Lesane P. Crooks',
    '2Pac Shakur',
    'Tupac Amaru Shakur',
    'Lesane Parish Crooks',
    'Tupac'
  ],
  social_media: { facebook: 'tupacshakur', instagram: '2pac', twitter: '2pac' }

Songs

getSongDetails('320')

Request: GET /songs/:id
Response:
{
  title: "Hit 'Em Up by 2Pac (Ft. Outlawz)",
  apple_id: '310908421',
  apple_player: 'https://genius.com/songs/320/apple_music_player',
  description: 'Arguably the most memorable diss track of the East Coast–West Coast rivalry; 2Pac and The Outlawz take aim at The Notorious B.I.G., Diddy, and Mobb Deep, with direct threats of violence.\n' +
  ...
,
  album: 'Greatest Hits'
}

Client Access Token

Generate access token from the Manage Clients Dashboard

Getting an Access Token

Soon to be supported Resources

annotations

referents

web pages

Not Planning to Support

account