{"id":13768895,"url":"https://github.com/invokemedia/audio-to-svg-waveform","last_synced_at":"2026-01-22T11:41:05.478Z","repository":{"id":148623344,"uuid":"112528568","full_name":"invokemedia/audio-to-svg-waveform","owner":"invokemedia","description":"Convert an audio file to a compressed (gzip) SVG waveform","archived":false,"fork":false,"pushed_at":"2017-12-01T23:25:11.000Z","size":148,"stargazers_count":23,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-21T11:03:02.109Z","etag":null,"topics":["audio","nodejs","svg","waveform"],"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/invokemedia.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,"governance":null,"roadmap":null,"authors":null}},"created_at":"2017-11-29T21:14:38.000Z","updated_at":"2024-12-12T15:38:20.000Z","dependencies_parsed_at":"2023-05-20T17:45:42.370Z","dependency_job_id":null,"html_url":"https://github.com/invokemedia/audio-to-svg-waveform","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/invokemedia%2Faudio-to-svg-waveform","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/invokemedia%2Faudio-to-svg-waveform/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/invokemedia%2Faudio-to-svg-waveform/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/invokemedia%2Faudio-to-svg-waveform/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/invokemedia","download_url":"https://codeload.github.com/invokemedia/audio-to-svg-waveform/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253501674,"owners_count":21918316,"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","nodejs","svg","waveform"],"created_at":"2024-08-03T16:01:27.766Z","updated_at":"2026-01-22T11:41:05.447Z","avatar_url":"https://github.com/invokemedia.png","language":"JavaScript","funding_links":[],"categories":["UI components and libraries"],"sub_categories":["Visual waveform generators"],"readme":"# Audio To SVG Waveform\n\n\u003e Convert an audio file to a compressed (gzip) SVG waveform\n\nThis module uses a converted version of [antonKalinin/audio-waveform-svg-path](https://github.com/antonKalinin/audio-waveform-svg-path) that runs in Node instead of in the browser.\n\n### Usage\n\n```js\nconst audioToSvgWaveform = require('audio-to-svg-waveform');\n\naudioToSvgWaveform('./infile.mp3', './output.svg.gz')\n  .then(() =\u003e console.log('complete!'))\n  .catch(console.error)\n```\n\n### Output\n\n![screenshot of the waveform output](/screenshot.png)\n\nThe default stroke color is set to `#000` but you can override with `SVG_STROKE` environment variable. But that can be changed with CSS when the file is included inline.\n\n### Babel.js\n\nThe current, stable version of [node.js](https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V6.md#6.3.1) supports [95%](http://node.green/) ES6 [features](https://github.com/lukehoban/es6features). \n\nAlso, we build npm modules to run on older versions of Node.js.\n\nWe will use Babel.js with [ES2015 preset](http://babeljs.io/docs/plugins/preset-es2015/) to compile ES6 code to ES5.\n\n### Coding style\n\nAirbnb has an excellent [style guide](https://github.com/airbnb/javascript) for ES6. We will follow the guide and adhere to the recommended coding style.\n\n### ESLint\n\nWe will use ESLint with Airbnb style and pre-parse our code to detect violations of the style.\n\n \n## Quick Start\n1. Make sure you have recent, stable version of node (\u003e= 6.1.0).\n\n```\nnave use stable\nnode -v\n```\n2. Clone or download this repo.\n\n3. Get latest releases of the tools\n\n```\nnpm update --save\n```\n\n## Commands\n### Test\n```\nnpm run test\n```\n\n### Lint\n```\nnpm run lint\n```\n\n### Build\n```\nnpm run build\n```\n\n### Run\n#### ES6 code via babel\n```\nnpm run dev\n```\n\n#### ES5 code (Transpiled)\n```\nnpm run build\n\nnode lib/\n```\nor\n```\nnpm start\n```\n\n## Code Directories\n\n./src - source code, stays in git repo.\n\n./lib - transpiled ES5 code, not saved in git, gets published to npm.\n\n## License\n\n  [MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finvokemedia%2Faudio-to-svg-waveform","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finvokemedia%2Faudio-to-svg-waveform","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finvokemedia%2Faudio-to-svg-waveform/lists"}