A decentralized music tracking and discovery platform built on AT Protocol 馃幍 rocksky.app
spotify atproto lastfm musicbrainz scrobbling listenbrainz
99
fork

Configure Feed

Select the types of activity you want to include in your feed.

at main 16 lines 425 B view raw
1import chalk from "chalk"; 2import { RockskyClient } from "client"; 3 4export async function artists(did, { skip, limit }) { 5 const client = new RockskyClient(); 6 const artists = await client.getArtists(did, { skip, limit }); 7 let rank = 1; 8 for (const artist of artists) { 9 console.log( 10 `${rank} ${chalk.magenta(artist.name)} ${chalk.yellow( 11 artist.play_count + " plays" 12 )}` 13 ); 14 rank++; 15 } 16}