{"id":13725248,"url":"https://github.com/jamesseanwright/wax","last_synced_at":"2025-05-07T05:49:48.022Z","repository":{"id":143927610,"uuid":"147025082","full_name":"jamesseanwright/wax","owner":"jamesseanwright","description":"An experimental, JSX-compatible renderer for the Web Audio API","archived":false,"fork":false,"pushed_at":"2023-01-04T11:39:54.000Z","size":583,"stargazers_count":182,"open_issues_count":4,"forks_count":4,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-05-07T05:49:39.849Z","etag":null,"topics":["audionode","audioparam","jsx","jsx-elements","jsx-renderer","jsx-syntax","pragma","react","transform-react-jsx","web-audio","web-audio-api"],"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/jamesseanwright.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}},"created_at":"2018-09-01T19:03:55.000Z","updated_at":"2025-02-17T20:10:01.000Z","dependencies_parsed_at":"2024-01-27T11:44:10.788Z","dependency_job_id":"3266369b-81ec-42fe-a497-f7847f40398e","html_url":"https://github.com/jamesseanwright/wax","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamesseanwright%2Fwax","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamesseanwright%2Fwax/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamesseanwright%2Fwax/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamesseanwright%2Fwax/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jamesseanwright","download_url":"https://codeload.github.com/jamesseanwright/wax/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252823693,"owners_count":21809709,"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":["audionode","audioparam","jsx","jsx-elements","jsx-renderer","jsx-syntax","pragma","react","transform-react-jsx","web-audio","web-audio-api"],"created_at":"2024-08-03T01:02:16.950Z","updated_at":"2025-05-07T05:49:48.002Z","avatar_url":"https://github.com/jamesseanwright.png","language":"JavaScript","funding_links":[],"categories":["Music","JavaScript"],"sub_categories":[],"readme":"# Wax\n\n[![Travis CI status](https://api.travis-ci.org/jamesseanwright/wax.svg?branch=master)](https://travis-ci.org/jamesseanwright/wax) [![Code coverage status](https://coveralls.io/repos/github/jamesseanwright/wax/badge.svg?branch=master)](https://coveralls.io/github/jamesseanwright/wax?branch=master) [![npm version](https://badge.fury.io/js/wax-core.svg)](https://www.npmjs.com/package/wax-core)\n\nAn experimental, JSX-compatible renderer for the Web Audio API. I wrote Wax for my [Manchester Web Meetup](https://www.meetup.com/Manchester-Web-Meetup) talk, [_Manipulating the Web Audio API with JSX and Custom Renderers_](https://www.youtube.com/watch?v=IeuuBKBb4Wg).\n\nWhile it has decent test coverage and is stable, I still deem this to be a work-in-progress. **Use in production at your own risk!**\n\n```jsx\n/** @jsx createAudioElement */\n\nimport {\n    createAudioElement,\n    renderAudioGraph,\n    AudioGraph,\n    Oscillator,\n    Gain,\n    StereoPanner,\n    Destination,\n    setValueAtTime,\n    exponentialRampToValueAtTime,\n} from 'wax-core';\n\nrenderAudioGraph(\n    \u003cAudioGraph\u003e\n        \u003cOscillator\n            frequency={[\n                setValueAtTime(200, 0),\n                exponentialRampToValueAtTime(800, 3),\n            ]}\n            type=\"square\"\n            endTime={3}\n        /\u003e\n        \u003cGain gain={0.2} /\u003e\n        \u003cStereoPanner pan={-1} /\u003e\n        \u003cDestination /\u003e\n    \u003c/AudioGraph\u003e\n);\n```\n\n## Example Apps\n\nConsult the [example](https://github.com/jamesseanwright/wax/tree/master/example) directory for a few small example apps that use Wax. The included [`README`](https://github.com/jamesseanwright/wax/blob/master/example/README.md) summarises them and details how they can be built and ran.\n\n## Documentation\n\n* [Introduction](https://github.com/jamesseanwright/wax/blob/master/docs/000-introduction.md)\n* [Getting Started](https://github.com/jamesseanwright/wax/blob/master/docs/001-getting-started.md)\n* [Manipulating Audio Parameters](https://github.com/jamesseanwright/wax/blob/master/docs/002-audio-parameters.md)\n* [Building Complex Graphs with `\u003cAggregation /\u003e`s](https://github.com/jamesseanwright/wax/blob/master/docs/003-aggregations.md)\n* [Updating Rendered `\u003cAudioGraph /\u003e`s](https://github.com/jamesseanwright/wax/blob/master/docs/004-updating-audio-graphs.md)\n* [Interop with React](https://github.com/jamesseanwright/wax/blob/master/docs/005-interop-with-react.md)\n* [API Reference](https://github.com/jamesseanwright/wax/blob/master/docs/006-api-reference.md)\n* [Local Development](https://github.com/jamesseanwright/wax/blob/master/docs/007-local-development.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjamesseanwright%2Fwax","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjamesseanwright%2Fwax","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjamesseanwright%2Fwax/lists"}