{"id":13632402,"url":"https://github.com/cestef/spotify-card","last_synced_at":"2026-05-29T11:00:28.257Z","repository":{"id":43738753,"uuid":"411730265","full_name":"cestef/spotify-card","owner":"cestef","description":"Generate spotify embeds using canvas","archived":false,"fork":false,"pushed_at":"2022-05-21T09:43:08.000Z","size":26342,"stargazers_count":24,"open_issues_count":1,"forks_count":8,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-10-24T01:38:10.046Z","etag":null,"topics":["canvas","discord","spotify","typescript"],"latest_commit_sha":null,"homepage":"https://docs.cstef.dev/docs/spotify-card/","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/cestef.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-09-29T15:30:56.000Z","updated_at":"2025-06-30T12:57:43.000Z","dependencies_parsed_at":"2022-09-07T20:33:44.111Z","dependency_job_id":null,"html_url":"https://github.com/cestef/spotify-card","commit_stats":null,"previous_names":["cstefflexin/spotify-card"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cestef/spotify-card","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cestef%2Fspotify-card","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cestef%2Fspotify-card/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cestef%2Fspotify-card/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cestef%2Fspotify-card/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cestef","download_url":"https://codeload.github.com/cestef/spotify-card/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cestef%2Fspotify-card/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33648534,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-29T02:00:06.066Z","response_time":107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["canvas","discord","spotify","typescript"],"created_at":"2024-08-01T22:03:02.362Z","updated_at":"2026-05-29T11:00:28.169Z","avatar_url":"https://github.com/cestef.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":" Generate song embeds easily !\r\n \r\n![Preview](media/preview.png)\r\n\r\n# spotify-card\r\n\r\n## Table of Contents\r\n\r\n- [About](#about)\r\n- [Prerequisites](#prerequisites)\r\n- [Installing](#installing)\r\n- [Usage](#usage)\r\n\r\n## About \u003ca name = \"about\"\u003e\u003c/a\u003e\r\n\r\nThis is a nodejs utility to generate song embeds using [skia-canvas](https://github.com/samizdatco/skia-canvas).\r\n\r\nThe package is named `spotify-card` because I wanted to only add spotify support at the beginning but I ended up adding support for other platforms. \r\n\r\nCurrently supported plaforms: `Spotify`, `Soundcloud`, `Youtube` and `Deezer`\r\n\r\n## Prerequisites \u003ca name = \"prerequisites\"\u003e\u003c/a\u003e\r\n\r\n- [nodejs](https://nodejs.org)\r\n\r\n## Installing \u003ca name = \"installing\"\u003e\u003c/a\u003e\r\n\r\nYou can install this package from the [npm](https://npmjs.com) registry\r\n\r\n\r\n```\r\nyarn add spotify-card\r\n```\r\n\r\nor with the npm cli:\r\n\r\n```\r\nnpm install spotify-card\r\n```\r\n\r\n\r\n## Usage \u003ca name = \"usage\"\u003e\u003c/a\u003e\r\n\r\n### Example (typescript)\r\n\r\n```ts\r\nimport { generate } from \"spotify-card\";\r\nimport path from \"path\";\r\nimport fs from \"fs\";\r\n\r\n(async () =\u003e {\r\n    const image = await generate({\r\n        url: \"spotify:track:33yAEqzKXexYM3WlOYtTfQ\",\r\n    });\r\n    fs.writeFileSync(path.join(__dirname, \"test_image.png\"), image);\r\n})();\r\n\r\n```\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcestef%2Fspotify-card","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcestef%2Fspotify-card","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcestef%2Fspotify-card/lists"}