{"id":50445611,"url":"https://github.com/krispowers/spotify-embed","last_synced_at":"2026-05-31T21:03:31.859Z","repository":{"id":342439052,"uuid":"1173938870","full_name":"KrisPowers/spotify-embed","owner":"KrisPowers","description":"Live Spotify now-playing badge for your GitHub README 🕺🎵","archived":false,"fork":false,"pushed_at":"2026-05-04T00:38:42.000Z","size":56872,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-04T02:31:14.052Z","etag":null,"topics":["github","readme","spotify"],"latest_commit_sha":null,"homepage":"","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/KrisPowers.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,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-05T22:51:16.000Z","updated_at":"2026-05-04T00:38:47.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/KrisPowers/spotify-embed","commit_stats":null,"previous_names":["krispowers/spotify-embed"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/KrisPowers/spotify-embed","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KrisPowers%2Fspotify-embed","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KrisPowers%2Fspotify-embed/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KrisPowers%2Fspotify-embed/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KrisPowers%2Fspotify-embed/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KrisPowers","download_url":"https://codeload.github.com/KrisPowers/spotify-embed/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KrisPowers%2Fspotify-embed/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33748607,"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-31T02:00:06.040Z","response_time":95,"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":["github","readme","spotify"],"created_at":"2026-05-31T21:03:25.989Z","updated_at":"2026-05-31T21:03:26.872Z","avatar_url":"https://github.com/KrisPowers.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Spotify README Worker\n\nA single Cloudflare Worker that serves a setup UI and live SVG badges for your GitHub README.\n\n## Preview (Only shows If I am listening to music):\n![Now Playing](https://spotify.krispowers.dev/now-playing.svg)\n\u003cbr\u003e\n![Top Tracks](https://spotify.krispowers.dev/top-tracks.svg?range=short_term\u0026count=5)\n\u003cbr\u003e\n![Top Artists](https://spotify.krispowers.dev/top-artists.svg?range=short_term\u0026count=5)\n\n## Widgets\n\n| Badge | Embed URL |\n|---|---|\n| Now Playing | `https://your-worker.workers.dev/now-playing.svg` |\n| Top Artists | `https://your-worker.workers.dev/top-artists.svg?range=short_term\u0026count=8` |\n| Top Tracks | `https://your-worker.workers.dev/top-tracks.svg?range=mid_term\u0026count=5` |\n\n**Range options:** `short_term` (4 weeks) · `mid_term` (6 months) · `long_term` (all time)  \n**Count:** 1–10\n\n## Setup\n\n### 1. Install \u0026 login\n```bash\nnpm install\nnpx wrangler login\n```\n\n### 2. Add your Spotify app credentials\nGo to [developer.spotify.com/dashboard](https://developer.spotify.com/dashboard), create an app, and add `https://your-worker.workers.dev/callback` as a Redirect URI.\n\n```bash\nnpx wrangler secret put SPOTIFY_CLIENT_ID\nnpx wrangler secret put SPOTIFY_CLIENT_SECRET\n```\n\n### 3. Deploy\n```bash\nnpx wrangler deploy\n```\n\n### 4. Get your refresh token\nVisit `https://your-worker.workers.dev/auth`, authorize with Spotify, then follow the on-screen instructions to add `SPOTIFY_REFRESH_TOKEN` and redeploy.\n\n### 5. Visit the setup UI\nGo to `https://your-worker.workers.dev` to configure and copy your embed snippets.\n\n## Local development\n```bash\nnpm run dev\n# Visit http://localhost:8787\n```\n\nAdd a `.dev.vars` file for local secrets:\n```\nSPOTIFY_CLIENT_ID=your_client_id\nSPOTIFY_CLIENT_SECRET=your_client_secret\nSPOTIFY_REFRESH_TOKEN=your_refresh_token\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrispowers%2Fspotify-embed","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkrispowers%2Fspotify-embed","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrispowers%2Fspotify-embed/lists"}