All Projects → aknorw → discojs

aknorw / discojs

Licence: MIT license
Easiest way to use the Discogs API in Javascript/Typescript 🎵

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to discojs

discogs-cli
View and search for artists, labels and releases in the Discogs.com library, from the command line.
Stars: ✭ 31 (-41.51%)
Mutual labels:  discogs
UserCSS
Customizable stylesheets
Stars: ✭ 55 (+3.77%)
Mutual labels:  discogs
discogger
interface to the Discogs API
Stars: ✭ 23 (-56.6%)
Mutual labels:  discogs
muffon
Music streaming browser
Stars: ✭ 491 (+826.42%)
Mutual labels:  discogs
deepcurator
A convolutional neural network trained to recognize good* electronic music
Stars: ✭ 38 (-28.3%)
Mutual labels:  discogs
discogstagger
Console based audio-file metadata tagger that uses the Discogs.com API v2 (JSON based). Relies on the Mutagen and discogs-client libraries. Currently supports FLAC and MP3 file types.
Stars: ✭ 65 (+22.64%)
Mutual labels:  discogs
vinyl-shelf-finder
app that manages a Discogs.com user records collection
Stars: ✭ 41 (-22.64%)
Mutual labels:  discogs

Discojs

Easiest way to use the Discogs API in Javascript - now with Typescript support! 🎵

CircleCI Coverage Status

Installation

yarn add discojs

Usage example

import Discojs from 'discojs'

const client = new Discojs({
  userToken: process.env.USER_TOKEN,
})

client
  .searchArtist('Jacob Desvarieux')
  .then(data => doSomethingWith(data))

API Reference

v2

Documentation for [email protected] is available on GitHub Pages;

v1

Documentation for [email protected] is available in the wiki.

Tests

As several methods need authentication, you'll need 2 environment variables: DGS_USERNAME and USER_TOKEN.

Create a .env file at the root of the directory, and add the following lines:

DGS_USERNAME=0ctocat
USER_TOKEN=7h1515myu53r70k3n

⚠️ Use a test account as public information will be edited.

As stated by Discogs API, some methods need a seller account. As I do not have one, I could not test them (which explains the coverage).

npm run test

When running tests, go grab a cup of coffee as this may be long because of Discogs API rate limiting.

Credits

Inspired by disconnect from @bartve

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].