Code Monkey home page Code Monkey logo

album-art-webcomponent's Introduction

Album art WebComponent

Instead of having to know all different APIs for Artist and Album providers what about a webcomponent that does it for you?

<!-- artist art -->
<album-art artist="the gathering"></album-art>
<!-- album art -->
<album-art artist="the gathering" album="home"></album-art>

Is all you need to fetch and display artist art for the awesome band the gathering. You can easily provide the width and height for the art by setting them in CSS

album-art {
  width: 200px;
  height: 200px;
}

Yes it is that easy.

Develop

npm run start

for a development build and

npm run build

to build a new distribution build.

API keys

Add the following to your local .env file in order to use last.fm and fanart

LASTFM_APIKEY=[your key]
LASTFM_SECRET=[your secret]
FANART_APIKEY=[your key]

### Add a new provider

TODO: the idea is that we, the community, can add new art providers which will be discovered during the build process and all of them will be used till a proper image is found. For now though, surprise me with a pull request

album-art-webcomponent's People

Contributors

lucienimmink avatar renovate-bot avatar renovate[bot] avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

album-art-webcomponent's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Warning

These dependencies are deprecated:

Datasource Name Replacement PR?
npm @babel/plugin-proposal-class-properties Unavailable
npm rollup-plugin-babel Available
npm rollup-plugin-node-resolve Available
npm rollup-plugin-terser Available

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

npm
package.json
  • dotenv ^16.0.1
  • idb-keyval ^6.2.0
  • lit ^2.2.6
  • rollup-plugin-dotenv ^0.4.0
  • @babel/core ^7.18.5
  • @babel/plugin-proposal-class-properties ^7.17.12
  • @babel/plugin-proposal-decorators ^7.18.2
  • @custom-elements-manifest/analyzer ^0.6.3
  • @webcomponents/webcomponentsjs ^2.5.0
  • rollup ^3.0.0
  • rollup-plugin-babel ^4.4.0
  • rollup-plugin-node-resolve ^5.2.0
  • rollup-plugin-terser ^7.0.0
  • serve ^14.0.0
  • tslib ^2.2.0
  • typescript ^5.0.0

  • Check this box to trigger a request for Renovate to run again on this repository

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.