{"id":21883191,"url":"https://github.com/pinjasaur/musical-doodle","last_synced_at":"2026-04-10T17:17:52.186Z","repository":{"id":229553005,"uuid":"777033192","full_name":"Pinjasaur/musical-doodle","owner":"Pinjasaur","description":"Last.fm + Song.link integration","archived":false,"fork":false,"pushed_at":"2024-03-25T04:05:04.000Z","size":196,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-26T19:22:14.359Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Pinjasaur.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2024-03-25T03:55:00.000Z","updated_at":"2024-03-25T03:55:17.000Z","dependencies_parsed_at":"2024-03-25T05:22:13.572Z","dependency_job_id":null,"html_url":"https://github.com/Pinjasaur/musical-doodle","commit_stats":null,"previous_names":["pinjasaur/musical-doodle"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pinjasaur%2Fmusical-doodle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pinjasaur%2Fmusical-doodle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pinjasaur%2Fmusical-doodle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pinjasaur%2Fmusical-doodle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Pinjasaur","download_url":"https://codeload.github.com/Pinjasaur/musical-doodle/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244890114,"owners_count":20527036,"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":[],"created_at":"2024-11-28T09:39:41.741Z","updated_at":"2025-12-30T23:54:07.352Z","avatar_url":"https://github.com/Pinjasaur.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Last.fm \u0026 Song.link API Integration\n\nBasic idea: want to leverage to Last.fm API to pull what music I've been listening to for e.g. the past week and generate nice little song.link UI widgets. I've done a bit of research around this before and _I believe_ the (albeit somewhat hacky) steps are:\n\n-   [x] Create Last.fm account \u0026 API key (open question: is this API key supposed to be secret?)\n-   [x] Grab the JSON API endpoint results for the top tracks for the past week\n-   [x] Use the artist + track string to query the iTunes/Apple Music API for _their_ ID\n-   [x] Plop that into the song.link embed API\n\n\u003e Note: the weirdness in the middle steps are because Last.fm returns a [MusicBrainz ID (MBID)](https://musicbrainz.org/doc/MusicBrainz_Identifier) which, from my research, doesn't actually get us anywhere useful. And, in practice, not all tracks have a MusicBrainz ID so can't rely on it for anything useful. In an ideal world, would figure out how to convert to a Spotify Track URI but this slightly hacky solution is fine for now.\n\n## Usage\n\n### Setup\n\n-   `git clone` this to wherever you desire\n-   `.env.local` as explained below\n-   `nvm install` grabs the LTS (at the time of writing) Node version\n-   `npm install` pulls in dependencies\n\n### Running\n\n-   `npm start` spins up the app locally\n\n### Testing\n\n-   `npm test` runs the minimal test suite\n\n## `.env.local`\n\nYou'll need a [Last.fm API key](https://www.last.fm/api/account/create) and the Last.fm username to be querying against, an example `.env.local` looks like:\n\n```sh\nREACT_APP_LAST_FM_API_KEY=abc123\n# optional, defaults to:\nREACT_APP_LAST_FM_USER=pinjasaur\n```\n\n## Bruno\n\nFor this project I'm trying out [Bruno](https://www.usebruno.com/) which is an API client similar to Postman or Insomnia, except it all lives locally in the repo in the `bruno/` directory.\n\nIf you're on a fresh clone you might need to create the `.env` symlink for Bruno from the CRA-compliant `.env.local`:\n\n```sh\ncd bruno\nln -s ../.env.local .env\ncd -\n```\n\n## Resources\n\n-   https://odesli.co/\n    -   Service behind album.link, song.link\n-   https://www.last.fm/api\n    -   Last.fm API docs\n\n\u003cdetails\u003e\n\u003csummary\u003eCopypasta from CRA install\u003c/summary\u003e\n\n# Getting Started with Create React App\n\nThis project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).\n\n## Available Scripts\n\nIn the project directory, you can run:\n\n### `npm start`\n\nRuns the app in the development mode.\\\nOpen [http://localhost:3000](http://localhost:3000) to view it in the browser.\n\nThe page will reload if you make edits.\\\nYou will also see any lint errors in the console.\n\n### `npm test`\n\nLaunches the test runner in the interactive watch mode.\\\nSee the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.\n\n### `npm run build`\n\nBuilds the app for production to the `build` folder.\\\nIt correctly bundles React in production mode and optimizes the build for the best performance.\n\nThe build is minified and the filenames include the hashes.\\\nYour app is ready to be deployed!\n\nSee the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.\n\n### `npm run eject`\n\n**Note: this is a one-way operation. Once you `eject`, you can’t go back!**\n\nIf you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.\n\nInstead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.\n\nYou don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.\n\n## Learn More\n\nYou can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).\n\nTo learn React, check out the [React documentation](https://reactjs.org/).\n\n\u003c/details\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpinjasaur%2Fmusical-doodle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpinjasaur%2Fmusical-doodle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpinjasaur%2Fmusical-doodle/lists"}