{"id":13580646,"url":"https://github.com/play-dl/play-dl","last_synced_at":"2025-05-16T16:01:40.298Z","repository":{"id":37847858,"uuid":"393649465","full_name":"play-dl/play-dl","owner":"play-dl","description":"Mainly used for Discord js Bots to play music.","archived":false,"fork":false,"pushed_at":"2024-08-13T05:42:09.000Z","size":1978,"stargazers_count":215,"open_issues_count":29,"forks_count":74,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-05-13T09:58:25.929Z","etag":null,"topics":["deezer","discord","discord-js","discordjs","javascript","music","nodejs","soundcloud","soundcloud-dl","spotify","spotify-dl","stream","streaming","typescript","youtube","youtube-dl"],"latest_commit_sha":null,"homepage":"https://play-dl.github.io/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/play-dl.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","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}},"created_at":"2021-08-07T10:17:43.000Z","updated_at":"2025-04-18T02:06:10.000Z","dependencies_parsed_at":"2024-04-11T21:09:36.862Z","dependency_job_id":"267c0a84-0ce6-462f-ae40-f3b622643e09","html_url":"https://github.com/play-dl/play-dl","commit_stats":{"total_commits":707,"total_committers":16,"mean_commits":44.1875,"dds":"0.24752475247524752","last_synced_commit":"6a8569feb8c562bb8218ecfd72850c3686d96256"},"previous_names":[],"tags_count":119,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/play-dl%2Fplay-dl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/play-dl%2Fplay-dl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/play-dl%2Fplay-dl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/play-dl%2Fplay-dl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/play-dl","download_url":"https://codeload.github.com/play-dl/play-dl/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254564108,"owners_count":22092119,"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":["deezer","discord","discord-js","discordjs","javascript","music","nodejs","soundcloud","soundcloud-dl","spotify","spotify-dl","stream","streaming","typescript","youtube","youtube-dl"],"created_at":"2024-08-01T15:01:53.950Z","updated_at":"2025-05-16T16:01:40.056Z","avatar_url":"https://github.com/play-dl.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"# Play-dl\n\nA **light-weight** YouTube, SoundCloud, Spotify and Deezer streaming and searching library.\n\n-   Search by video, playlist/album, channel/artist\n-   Stream audio from YouTube and SoundCloud\n\n# Why play-dl ?\n\n[ytdl-core](https://github.com/fent/node-ytdl-core) has some issues with miniget and also stream abort issues. On the other hand, [youtube-dl](https://github.com/ytdl-org/youtube-dl) is a perfect alternative but it takes time to launch. Hence, play-dl is created to avoid these issues along with providing comparatively faster performance than others.\n\n[![Discord](https://img.shields.io/discord/888998674716315679?color=00aa00\u0026label=%20Discord\u0026logo=Discord)](https://discord.gg/8H3xWcv3D7)\n[![NPM](https://img.shields.io/npm/v/play-dl.svg?color=00aa00\u0026logo=npm)](https://www.npmjs.com/package/play-dl)\n\n## Support\n\nYou can contact us for support on our [chat server](https://discord.gg/8H3xWcv3D7).\n\n### Installation\n\n**Node.js 16.0.0 or newer is required.**\n\n```bash\nnpm install play-dl@latest\npnpm add play-dl@latest\nyarn add play-dl@latest\n```\n\n### Importing\n\n**TypeScript:**\n```ts\nimport play from 'play-dl'; // Everything\n\nimport { video_basic_info, stream } from 'play-dl'; // Individual functions\n```\n\n**CommonJS modules:**\n```js\nconst play = require('play-dl'); // Everything\n\n// Individual functions by using destructuring\nconst { video_basic_info, stream } = require('play-dl');\n```\n\n**ES6 modules:**\n```ts\nimport play from 'play-dl'; // Everything\n\nimport { video_basic_info, stream } from 'play-dl'; // Individual functions\n```\n\n## **Compatibility issues** - discord-player\n    \nBecause discord-player doesn't work with raw opus packets you need to enable the compatibility mode in `play-dl`, if you want to use both frameworks together.\n\n- To fix the playback of YouTube videos with `discord-player`, you can disable some of play-dl's optimisations and fixes by setting the `discordPlayerCompatibility` option for `stream` and `stream_from_info` to true\n\n- The `discordPlayerCompatiblity` option might break the playback of long YouTube videos.\n\n- Even with the `discordPlayerCompatibility` option set you will not be able to use the seek option for `stream` and `stream_from_info`.\n    \n\n### [Documentation](https://play-dl.github.io/modules.html)\n### [Examples](./examples)\n### [Instructions](./instructions)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplay-dl%2Fplay-dl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fplay-dl%2Fplay-dl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplay-dl%2Fplay-dl/lists"}