{"id":14384599,"url":"https://github.com/ruebel/waveform-react","last_synced_at":"2025-08-23T17:32:56.302Z","repository":{"id":50518255,"uuid":"106064001","full_name":"ruebel/waveform-react","owner":"ruebel","description":"draw audio waveforms with react","archived":false,"fork":false,"pushed_at":"2019-03-22T06:25:43.000Z","size":5374,"stargazers_count":39,"open_issues_count":2,"forks_count":10,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-08-29T18:35:08.643Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ruebel.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":"2017-10-07T01:45:06.000Z","updated_at":"2024-03-13T20:43:33.000Z","dependencies_parsed_at":"2022-09-09T20:00:45.318Z","dependency_job_id":null,"html_url":"https://github.com/ruebel/waveform-react","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/ruebel%2Fwaveform-react","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruebel%2Fwaveform-react/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruebel%2Fwaveform-react/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruebel%2Fwaveform-react/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ruebel","download_url":"https://codeload.github.com/ruebel/waveform-react/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230716579,"owners_count":18269795,"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-28T18:01:30.087Z","updated_at":"2024-12-21T12:30:46.064Z","avatar_url":"https://github.com/ruebel.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# waveform-react\n\n\u003e draw audio waveforms with react\n\n## example\n\nhttps://ruebel.github.io/waveform-react\n\n## installation\n\n`npm install waveform-react`\n\n## usage\n\n```js\nimport Waveform from 'waveform-react';\n\nclass MyComponent extends React.Component {\n  render() {\n    return (\n      \u003cWaveform\n        // Audio buffer\n        buffer={this.state.buffer}\n        // waveform height\n        height={150}\n        markerStyle={{\n          // Position marker color\n          color: '#fff',\n          // Position marker width (in pixels)\n          width: 4\n        }}\n        // Optionally handle user manually changing position (0 - 1)\n        onPositionChange={pos =\u003e console.log(pos)}\n        // Wave plot type (line or bar)\n        plot=\"bar\"\n        // Marker position on waveform (0 - 1)\n        position={0.5}\n        // redraw waveform on window size change (default: true)\n        responsive={false}\n        // Show position marker\n        showPosition={true}\n        waveStyle={{\n          // animate waveform on draw (default: true)\n          animate: true,\n          // waveform color\n          color: '#000',\n          // width of each rendered point (min: 1, max: 10)\n          pointWidth: 1\n        }}\n        // waveform width\n        width={900}\n      /\u003e\n    );\n  }\n}\n```\n\n## license\n\nMIT © [Randy Uebel](randy.uebel@gmail.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fruebel%2Fwaveform-react","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fruebel%2Fwaveform-react","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fruebel%2Fwaveform-react/lists"}