Skip to content

Little lastfm widget to show your latest songs on your personal website.

License

Notifications You must be signed in to change notification settings

biancarosa/lastfm-last-played

Repository files navigation

build-api deploy-api codecov

Last.fm Last Played Songs

The Basics

How it works

You can send a request to the API URL:

curl -s https://lastfm-last-played.biancarosa.com.br/{{your-lasfm-username}}/latest-song | jq

The query string format can receive the value shields.io for you to generate your own Shields.io markdown badge.

Wanna use it?

Markdown

Last.FM Last Played Song

[![Last.FM Last Played Song](https://img.shields.io/endpoint?color=blueviolet&url=https://lastfm-last-played.biancarosa.com.br/{{your-lastfm-username}}/latest-song?format=shields.io)](https://github.com/biancarosa/lastfm-last-played)

JavaScript

There aren't any frontend packages written yet because I am not a very strong frontend developer, so pull-requests are welcome, but I've written an example using basic JavaScript here.

On my own website, it looks like this: Lastfm Last Played on my website

Code is here.

Like it?

Consider starring the repo, contributing to it and tweeting about it.

Running the app

Docker

Docker and Docker Compose make things easy!

docker-compose up
# or if you want to run detached
docker-compose up -d

Natively

The API

There is a comprehensive Makefile in the project that can be used.

# install dependencies
make
# runs the app
make run
# other commands
make lint
make test
make integration-test
make coverage

About

Little lastfm widget to show your latest songs on your personal website.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •