Giter Club home page Giter Club logo

apple-music-github-profile's Introduction

Apple Music GitHub Profile

cover

Show your recently played song on Apple Music directly to your GitHub profile.

Connect

Click Connect with Apple Music button below to sign in with Apple ID

connect

Themes

Theme Preview
Light light theme
Dark dark theme

Development

You're going to have Apple Developer membership in order to gain access to Apple Music API. You're going to create following...

  1. App ID: with "Sign In with Apple" capability enabled
  2. Service ID: with "Sign In with Apple" enabled and configured
  3. Media ID: with "MusicKit" enabled
  4. Key: with "Sign in with Apple" and "Media Services" enabled and configured

After key downloaded, copy .env.exmaple into .env and change variable values appropriately.

  • APPLE_KEY_ID: ID of the downloaded key
  • APPLE_PRIVATE_KEY: Private key content of the downloaded key
  • APPLE_TEAM_ID: Team ID of your Apple Developer membership
  • IRON_SECRET: Random salt nessesary for encrypting authentication token
  • DATABASE_URL: (Optional) Connection URLs of Postgres database. Optional if you're developing locally with provided docker-compose.yml

Then, get yourself [Docker] and spining up database server with following command.

# Create and start database
docker-compose up -d postgres

# Stop and remove database when finished
docker-compose down

And now you're able to start development server.

Be aware!!! Apple Services might not played well with HTTP protocol but it's very unlikely.

pnpm dev

Known Limitations

  1. Unable to show recently played song that brought directly from iTunes Store (API Limit)

FAQ

Why do I have to sign in with Apple ID first?

Unlike Spotfy API where you can identify user by uid, Apple Music API does not provide any possible way to identify users which will make impossible for one deployment to be used by many people.

Can I use this card anywhere else?

Yes

I want more card styles

You can make your own theme card, and send a pull request to this repository. Please refer to contribution guidelines

My card is broken

It possible that connected Apple Music session is already expired. You can reconnect your card by complete linking process once again.

Credit

This project is heavily inspired by spotify-github-profile from Kittinan

apple-music-github-profile's People

Contributors

rayriffy avatar codingforaddicts avatar adityapranavbhuvanapalli avatar

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.