{"id":30715856,"url":"https://github.com/jazz-soft/jzz-midi-rtc","last_synced_at":"2026-01-20T17:28:16.233Z","repository":{"id":310147225,"uuid":"1038320539","full_name":"jazz-soft/JZZ-midi-RTC","owner":"jazz-soft","description":"MIDI via WebRTC","archived":false,"fork":false,"pushed_at":"2025-08-26T02:04:20.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-26T04:16:03.711Z","etag":null,"topics":["midi","webrtc"],"latest_commit_sha":null,"homepage":"","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/jazz-soft.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,"zenodo":null}},"created_at":"2025-08-15T01:41:34.000Z","updated_at":"2025-08-26T02:04:24.000Z","dependencies_parsed_at":"2025-08-16T04:27:03.162Z","dependency_job_id":"58dd029d-5e48-4b96-92be-ff2eae10e0bc","html_url":"https://github.com/jazz-soft/JZZ-midi-RTC","commit_stats":null,"previous_names":["jazz-soft/jzz-midi-rtc"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jazz-soft/JZZ-midi-RTC","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jazz-soft%2FJZZ-midi-RTC","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jazz-soft%2FJZZ-midi-RTC/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jazz-soft%2FJZZ-midi-RTC/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jazz-soft%2FJZZ-midi-RTC/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jazz-soft","download_url":"https://codeload.github.com/jazz-soft/JZZ-midi-RTC/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jazz-soft%2FJZZ-midi-RTC/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273403951,"owners_count":25099300,"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-09-03T02:00:09.631Z","response_time":76,"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":["midi","webrtc"],"created_at":"2025-09-03T07:03:12.655Z","updated_at":"2026-01-20T17:28:16.225Z","avatar_url":"https://github.com/jazz-soft.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JZZ-midi-RTC\n## MIDI via WebRTC\n\n[![npm](https://img.shields.io/npm/v/jzz-midi-rtc.svg)](https://www.npmjs.com/package/jzz-midi-rtc)\n[![npm](https://img.shields.io/npm/dt/jzz-midi-rtc.svg)](https://www.npmjs.com/package/jzz-midi-rtc)\n[![build](https://github.com/jazz-soft/JZZ-midi-RTC/actions/workflows/build.yml/badge.svg)](https://github.com/jazz-soft/JZZ-midi-RTC/actions)\n[![Coverage Status](https://coveralls.io/repos/github/jazz-soft/JZZ-midi-RTC/badge.svg)](https://coveralls.io/github/jazz-soft/JZZ-midi-RTC)\n\nThis module allows two WebRTC peers communicate with each other's MIDI ports.  \nAnd YES, these ports are visible from the Web MIDI API!  \nPlease see the demo [here](https://github.com/jazz-soft/RTC-MIDI-Test) ...\n\nIf, instead, you are building a client-server application,  \nyou may want to check https://github.com/jazz-soft/JZZ-midi-WS\n\n## Usage\n##### Plain HTML\n```html\n\u003cscript src=\"JZZ.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"JZZ.midi.RTC.js\"\u003e\u003c/script\u003e\n//...\n```\n##### CDN (jsdelivr)\n```html\n\u003cscript src=\"https://cdn.jsdelivr.net/npm/jzz\"\u003e\u003c/script\u003e\n\u003cscript src=\"https://cdn.jsdelivr.net/npm/jzz-midi-rtc\"\u003e\u003c/script\u003e\n//...\n```\n##### CDN (unpkg)\n```html\n\u003cscript src=\"https://unpkg.com/jzz\"\u003e\u003c/script\u003e\n\u003cscript src=\"https://unpkg.com/jzz-midi-rtc\"\u003e\u003c/script\u003e\n//...\n```\n##### CommonJS\n```js\nvar JZZ = require('jzz');\nrequire('jzz-midi-rtc')(JZZ);\n//...\n```\n\n## Example\n```js\nvar MidiRTC = new JZZ.RTC();\nvar RTCPC = new RTCPeerConnection();\n// ...\n// ... boilerplate WebRTC code here ...\n// ...\nMidiRTC.connect(RTCPC);\n```\n\n## API\n```js\nvar MidiRTC = new JZZ.RTC(name);\n```\nConstructor. `name` - name to be used as preffix for remote MIDI ports.\nIf not set, will be `WebRTC`, `WebRTC1`, `WebRTC2`, etc...\n\n```js\nMidiRTC.connect(RTCPC);\n```\nConnect to a WebRTC session. `RTCPC` - a `RTCPeerConnection` object.  \nIf the previous WebRTC session was closed, MidiRTC can be connected to another session.\n\n```js\nMidiRTC.close();\n```\nDisconnect and close all remote MIDI ports.\n\n```js\nMidiRTC.addMidiIn(name, port);\nMidiRTC.addMidiOut(name, port);\n```\nAdd MIDI port. `name` - name to bee seen by the remotr peer; `port` - MIDI port (real or virtual).\n\n```js\nMidiRTC.removeMidiIn(name);\nMidiRTC.removeMidiOut(name);\n```\nRemove MIDI port.\n\n`{add/remove}Midi{In/Out}(...)` functions can be called before or after the connection is made.\n\n\n## See also\n- [RTC-MIDI-Test](https://github.com/jazz-soft/RTC-MIDI-Test) - MIDI via WebRTC test / demo\n- [JZZ-midi-WS](https://github.com/jazz-soft/JZZ-midi-WS) - MIDI via WebSockets\n- [JZZ](https://github.com/jazz-soft/JZZ) - MIDI library for Node.js and web-browsers","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjazz-soft%2Fjzz-midi-rtc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjazz-soft%2Fjzz-midi-rtc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjazz-soft%2Fjzz-midi-rtc/lists"}