{"id":13880871,"url":"https://github.com/unkleho/reactronica","last_synced_at":"2025-07-16T17:31:16.171Z","repository":{"id":32851003,"uuid":"140991681","full_name":"unkleho/reactronica","owner":"unkleho","description":"React audio components for making music in the browser","archived":false,"fork":false,"pushed_at":"2023-03-06T08:38:22.000Z","size":15237,"stargazers_count":478,"open_issues_count":21,"forks_count":35,"subscribers_count":9,"default_branch":"main","last_synced_at":"2025-07-03T04:06:25.619Z","etag":null,"topics":["react","tonejs"],"latest_commit_sha":null,"homepage":"https://reactronica.com","language":"TypeScript","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/unkleho.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2018-07-15T02:11:22.000Z","updated_at":"2025-07-02T23:33:24.000Z","dependencies_parsed_at":"2023-01-14T22:26:05.110Z","dependency_job_id":"3f412557-0e03-4bfc-8aed-7c705e57739c","html_url":"https://github.com/unkleho/reactronica","commit_stats":{"total_commits":429,"total_committers":3,"mean_commits":143.0,"dds":0.05128205128205132,"last_synced_commit":"e9840bf718069922f167ec6bd9fa4c9b7fb6d5ae"},"previous_names":[],"tags_count":34,"template":false,"template_full_name":null,"purl":"pkg:github/unkleho/reactronica","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unkleho%2Freactronica","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unkleho%2Freactronica/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unkleho%2Freactronica/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unkleho%2Freactronica/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/unkleho","download_url":"https://codeload.github.com/unkleho/reactronica/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unkleho%2Freactronica/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265527547,"owners_count":23782480,"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":["react","tonejs"],"created_at":"2024-08-06T08:03:34.091Z","updated_at":"2025-07-16T17:31:15.786Z","avatar_url":"https://github.com/unkleho.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"# Reactronica\n\n[https://reactronica.com](https://reactronica.com)\n\nReact audio components for making music in the browser.\n\nReact treats UI as a function of state. This library aims to treat **_music_** as a function of state, rendering sound instead of UI. Visual components live side by side with Reactronica, sharing the same state and elegantly kept in sync.\n\nUses [ToneJS](https://tonejs.github.io/) under the hood. Inspired by [React Music](https://github.com/FormidableLabs/react-music).\n\n\u003e Warning: Highly experimental. APIs will change.\n\n## Install\n\n```bash\n$ npm install --save reactronica\n```\n\nNote: Use React version \u003e= 16.8 as [Hooks](https://reactjs.org/docs/hooks-intro.html) are used internally.\n\n## Template\n\nTo get started quickly with Create React App and Reactronica, just run the command below:\n\n```bash\n$ npx create-react-app my-app --template reactronica\n```\n\n## Documentation\n\n[https://reactronica.com](https://reactronica.com/#documentation)\n\n### Components\n\n- [Song](https://reactronica.com/#song)\n- [Track](https://reactronica.com/#track)\n- [Instrument](https://reactronica.com/#instrument)\n- [Effect](https://reactronica.com/#effect)\n\n## Demos\n\n- [Digital Audio Workstation](https://reactronica.com/daw)\n- [Music chord, scale and progression finder](https://music-toolbox.now.sh)\n\n## Usage\n\n```jsx\nimport React from 'react';\nimport { Song, Track, Instrument, Effect } from 'reactronica';\n\nconst Example = () =\u003e {\n  return (\n    // Top level component must be Song, with Tracks nested inside\n    \u003cSong bpm={90} isPlaying={true}\u003e\n      \u003cTrack\n        // Array of several types\n        steps={[\n          // Note in string format\n          'C3',\n          // Object with note name and duration\n          { name: 'C3', duration: 0.5 },\n          { name: 'D3', duration: 0.5 },\n          // Array of strings for chords\n          ['C3', 'G3'],\n          null,\n          null,\n          // Array of objects for chords\n          [\n            { name: 'C3', duration: 0.5 },\n            { name: 'G3', duration: 0.5 },\n          ],\n          null,\n        ]}\n        volume={80}\n        pan={0}\n        // Callback for every tick\n        onStepPlay={(step, index) =\u003e {\n          console.log(step, index);\n        }}\n      \u003e\n        \u003cInstrument type=\"synth\" /\u003e\n        {/* Add effects chain here */}\n        \u003cEffect type=\"feedbackDelay\" /\u003e\n        \u003cEffect type=\"distortion\" /\u003e\n      \u003c/Track\u003e\n\n      \u003cTrack\u003e\n        \u003cInstrument\n          type=\"sampler\"\n          samples={{\n            C3: 'path/to/kick.mp3',\n            D3: 'path/to/snare.mp3',\n            E3: 'path/to/hihat.mp3',\n          }}\n          // Add some notes here to play\n          notes={[{ name: 'C3' }]}\n          onLoad={(buffers) =\u003e {\n            // Runs when all samples are loaded\n          }}\n        /\u003e\n      \u003c/Track\u003e\n    \u003c/Song\u003e\n  );\n};\n```\n\n## Thanks\n\n- https://tonejs.github.io/\n- https://github.com/FormidableLabs/react-music\n- https://github.com/jaredpalmer/tsdx\n- https://github.com/crabacus/the-open-source-drumkit for the drum sounds\n\n## License\n\nMIT © [unkleho](https://github.com/unkleho)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funkleho%2Freactronica","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Funkleho%2Freactronica","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funkleho%2Freactronica/lists"}