{"id":18326520,"url":"https://github.com/luisenmarroquin/spotify-sync","last_synced_at":"2025-08-13T19:35:36.240Z","repository":{"id":48460067,"uuid":"226370645","full_name":"LuisEnMarroquin/spotify-sync","owner":"LuisEnMarroquin","description":"Playback history backup cronjob on self-hosted MongoDB","archived":false,"fork":false,"pushed_at":"2021-07-25T01:29:23.000Z","size":3928,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-06T00:32:23.155Z","etag":null,"topics":["bootstrap","cookies","css","express","handlebars","html","javascript","jquery","js","mongo","mongoose","node","npm","oauth2","spotify","spotify-playback-history","standard","sync","ts","typescript"],"latest_commit_sha":null,"homepage":"https://spoty.marroquin.dev","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/LuisEnMarroquin.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":"2019-12-06T16:40:50.000Z","updated_at":"2024-07-04T22:35:01.000Z","dependencies_parsed_at":"2022-07-28T23:48:45.803Z","dependency_job_id":null,"html_url":"https://github.com/LuisEnMarroquin/spotify-sync","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/LuisEnMarroquin/spotify-sync","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LuisEnMarroquin%2Fspotify-sync","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LuisEnMarroquin%2Fspotify-sync/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LuisEnMarroquin%2Fspotify-sync/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LuisEnMarroquin%2Fspotify-sync/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LuisEnMarroquin","download_url":"https://codeload.github.com/LuisEnMarroquin/spotify-sync/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LuisEnMarroquin%2Fspotify-sync/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270300733,"owners_count":24561358,"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","status":"online","status_checked_at":"2025-08-13T02:00:09.904Z","response_time":66,"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":["bootstrap","cookies","css","express","handlebars","html","javascript","jquery","js","mongo","mongoose","node","npm","oauth2","spotify","spotify-playback-history","standard","sync","ts","typescript"],"created_at":"2024-11-05T19:07:09.668Z","updated_at":"2025-08-13T19:35:36.195Z","avatar_url":"https://github.com/LuisEnMarroquin.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# History Sync for Spotify\n\n[![Fail](https://github.com/LuisEnMarroquin/spotify-sync/actions/workflows/deploy.yml/badge.svg)](https://github.com/LuisEnMarroquin)\n[![Fail](https://github.com/LuisEnMarroquin/spotify-sync/actions/workflows/backup.yml/badge.svg)](https://github.com/LuisEnMarroquin)\n[![Fail](https://github.com/LuisEnMarroquin/spotify-sync/actions/workflows/server.yml/badge.svg)](https://github.com/LuisEnMarroquin)\n\nSync your Spotify's playback history every hour\n\n* Initially folked from [github.com/spotify/web-api-auth-examples](https://github.com/spotify/web-api-auth-examples)\n* This project uses Authorization Code Flow to [authenticate against the Spotify Web API](https://developer.spotify.com/web-api/authorization-guide)\n\n## Installation\n\nThese examples run on Node.js. On this [website](http://www.nodejs.org) you can find instructions on how to install it\n\nJust clone this repo and install it's dependencies\n\n```shell\nnpm install\n```\n\n## Use your credentials\n\nYou will need to register your app and get your own credentials from the Spotify for Developers Dashboard\n\nTo do so, go to [your Spotify for Developers Dashboard](https://developer.spotify.com/dashboard) and create your application\n\nFor the examples, we registered these Redirect URIs:\n\n* http://localhost:8888 (needed for the implicit grant flow)\n* http://localhost:8888/callback\n\nOnce you have created your app, create an `.env` file and add the `CLIENT_ID` and `CLIENT_SECRET` that you got from your Spotify Dashboard\n\n```env\nCLIENT_ID=12345678\nCLIENT_SECRET=12345678\n```\n\n## Database (important)\n\n[MongoDB 4.2](https://docs.mongodb.com/v4.2/tutorial) is required to run this project\n\nIf you have Docker you can run\n\n```shell\ndocker volume create mongo\ndocker volume create mongoc\ndocker run -d --name mongo -p 27017:27017 -v mongo:/data/db -v mongoc:/data/configdb mongo:4.2\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluisenmarroquin%2Fspotify-sync","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fluisenmarroquin%2Fspotify-sync","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluisenmarroquin%2Fspotify-sync/lists"}