{"id":21988133,"url":"https://github.com/sapphicmoe/simple-fm","last_synced_at":"2025-04-30T11:06:19.478Z","repository":{"id":65807878,"uuid":"600096813","full_name":"SapphicMoe/simple-fm","owner":"SapphicMoe","description":"🎧 A simple, asynchronous Last.fm library written in TypeScript.","archived":false,"fork":false,"pushed_at":"2024-05-02T18:04:32.000Z","size":2691,"stargazers_count":13,"open_issues_count":2,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-11-19T11:01:12.645Z","etag":null,"topics":["last-fm","last-fm-api","lastfm","lastfm-api","node","nodejs","typescript"],"latest_commit_sha":null,"homepage":"https://simple.arciniega.one","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"zlib","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SapphicMoe.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"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":{"ko_fi":"solelychloe"}},"created_at":"2023-02-10T15:21:06.000Z","updated_at":"2024-11-13T07:12:51.000Z","dependencies_parsed_at":"2024-05-02T19:29:40.084Z","dependency_job_id":"21e14ff1-f235-4b36-b46b-43e2634cb5a1","html_url":"https://github.com/SapphicMoe/simple-fm","commit_stats":{"total_commits":70,"total_committers":2,"mean_commits":35.0,"dds":0.05714285714285716,"last_synced_commit":"490639e08ba741ac9e5e362359fc65b9138cba51"},"previous_names":["sapphicmoe/simple-fm","solelychloe/simple-fm"],"tags_count":22,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SapphicMoe%2Fsimple-fm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SapphicMoe%2Fsimple-fm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SapphicMoe%2Fsimple-fm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SapphicMoe%2Fsimple-fm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SapphicMoe","download_url":"https://codeload.github.com/SapphicMoe/simple-fm/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227196129,"owners_count":17746178,"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","last-fm-api","lastfm","lastfm-api","node","nodejs","typescript"],"created_at":"2024-11-29T19:15:56.598Z","updated_at":"2025-04-30T11:06:19.463Z","avatar_url":"https://github.com/SapphicMoe.png","language":"TypeScript","funding_links":["https://ko-fi.com/solelychloe"],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n\u003ca href=\"https://simple.sapphic.moe\" title=\"simple.sapphic.moe\"\u003e\n    \u003cimg\n      src=\"public/logo.svg\"\n      height=\"100\"\n      weight=\"100\"\n      alt=\"Headphones with musical notes coming out of it.\"\n      title=\"Headphones with musical notes coming out of it.\"\n    /\u003e\n\u003c/a\u003e\n\n## simple-fm\n\n_A simple, asynchronous Last.fm wrapper in TypeScript._\n\nSearch for what someone has been listening to lately, what tracks are trending in a country, an artist's top tracks, and\na lot more.\n\nFor more information, please visit the [documentation website][docs].\n\n[![CI][actions-image]][actions-link] [![npm-image]][npm-link] [![downloads-image]][npm-link] [![license-image]][license]\n\n\u003c/div\u003e\n\n# Install\n\n`simple-fm` requires that you have **Node.js 18** (and above) and **TypeScript v5+** installed.\n\n- npm: `npm i @solely/simple-fm`\n- pnpm: `pnpm i @solely/simple-fm`\n- yarn: `yarn add @solely/simple-fm`\n- bun: `bun i @solely/simple-fm`\n\n# Notice\n\n`simple-fm` requires you to have a Last.fm API key.\n\nTo obtain a Last.fm API key, click [here to register an API account][last-fm-api].\n\n# Example usage\n\n```ts\n// Import the simple-fm package.\nimport SimpleFM from '@solely/simple-fm'; // ESM\nimport SimpleFM from 'https://esm.sh/@solely/simple-fm'; // Deno\nconst SimpleFM = require('@solely/simple-fm'); // CommonJS\n```\n\n```ts\n// Replace the token with your Last.fm API key.\nconst client = new SimpleFM('Last.fm API key');\n\n// Fetch the recent track from a user.\nconst json = await client.user.getRecentTracks({ username: 'solelychloe' });\n\nconsole.log(json);\n```\n\n# License\n\nThis package is licensed under the [zlib][license] license.\n\n© 2024 Chloe Arciniega.\n\n[actions-image]:\n  https://img.shields.io/github/actions/workflow/status/SapphicMoe/simple-fm/main.yml?colorA=18181B\u0026colorB=de3931\n[actions-link]: https://github.com/SapphicMoe/simple-fm/actions/workflows/main.yml\n[docs]: https://simple.sapphic.moe\n[logo]: /public/logo.svg 'The Twitter headphone emoji with musical notes in it.'\n[license]: /LICENSE\n[downloads-image]: https://img.shields.io/npm/dm/@solely/simple-fm.svg?style=flat\u0026colorA=18181B\u0026colorB=de3931\n[last-fm-api]: https://www.last.fm/api/account/create\n[license-image]: https://img.shields.io/npm/l/@solely/simple-fm.svg?style=flat\u0026colorA=18181B\u0026colorB=de3931\n[npm-image]: https://img.shields.io/npm/v/@solely/simple-fm.svg?style=flat\u0026colorA=18181B\u0026colorB=de3931\n[npm-link]: https://npmjs.org/package/@solely/simple-fm\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsapphicmoe%2Fsimple-fm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsapphicmoe%2Fsimple-fm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsapphicmoe%2Fsimple-fm/lists"}