2.0.0 • Published 8 months ago

dcent-beats v2.0.0

Weekly downloads
-
License
Apache-2.0
Repository
gitlab
Last release
8 months ago

Dcent Beats

Decentralised music using the Hypercore protocol.

Dcent Beats creates a database on top of hyperbeats.

Its main responsibilities are:

  • Link to the hyperbeats
  • Ensure all referenced hypercores are indexed to be rehosted
  • Manage an index of music metadata

Install

npm i dcent-beats

Usage

See example.js

API

const dBeats = new DcentBeats(bee)

Create a new Dcent Beats instance, based on the passed-in Hyperbee.

const metaddata = await dBeats.getMetadata()

Get the metadata corresponding to this Dcent Beats song.

The metadata is an object:

{
  year, // Year of publishing
  title, // Song title
  artist, // Song artist
  durationSec, // Song duration in seconds
  version // internal version info ({ major, minor })
}

const beatsKey = await getBeatsKey()

Get the Hyper Beats key of this song (as buffer).

2.0.0

8 months ago

1.1.0

9 months ago

1.0.0

1 year ago

0.0.1-alpha.2

1 year ago

0.0.1-alpha.3

1 year ago

0.0.1-alpha.1

2 years ago

0.0.1-alpha.0

2 years ago