{"id":43674484,"url":"https://github.com/ccrma/webchuck","last_synced_at":"2026-02-05T00:45:22.217Z","repository":{"id":72007759,"uuid":"419463589","full_name":"ccrma/webchuck","owner":"ccrma","description":"ChucK on the Web","archived":false,"fork":false,"pushed_at":"2026-01-25T08:23:45.000Z","size":39173,"stargazers_count":56,"open_issues_count":8,"forks_count":8,"subscribers_count":14,"default_branch":"main","last_synced_at":"2026-01-25T22:52:59.132Z","etag":null,"topics":["emscripten","webassembly","webaudio"],"latest_commit_sha":null,"homepage":"https://chuck.stanford.edu/webchuck","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/ccrma.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,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2021-10-20T19:27:13.000Z","updated_at":"2026-01-24T09:22:12.000Z","dependencies_parsed_at":"2024-06-19T03:08:21.327Z","dependency_job_id":null,"html_url":"https://github.com/ccrma/webchuck","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/ccrma/webchuck","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ccrma%2Fwebchuck","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ccrma%2Fwebchuck/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ccrma%2Fwebchuck/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ccrma%2Fwebchuck/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ccrma","download_url":"https://codeload.github.com/ccrma/webchuck/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ccrma%2Fwebchuck/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29103764,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-04T22:44:52.815Z","status":"ssl_error","status_checked_at":"2026-02-04T22:44:16.428Z","response_time":62,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["emscripten","webassembly","webaudio"],"created_at":"2026-02-05T00:45:21.091Z","updated_at":"2026-02-05T00:45:22.205Z","avatar_url":"https://github.com/ccrma.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WebChucK\n\n[![Node.js Build](https://github.com/ccrma/webchuck/actions/workflows/deploy.yml/badge.svg)](https://github.com/ccrma/webchuck/actions/workflows/deploy.yml)\n[![](https://data.jsdelivr.com/v1/package/npm/webchuck/badge)](https://www.jsdelivr.com/package/npm/webchuck)\n\n[site](https://chuck.stanford.edu/webchuck/) | [docs](https://chuck.stanford.edu/webchuck/docs) | [npm](https://www.npmjs.com/package/webchuck)\n\nWebChucK brings [ChucK](https://chuck.stanford.edu), a strongly-timed audio programming language, to \nthe web! ChucK's C++ source code has been compiled with [Emscripten](https://emscripten.org) and \ntargets WebAssembly (WASM) to run via the `AudioWorkletNode` interface of the Web Audio API. \nWith near-native performance, WebChucK runs on modern desktop browsers as well as tablets and mobile \ndevices! Bring together ChucK's real-time sound synthesis engine and web tools to create new \nexperiences and develop creative workflows. Embed WebChucK into any website to build online audiovisual \nexperiences, immersive multi-channel audio web apps, or shareable musical instruments! To learn more \nabout WebChucK and what it can do, check out [https://chuck.stanford.edu/webchuck/](https://chuck.stanford.edu/webchuck/)\n\nTry out WebChucK in action through [WebChucK IDE](https://chuck.stanford.edu/ide/)!\n\n## Getting Started\n\n### NPM \n\nInstall WebChucK via [npm](https://www.npmjs.com/package/webchuck). WebChucK also\nsupports TypeScript:\n\n```\nnpm install webchuck\n```\n\n```ts\nimport { Chuck } from 'webchuck'\n\n// Create the default ChucK object\nconst theChuck = await Chuck.init([]);\n\n// Run ChucK code\ntheChuck.runCode(`\n    SinOsc sin =\u003e dac;\n    440 =\u003e sin.freq;\n    1::second =\u003e now;\n`);\n```\n\nNote that many browsers do not let audio run without a user interaction (e.g. button press).\nYou can check for a suspended audio context and resume like this:\n\n```ts\nif (theChuck.context.state === \"suspended\") {\n    theChuck.context.resume();\n}\n```\n\n### CDN \n\nYou can also embed WebChucK as a JavaScript module into your `index.html`. \n\n```html\n\u003chtml\u003e\n  \u003chead\u003e\n    \u003cscript type=\"module\" defer\u003e\n      import { Chuck } from 'https://cdn.jsdelivr.net/npm/webchuck/+esm';\n\n      let theChuck; // global variable\n\n      document.getElementById('action').addEventListener('click', async () =\u003e {\n        // Initialize default ChucK object\n        if (theChuck === undefined) {\n          theChuck = await Chuck.init([]);\n        }\n        // Run ChucK code\n        theChuck.runCode(`\n          SinOsc sin =\u003e dac;\n          440 =\u003e sin.freq;\n          1::second =\u003e now;\n        `);\n      });\n    \u003c/script\u003e\n  \u003c/head\u003e\n  \u003cbody\u003e\n    \u003cbutton id=\"action\"\u003eStart and Play\u003c/button\u003e\n  \u003c/body\u003e\n\u003c/html\u003e\n```\n\n`theChuck` contains the ChucK Virtual Machine for running code, removing shreds,\nsyncing global variables, and more! Read the \n[documentation](https://chuck.stanford.edu/webchuck/docs/classes/Chuck.html)\nfor the full API reference.\n\n## Documentation\n\nWebChucK full documentation and API reference: [here](https://chuck.stanford.edu/webchuck/docs)\n\n## For Developers\n\nIf you are a developer, check out the [Developer Guide](https://github.com/ccrma/webchuck/blob/main/DEVELOPER_GUIDE.md) to get started.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fccrma%2Fwebchuck","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fccrma%2Fwebchuck","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fccrma%2Fwebchuck/lists"}