{"id":17280271,"url":"https://github.com/akellbl4/spotify-playback-worker","last_synced_at":"2026-02-25T18:05:37.898Z","repository":{"id":97799540,"uuid":"406723723","full_name":"akellbl4/spotify-playback-worker","owner":"akellbl4","description":"Spotify API for your playback powered by Cloudflare Workers","archived":false,"fork":false,"pushed_at":"2023-03-14T17:27:35.000Z","size":68,"stargazers_count":3,"open_issues_count":2,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-10T21:09:58.706Z","etag":null,"topics":["cloudflare","cloudflare-workers","spotify-api"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/akellbl4.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2021-09-15T10:53:45.000Z","updated_at":"2023-04-22T08:04:34.000Z","dependencies_parsed_at":"2023-03-30T23:20:22.279Z","dependency_job_id":null,"html_url":"https://github.com/akellbl4/spotify-playback-worker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/akellbl4/spotify-playback-worker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akellbl4%2Fspotify-playback-worker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akellbl4%2Fspotify-playback-worker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akellbl4%2Fspotify-playback-worker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akellbl4%2Fspotify-playback-worker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/akellbl4","download_url":"https://codeload.github.com/akellbl4/spotify-playback-worker/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akellbl4%2Fspotify-playback-worker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29833776,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-25T17:57:15.019Z","status":"ssl_error","status_checked_at":"2026-02-25T17:56:11.472Z","response_time":61,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["cloudflare","cloudflare-workers","spotify-api"],"created_at":"2024-10-15T09:19:53.160Z","updated_at":"2026-02-25T18:05:37.893Z","avatar_url":"https://github.com/akellbl4.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Spotify API for your playback\n\n- `/now-playing` – returns current state of playback in your Spotify\n- `/top-tracks` - return your top-10 tracks\n\nRequirements:\n`node \u003e= v14.16.0`\n`yarn \u003e= 1.22.10`\n\n## Deploy Clouduflare Worker\n\n- Run `yarn` in folder with the project to get dependencies installed\n- Run `yarn auth` and authorize on Cloudflare\n- Run `yarn deploy` for deploying the worker\n- Open [Cloudflare](https://dash.cloudflare.com/) Workers page in the browser\n- Create a new application at [Spotify Developers](https://developer.spotify.com/dashboard/applications) interface or use an existing\n- Open settings and add address to auth endpoint to **Redirect URIs**. The URL should be looks like `%domain/auth`. Example `https://spotify-worker.0050004d.workers.dev/auth`\n- Add your Spotify **Client ID** to environment variables for the deployed worker as `SPOTIFY_CLIENT_ID`\n- Add your Spotify **Client Secret** to environment variables for the deployed worker as `SPOTIFY_CLIENT_SECRET` with encryption\n- Edit `ENV` variable and set it to `production`\n- Find domain of your worker (it'll be shown with message `Deployed to %domain` on the worker page)\n- Go by your worker address in the browser. Example: `https://spotify-worker.0050004d.workers.dev`\n- Go through the authorization process. After authorization you'll be redirected to page with JSON\n- Copy `refresh_token` and it to environment variables as `SPOTIFY_REFRESH_TOKEN` with encryption\n\nFinally you can open `%domain/now-playing` or `%domain/top-tracks`. For example https://spotify-worker.0050004d.workers.dev/now-playing or https://spotify-worker.0050004d.workers.dev/top/tracks\n\n## Run Development\n\n**Install Dependencies**\n\n- Run `yarn` in folder with the project to get dependencies installed\n- You can create a new application at [Spotify Developers](https://developer.spotify.com/dashboard/applications) interface or use an existing\n- In settings of your Spotify App add `http://localhost:8787/auth` to **Redirect URIs**\n- Add your Spotify Client ID to `wrangler.toml`\n- Add Spotify Client Secret to secrets with:\n  `wrangler secrets set SPOTIFY_CLIENT_SECRET`\n- Open `http://localhost:8787/auth`\n- Go through the authorization process. After authorization you'll be redirected to page with JSON\n- Copy `refresh_token` and set it as a secret `wrangler secrets set SPOTIFY_REFRESH_TOKEN`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakellbl4%2Fspotify-playback-worker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fakellbl4%2Fspotify-playback-worker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakellbl4%2Fspotify-playback-worker/lists"}