{"id":13769788,"url":"https://github.com/renanrider/editorjs-audio-player","last_synced_at":"2025-05-11T02:33:23.577Z","repository":{"id":207466292,"uuid":"719197850","full_name":"renanrider/editorjs-audio-player","owner":"renanrider","description":null,"archived":false,"fork":false,"pushed_at":"2023-11-16T16:18:00.000Z","size":10,"stargazers_count":10,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-27T15:51:21.917Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/renanrider.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}},"created_at":"2023-11-15T16:58:01.000Z","updated_at":"2025-03-22T12:05:26.000Z","dependencies_parsed_at":"2024-01-06T20:54:34.437Z","dependency_job_id":null,"html_url":"https://github.com/renanrider/editorjs-audio-player","commit_stats":null,"previous_names":["renanrider/editorjs-audio-player"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/renanrider%2Feditorjs-audio-player","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/renanrider%2Feditorjs-audio-player/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/renanrider%2Feditorjs-audio-player/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/renanrider%2Feditorjs-audio-player/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/renanrider","download_url":"https://codeload.github.com/renanrider/editorjs-audio-player/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253507206,"owners_count":21919173,"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":[],"created_at":"2024-08-03T17:00:31.559Z","updated_at":"2025-05-11T02:33:23.272Z","avatar_url":"https://github.com/renanrider.png","language":"JavaScript","funding_links":[],"categories":["Tools"],"sub_categories":["Block Tools"],"readme":"![](https://badgen.net/badge/Editor.js/v2.0/blue)\r\n\r\n# Simple Audio Tool\r\n\r\nProvides Audio Block for the [Editor.js](https://editorjs.io).\r\n\r\n![](https://res.cloudinary.com/renanrider/image/upload/v1700151279/npm%20files/demo.gif)\r\n\r\nWorks only with pasted URLs with audio src and requires no server-side uploader.\r\n\r\n![](assets/image-uploading.gif)\r\n\r\n## Installation\r\n\r\nGet the package\r\n\r\n```shell\r\nnpm i editorjs-audio-player --save\r\n```\r\n\r\nInclude module at your application\r\n\r\n```javascript\r\nimport AudioPlayer from 'editorjs-audio-player';\r\n```\r\n\r\nOptionally, you can load this tool from CDN [JsDelivr CDN](https://cdn.jsdelivr.net/npm/editorjs-audio-player)\r\n\r\n\r\n## Usage\r\n\r\nAdd a new Tool to the `tools` property of the Editor.js initial config.\r\n\r\n```javascript\r\nvar editor = EditorJS({\r\n  ...\r\n\r\n  tools: {\r\n    ...\r\n    audioPlayer: AudioPlayer,,\r\n  }\r\n\r\n  ...\r\n});\r\n```\r\n\r\n## Config Params\r\n\r\nThis Tool has no config params\r\n\r\n\r\n## Output data\r\n\r\n| Field          | Type      | Description                     |\r\n| -------------- | --------- | ------------------------------- |\r\n| src            | `string`  | src's url                     |\r\n\r\n\r\n```json\r\n{\r\n  \"type\": \"audioPlayer\",\r\n  \"data\": {\r\n  \"src\": \"https://file-examples.com/wp-content/storage/2017/11/file_example_MP3_700KB.mp3\"\r\n  }\r\n}\r\n```\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frenanrider%2Feditorjs-audio-player","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frenanrider%2Feditorjs-audio-player","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frenanrider%2Feditorjs-audio-player/lists"}