{"id":13402463,"url":"https://github.com/madzadev/audio-player","last_synced_at":"2025-04-13T02:12:12.051Z","repository":{"id":38620471,"uuid":"339167625","full_name":"madzadev/audio-player","owner":"madzadev","description":"🎵 Music player with custom controls, playlist, filters, and search.","archived":false,"fork":false,"pushed_at":"2024-09-01T00:43:34.000Z","size":33056,"stargazers_count":357,"open_issues_count":0,"forks_count":50,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-10-01T07:14:59.426Z","etag":null,"topics":["audio","mp3","music","nextjs","player","react"],"latest_commit_sha":null,"homepage":"https://audioplayer.madza.dev","language":"JavaScript","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/madzadev.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}},"created_at":"2021-02-15T18:19:38.000Z","updated_at":"2024-09-29T21:06:19.000Z","dependencies_parsed_at":"2024-03-13T02:50:36.248Z","dependency_job_id":"627feee9-e32c-45be-855a-477b20b3a7d9","html_url":"https://github.com/madzadev/audio-player","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madzadev%2Faudio-player","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madzadev%2Faudio-player/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madzadev%2Faudio-player/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madzadev%2Faudio-player/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/madzadev","download_url":"https://codeload.github.com/madzadev/audio-player/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248654089,"owners_count":21140236,"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":["audio","mp3","music","nextjs","player","react"],"created_at":"2024-07-30T19:01:16.366Z","updated_at":"2025-04-13T02:12:12.032Z","avatar_url":"https://github.com/madzadev.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# React/NextJS Audio Player\n\n[![Maintenance](https://img.shields.io/badge/Maintained%3F-yes-green.svg)](https://github.com/madzadev/audio-player/graphs/commit-activity)\n[![GitHub issues](https://img.shields.io/github/issues/madzadev/audio-player)](https://github.com/madzadev/audio-player/issues/)\n[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com)\n[![MIT license](https://img.shields.io/badge/License-MIT-blue.svg)](https://choosealicense.com/licenses/mit/)\n\n![Player Preview](https://i.imgur.com/qVX68ve.gif)\n\n### Demo: [https://audioplayer.madza.dev](https://audioplayer.madza.dev)\n\n---\n\n## Requirements\n\nNode.js 18.x / 20+ is required.\n\nTested on React 18.2.0 and NextJS 14.1.0.\n\n## Installation\n\n```javascript\n npm install @madzadev/audio-player\n```\n\n## Usage\n\n```javascript\nimport Player from \"@madzadev/audio-player\";\nimport \"@madzadev/audio-player/dist/index.css\";\n```\n\n```javascript\nconst tracks = [\n  {\n    url: \"https://audioplayer.madza.dev/Madza-Chords_of_Life.mp3\",\n    title: \"Madza - Chords of Life\",\n    tags: [\"house\"],\n  },\n  {\n    url: \"https://audioplayer.madza.dev/Madza-Late_Night_Drive.mp3\",\n    title: \"Madza - Late Night Drive\",\n    tags: [\"dnb\"],\n  },\n  {\n    url: \"https://audioplayer.madza.dev/Madza-Persistence.mp3\",\n    title: \"Madza - Persistence\",\n    tags: [\"dubstep\"],\n  },\n];\n```\n\n```javascript\n\u003cPlayer trackList={tracks} /\u003e\n```\n\nThe only mandatory prop is `trackList` for audio source.\n\nIt requires to pass in an array consisting of objects with `url`, `title` and `tags` keys.\n\n## Options\n\nThere are multiple optional props you can use to configure the player.\n\nThe default values of them are displayed below.\n\n```javascript\n\u003cPlayer\n  trackList={tracks}\n  includeTags={true}\n  includeSearch={true}\n  showPlaylist={true}\n  sortTracks={true}\n  autoPlayNextTrack={true}\n/\u003e\n```\n\n## Color schemes\n\nYou can customize the design of the player by editing the `colors` object below.\n\nInclude only those properties, that you want to customize.\n\n```javascript\nconst colors = {\n  tagsBackground: \"#3e32e4\",\n  tagsText: \"#ffffff\",\n  tagsBackgroundHoverActive: \"#6e65f1\",\n  tagsTextHoverActive: \"#ffffff\",\n  searchBackground: \"#18191f\",\n  searchText: \"#ffffff\",\n  searchPlaceHolder: \"#575a77\",\n  playerBackground: \"#18191f\",\n  titleColor: \"#ffffff\",\n  timeColor: \"#ffffff\",\n  progressSlider: \"#3e32e4\",\n  progressUsed: \"#ffffff\",\n  progressLeft: \"#151616\",\n  bufferLoaded: \"#1f212b\",\n  volumeSlider: \"#3e32e4\",\n  volumeUsed: \"#ffffff\",\n  volumeLeft: \"#151616\",\n  playlistBackground: \"#18191f\",\n  playlistText: \"#575a77\",\n  playlistBackgroundHoverActive: \"#18191f\",\n  playlistTextHoverActive: \"#ffffff\",\n};\n```\n\n```javascript\n\u003cPlayer trackList={tracks} customColorScheme={colors} /\u003e\n```\n\n## Final notes\n\nThe audio files can be stored and accessed both locally in your project via file path (e.g., `public/yourtrack.mp3`) or using external host and providing direct URL to the source (e.g., `https://website.com/yourtrack.mp3`).\n\nThis project is under MIT license, so be free to check it out and contribute!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmadzadev%2Faudio-player","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmadzadev%2Faudio-player","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmadzadev%2Faudio-player/lists"}