{"id":19090727,"url":"https://github.com/kodedninja/microne","last_synced_at":"2025-08-29T14:33:30.444Z","repository":{"id":53908023,"uuid":"116790163","full_name":"kodedninja/microne","owner":"kodedninja","description":"A tiny, minimalistic JS music player","archived":false,"fork":false,"pushed_at":"2021-03-11T19:27:06.000Z","size":15238,"stargazers_count":37,"open_issues_count":1,"forks_count":7,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-19T00:41:26.463Z","etag":null,"topics":["audio","javascript","minimalist","music-player","plugin"],"latest_commit_sha":null,"homepage":"https://microne.now.sh/","language":"HTML","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/kodedninja.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":"2018-01-09T08:47:46.000Z","updated_at":"2024-03-26T03:56:50.000Z","dependencies_parsed_at":"2022-08-13T04:00:55.154Z","dependency_job_id":null,"html_url":"https://github.com/kodedninja/microne","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/kodedninja%2Fmicrone","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kodedninja%2Fmicrone/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kodedninja%2Fmicrone/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kodedninja%2Fmicrone/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kodedninja","download_url":"https://codeload.github.com/kodedninja/microne/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251683554,"owners_count":21626990,"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","javascript","minimalist","music-player","plugin"],"created_at":"2024-11-09T03:08:49.730Z","updated_at":"2025-04-30T10:21:55.341Z","avatar_url":"https://github.com/kodedninja.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Screenshot](https://github.com/kodedninja/microne/blob/master/SCREENSHOT.png)\n\nA tiny, minimalistic JS music player. It's around **2 kilobytes** and it's **super beautiful**.\n\n## Installation\n### From CDN\nInclude with ```\u003cscript src=\"https://unpkg.com/microne/microne.js\"\u003e\u003c/script\u003e```\n\n### npm\n- ```$ npm i microne```\n- Include with ```\u003cscript src=\"node_modules/microne/microne.js\"\u003e\u003c/script\u003e```\n\n### Manual\nSimply download the ```microne.js``` file and include it.\n\n## Usage\n```html\n\u003cbody\u003e\n  \u003cdiv id=\"player\"\u003e\u003c/div\u003e\n\n  \u003cscript src=\"https://unpkg.com/microne/microne.js\"\u003e\u003c/script\u003e\n  \u003cscript\u003e\n    var m = new Microne(document.getElementById('player'))\n    m.source('media/example.mp3')\n  \u003c/script\u003e\n\u003c/body\u003e\n```\n\n## API\n### ```new Microne(parent_el)```\nMakes a new player and appends it to the ```parent_el``` element. ```parent_el``` must have a specified ```width``` and ```height``` and microne fills it.\n\n### ```m.source(href[, preload])```\nSets the source of the player to ```href```. If ```preload``` (optional) is ```false``` the audio will only be loaded at play. Default is ```true```.\n\n### ```m.play()```\nStart playing.\n\n### ```m.pause()```\nPause playing.\n\n### ```m.on(event, handler)```\nAdd an event to the audio element. [See possible events here.](https://www.w3schools.com/tags/ref_av_dom.asp)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkodedninja%2Fmicrone","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkodedninja%2Fmicrone","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkodedninja%2Fmicrone/lists"}