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
npm i dcent-beats
See example.js
Create a new Dcent Beats instance, based on the passed-in Hyperbee.
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 })
}
Get the Hyper Beats key of this song (as buffer).