{"id":16235773,"url":"https://github.com/rayriffy/apple-music-github-profile","last_synced_at":"2025-03-16T12:32:35.672Z","repository":{"id":61244462,"uuid":"538495263","full_name":"rayriffy/apple-music-github-profile","owner":"rayriffy","description":"Show your recently played song on Apple Music directly to your GitHub profile","archived":false,"fork":false,"pushed_at":"2024-08-16T11:01:50.000Z","size":847,"stargazers_count":32,"open_issues_count":2,"forks_count":8,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-10-11T13:27:06.209Z","etag":null,"topics":["apple-music","github-profile","hacktoberfest","music","nextjs","react"],"latest_commit_sha":null,"homepage":"https://music-profile.rayriffy.com","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rayriffy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"rayriffy"}},"created_at":"2022-09-19T12:39:01.000Z","updated_at":"2024-09-21T04:34:50.000Z","dependencies_parsed_at":"2023-02-12T15:31:40.440Z","dependency_job_id":"724cf02d-314a-4603-9a1c-6dd6f7652a86","html_url":"https://github.com/rayriffy/apple-music-github-profile","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rayriffy%2Fapple-music-github-profile","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rayriffy%2Fapple-music-github-profile/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rayriffy%2Fapple-music-github-profile/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rayriffy%2Fapple-music-github-profile/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rayriffy","download_url":"https://codeload.github.com/rayriffy/apple-music-github-profile/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221663668,"owners_count":16859883,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["apple-music","github-profile","hacktoberfest","music","nextjs","react"],"created_at":"2024-10-10T13:27:32.667Z","updated_at":"2024-10-27T10:34:44.345Z","avatar_url":"https://github.com/rayriffy.png","language":"TypeScript","funding_links":["https://github.com/sponsors/rayriffy"],"categories":[],"sub_categories":[],"readme":"# Apple Music GitHub Profile\n\n![cover](./img/cover.jpg)\n\nShow your recently played song on Apple Music directly to your GitHub profile.\n\n## Connect\n\nClick `Connect with Apple Music` button below to sign in with Apple ID\n\n[\u003cimg alt=\"connect\" src=\"./img/connect.png\" height=\"42\"\u003e](https://music-profile.rayriffy.com)\n\n## Themes\n\n| Themes | Preview                                                      |\n| ------ | ------------------------------------------------------------ |\n| Light  | \u003cimg alt=\"light theme\" src=\"./img/light.svg\" height=\"350\" /\u003e |\n| Dark   | \u003cimg alt=\"dark theme\" src=\"./img/dark.svg\" height=\"350\" /\u003e   |\n\n## Development\n\nYou're going to have Apple Developer membership in order to gain access to Apple Music API. You're going to create following...\n\n1. **App ID**: with _\"Sign In with Apple\"_ capability enabled\n2. **Service ID**: with _\"Sign In with Apple\"_ enabled and configured\n3. **Media ID**: with _\"MusicKit\"_ enabled\n4. **Key**: with _\"Sign in with Apple\"_ and _\"Media Services\"_ enabled and configured\n\nAfter key downloaded, copy `.env.exmaple` into `.env` and change variable values appropriately.\n\n- `APPLE_KEY_ID`: ID of the downloaded key\n- `APPLE_PRIVATE_KEY`: Private key content of the downloaded key\n- `APPLE_TEAM_ID`: Team ID of your Apple Developer membership\n- `IRON_SECRET`: Random salt nessesary for encrypting authentication token\n- `DATABASE_URL`: (Optional) Connection URLs of Postgres database. Optional if you're developing locally with provided `docker-compose.yml`\n\nThen, get yourself [Docker] and spining up database server with following command.\n\n```\n# Create and start database\ndocker-compose up -d postgres\n\n# Stop and remove database when finished\ndocker-compose down\n```\n\nAnd now you're able to start development server.\n\n\u003e **Be aware!!!** Apple Services might not played well with HTTP protocol but it's very unlikely.\n\n```\npnpm dev\n```\n\n## Known Limitations\n\n1. Unable to show recently played song that brought directly from iTunes Store (API Limit)\n\n## FAQ\n\n#### Why do I have to sign in with Apple ID first?\n\nUnlike 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.\n\n#### Can I use this card anywhere else?\n\nYes\n\n#### I want more card styles\n\nYou can make your own theme card, and send a pull request to this repository. Please refer to [contribution guidelines]()\n\n#### My card is broken\n\nIt possible that connected Apple Music session is already expired. You can reconnect your card by complete linking process once again.\n\n## Credit\n\nThis project is heavily inspired by [spotify-github-profile](https://github.com/kittinan/spotify-github-profile) from [Kittinan](https://github.com/kittinan)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frayriffy%2Fapple-music-github-profile","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frayriffy%2Fapple-music-github-profile","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frayriffy%2Fapple-music-github-profile/lists"}