{"id":50946541,"url":"https://github.com/jfet97/aww","last_synced_at":"2026-06-17T20:38:35.902Z","repository":{"id":35092972,"uuid":"205585851","full_name":"jfet97/aww","owner":"jfet97","description":"Async Iterables Interfaces for Web Workers","archived":false,"fork":false,"pushed_at":"2023-01-04T08:37:22.000Z","size":47,"stargazers_count":111,"open_issues_count":5,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2026-06-17T20:38:34.358Z","etag":null,"topics":["async","es2018","es6","iterables","javascript","webworkers"],"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/jfet97.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":"2019-08-31T19:07:59.000Z","updated_at":"2025-08-27T13:22:41.000Z","dependencies_parsed_at":"2023-01-15T13:40:11.136Z","dependency_job_id":null,"html_url":"https://github.com/jfet97/aww","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jfet97/aww","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jfet97%2Faww","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jfet97%2Faww/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jfet97%2Faww/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jfet97%2Faww/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jfet97","download_url":"https://codeload.github.com/jfet97/aww/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jfet97%2Faww/sbom","scorecard":{"id":517410,"data":{"date":"2025-08-11","repo":{"name":"github.com/jfet97/aww","commit":"14d0c484bae9b1f8094632bac45c6beaa2918d85"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.7,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/7 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":0,"reason":"13 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-6chw-6frg-f759","Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c","Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h","Warn: Project is vulnerable to: GHSA-p6mc-m468-83gw","Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9","Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm","Warn: Project is vulnerable to: GHSA-vh95-rmgr-6w4m","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9","Warn: Project is vulnerable to: GHSA-gcx4-mw62-g8wm","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-20T02:11:21.155Z","repository_id":35092972,"created_at":"2025-08-20T02:11:21.155Z","updated_at":"2025-08-20T02:11:21.155Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34465322,"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-17T02:00:05.408Z","response_time":127,"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":["async","es2018","es6","iterables","javascript","webworkers"],"created_at":"2026-06-17T20:38:34.887Z","updated_at":"2026-06-17T20:38:35.890Z","avatar_url":"https://github.com/jfet97.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# aww\n\n__Async Iterables Interfaces for Web Workers__\n\nThis is a proof of concept library that enables async iteration with web workers. Errors handling is not yet supported.\n\n```sh\nnpm i -S aww\n```\n\nDo not use the `postMessage` method of my wrappers while you are async iterating: use the `reply` method instead.\n\u0026nbsp;\n\n## How to iterate over the invoker's incoming data (from the worker perspective)\n\n### worker.js\n```js\nimport { AISource } from 'aww';\n\nconst delay = (ms, v) =\u003e new Promise(res =\u003e setTimeout(res, ms, v));\n\n;(async () =\u003e {\n\n    // will handle onmessage events and other stuff\n    // it's an async iterable\n    const source = new AISource();\n\n    for await(const msg of source) {\n      console.log(`${msg.data} received inside worker`);\n      await delay(2000, msg); // fake long task\n\n      // next messages from the main will be handled by the async iteration\n      // no sense making this awaitable\n      // DO NOT USE postMessage!\n      source.reply(\"It's all good from worker!\");\n    }\n\n})();\n```\n\n### main.js\n```js\nimport { AIWorker } from 'aww';\n\nconst delay = (ms, v) =\u003e new Promise(res =\u003e setTimeout(res, ms, v));\n\n;(async () =\u003e {\n\n    const myWorker = new AIWorker(new Worker('./worker.js'));\n\n    let i = 0;\n    while(true) {\n        await delay(1000);\n\n        // you can await the response from the worker, but it is not mandatory\n        await myWorker.postMessage(i++).then(({data}) =\u003e console.log(data));\n\n        /*\n          alternative syntax\n          const { data } = await myWorker.postMessage(i++);\n          console.log(data);\n        */\n       }\n\n})();\n```\n\n\u003cimg src=\"https://s3.gifyu.com/images/ezgif-5-479e2f28a99e.gif\" width=\"700\"/\u003e\n\u0026nbsp;\n\n## How to iterate over the worker's incoming data (from the invoker perspective)\n\n### main.js\n```js\nimport { AIWorker } from 'aww';\n\nconst delay = (ms, v) =\u003e new Promise(res =\u003e setTimeout(res, ms, v));\n\n;(async () =\u003e {\n\n    const myWorker = new AIWorker(new Worker('./worker.js'));\n\n    // will handle onmessage events and other stuff\n    // it's an async iterable\n    for await(const msg of myWorker) {\n      console.log(`${msg.data} received inside main`);\n      await delay(2000, msg); // fake long task\n\n      // next messages from the main will be handled by the async iteration\n      // no sense making this awaitable\n      // DO NOT USE postMessage!\n      myWorker.reply(\"It's all good from main!\");\n    }\n\n})();\n```\n\n### worker.js\n```js\nimport { AISource } from 'aww';\n\nconst delay = (ms, v) =\u003e new Promise(res =\u003e setTimeout(res, ms, v));\n\n;(async () =\u003e {\n\n    const source = new AISource();\n\n    let i = 0;\n    while(true) {\n        await delay(1000);\n\n        // you can await the response from the main, but it is not mandatory\n        await source.postMessage(i++).then(({data}) =\u003e console.log(data));\n\n        /*\n          alternative syntax\n          const { data } = await source.postMessage(i++);\n          console.log(data);\n        */\n    }\n\n})();\n```\n\n\u003cimg src=\"https://s3.gifyu.com/images/ezgif-5-1427410b906b.gif\" width=\"700\"/\u003e\n\u0026nbsp;\n\n## How to iterate over both at the same time\n\n### main.js\n```js\nimport { AIWorker } from 'aww';\n\nconst delay = (ms, v) =\u003e new Promise(res =\u003e setTimeout(res, ms, v));\n\n;(async () =\u003e {\n\n    const myWorker = new AIWorker(new Worker('./worker.js'));\n\n    // start the iteration posting a message\n    // because both the main and the worker are waiting to start the iteration\n    // not awaitable because the subsequent async iteration will handle worker's messages\n    // DO NOT USE postMessage!\n    myWorker.reply(\"Please start!\");\n\n    for await(const msg of myWorker) {\n      console.log(`${msg.data} received inside main`);\n      await delay(1000, msg); // fake long task\n\n      // next messages from the main will be handled by the async iteration\n      // no sense making this awaitable\n      // DO NOT USE postMessage!\n      myWorker.reply(\"It's all good from main!\");\n    }\n\n})();\n```\n\n### worker.js\n```js\nimport { AISource } from 'aww';\n\nconst delay = (ms, v) =\u003e new Promise(res =\u003e setTimeout(res, ms, v));\n\n;(async () =\u003e {\n\n    const source = new AISource();\n\n    for await(const msg of source) {\n      console.log(`${msg.data} received inside worker`);\n      await delay(2000, msg); // fake long task\n\n      // next messages from the main will be handled by the async iteration\n      // no sense making this awaitable\n      // DO NOT USE postMessage!\n      source.reply(\"It's all good from worker!\");\n    }\n\n})();\n```\n\n\u003cimg src=\"https://s3.gifyu.com/images/ezgif-5-0379c381b6ed.gif\" width=\"700\"/\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjfet97%2Faww","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjfet97%2Faww","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjfet97%2Faww/lists"}