{"id":13479220,"url":"https://github.com/alii/use-last-fm","last_synced_at":"2025-08-07T02:09:11.055Z","repository":{"id":45234096,"uuid":"293471596","full_name":"alii/use-last-fm","owner":"alii","description":"🎸 React Hook to use realtime last.fm data and display your currently played song in your application.","archived":false,"fork":false,"pushed_at":"2024-04-20T20:56:13.000Z","size":316,"stargazers_count":123,"open_issues_count":0,"forks_count":11,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-09T21:15:28.111Z","etag":null,"topics":["last-fm","lastfm","music","react","react-dom","react-hook","react-music","react-music-hook","spotify","use-hook"],"latest_commit_sha":null,"homepage":"https://npmjs.com/package/use-last-fm","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alii.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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":["alii"]}},"created_at":"2020-09-07T08:45:37.000Z","updated_at":"2025-02-28T15:25:02.000Z","dependencies_parsed_at":"2024-01-25T13:03:55.796Z","dependency_job_id":"09c09c35-23f7-4606-ab22-5287ea51cc73","html_url":"https://github.com/alii/use-last-fm","commit_stats":{"total_commits":61,"total_committers":5,"mean_commits":12.2,"dds":0.2622950819672131,"last_synced_commit":"4e1e54b3d59c7f8a20da2e20f21130d98b666f7b"},"previous_names":["webmail/use-last-fm"],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alii%2Fuse-last-fm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alii%2Fuse-last-fm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alii%2Fuse-last-fm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alii%2Fuse-last-fm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alii","download_url":"https://codeload.github.com/alii/use-last-fm/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248111973,"owners_count":21049578,"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":["last-fm","lastfm","music","react","react-dom","react-hook","react-music","react-music-hook","spotify","use-hook"],"created_at":"2024-07-31T16:02:11.673Z","updated_at":"2025-04-09T21:15:34.180Z","avatar_url":"https://github.com/alii.png","language":"TypeScript","funding_links":["https://github.com/sponsors/alii"],"categories":["TypeScript"],"sub_categories":[],"readme":"![use-last-fm](docs/use-last-fm.jpg)\n\n![CI Status](https://github.com/webmail/use-last-fm/workflows/CI/badge.svg)\n\nStream your currently playing song through last.fm as a React hook.\n\n# Features\n\n- 📦 **Tiny**: `use-last-fm` weighs in at **less than** 700 bytes minified and gzipped.\n- 🌳 **Universal**: we dist esm and cjs modules.\n- 👨‍💻 **Developer friendly**: Helpful development messages that are stripped away in production\n- ⌨️ **Strongly typed**: `use-last-fm` is written in TypeScript and encourages good practices this way\n\n## Installation\n\n##### With NPM\n\n\u003e `npm i --save use-last-fm`\n\n##### Or, with yarn:\n\n\u003e `yarn add use-last-fm`\n\n## Usage\n\n```tsx\nimport { useLastFM } from 'use-last-fm';\n\nconst CurrentlyPlaying = () =\u003e {\n  const lastFM = useLastFM('aabbccsmith', '[add api token here]');\n\n  if (lastFM.status !== 'playing') {\n    return \u003cp\u003eNot listening to anything\u003c/p\u003e;\n  }\n\n  return (\n    \u003cp\u003e\n      Listening to {lastFM.song.name} by {lastFM.song.artist}\n    \u003c/p\u003e\n  );\n};\n```\n\nA full example can be seen in the [examples](https://github.com/webmail/use-last-fm/tree/master/example) folder\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falii%2Fuse-last-fm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falii%2Fuse-last-fm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falii%2Fuse-last-fm/lists"}