{"id":16567641,"url":"https://github.com/ducaale/workers-wasm-rollup-experiment","last_synced_at":"2026-06-08T10:02:00.180Z","repository":{"id":110338121,"uuid":"505232007","full_name":"ducaale/workers-wasm-rollup-experiment","owner":"ducaale","description":null,"archived":false,"fork":false,"pushed_at":"2022-06-30T22:24:02.000Z","size":29,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-02-10T19:14:20.680Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ducaale.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-06-19T22:24:46.000Z","updated_at":"2022-06-27T20:22:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"997c4326-035c-4df2-8136-3eb80db54d4b","html_url":"https://github.com/ducaale/workers-wasm-rollup-experiment","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ducaale/workers-wasm-rollup-experiment","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ducaale%2Fworkers-wasm-rollup-experiment","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ducaale%2Fworkers-wasm-rollup-experiment/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ducaale%2Fworkers-wasm-rollup-experiment/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ducaale%2Fworkers-wasm-rollup-experiment/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ducaale","download_url":"https://codeload.github.com/ducaale/workers-wasm-rollup-experiment/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ducaale%2Fworkers-wasm-rollup-experiment/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34057158,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-08T02:00:07.615Z","response_time":111,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-10-11T21:07:07.919Z","updated_at":"2026-06-08T10:02:00.159Z","avatar_url":"https://github.com/ducaale.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Workers + WASM + Rollup Experiment\n\nIs it possible to use worker + WASM in a library that targets both browsers and node? This repo\nis a proof of concept of how that could be done.\n\nThis work is built on top of the method proposed in this [article](https://justinribeiro.com/chronicle/2020/07/17/building-module-web-workers-for-cross-browser-compatibility-with-rollup/)\nand uses [comlink](https://github.com/GoogleChromeLabs/comlink) to bridge the gap between\nnode's worker-threads and web-workers.\n\n## Running the examples\n\nFirst, make sure to [install emscripten](https://emscripten.org/docs/getting_started/downloads.html)\nand then build the project:\n\n```\nnpm install\nnpm run build\n```\n\nOnce that is done, you can run the project in either Node or the Browser:\n\n* Node: `npm run start:node`\n* Web: `npm run start:web` and navigate to http://127.0.0.1:8080/examples/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fducaale%2Fworkers-wasm-rollup-experiment","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fducaale%2Fworkers-wasm-rollup-experiment","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fducaale%2Fworkers-wasm-rollup-experiment/lists"}