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

musixmatch-richsync

v1.0.1

Published

description

Downloads

13

Readme

lyrics

MusixMatch lyrics getter.

How it works

Using an API used by the MusixMatch desktop app, it's possible to get lyrics, subtitles lyrics and richsync lyrics using a usertoken which is eternal and doesn't expire.

This library achieves this, but is against MusixMatch's API TOS because it's bypassing api auth, so please use at your own risk.

Install

NPM:

npm i musixmatch-lyrics

Yarn:

yarn add musixmatch-lyrics

Demo

import MusixMatch from 'musixmatch-lyrics';

const mm = new MusixMatch(['tokens here']);

mm.getLyrics('isrc')
	.then((lyrics) => {
		console.log(lyrics);
	})
	.catch((e) => {
		console.error(e);
	});

How to get a usertoken...

Super easy, just requires some knowledge of the Inspect menu in chrome.

  1. Head over to https://curators.musixmatch.com/missions and register an account.
  2. Once you're at the screen that reads Missions are only available to Curators, open the inspect menu.
  3. Head over to the Network tab at the top.
  4. Click Fetch/XHR
  5. Then, reload the page.
  6. Go back to the inspect window.
  7. Look for an entry along the lines of user.get?app_id=web-desktop-app-v1.0
  8. Open it up and look at the Request URL.
  9. Find the query parameter called &usertoken= and copy the value.
  10. Chuck that into the API, and you should be away!

It's recommended to use multiple usertokens to avoid rate limits, but 1 should be fine.

WTF is an ISRC?

ISRC stands for International Standard Recording Code, and every song has one. This is because MusixMatch supports ISRC and Spotify + Deezer export ISRC's with their APIs, just look for a key called ISRC and put it into the method in the library.

Help

Feel free to contact me on Discord Chezzer#6969