{"id":45579187,"url":"https://github.com/usrz/javascript-rodosha","last_synced_at":"2026-02-23T11:31:52.658Z","repository":{"id":23388853,"uuid":"26750557","full_name":"usrz/javascript-rodosha","owner":"usrz","description":"Workers and slaves","archived":false,"fork":false,"pushed_at":"2014-12-05T13:16:31.000Z","size":2780,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-07-22T14:21:16.321Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/usrz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-11-17T09:54:50.000Z","updated_at":"2014-12-05T13:16:31.000Z","dependencies_parsed_at":"2022-08-22T00:10:32.426Z","dependency_job_id":null,"html_url":"https://github.com/usrz/javascript-rodosha","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/usrz/javascript-rodosha","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/usrz%2Fjavascript-rodosha","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/usrz%2Fjavascript-rodosha/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/usrz%2Fjavascript-rodosha/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/usrz%2Fjavascript-rodosha/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/usrz","download_url":"https://codeload.github.com/usrz/javascript-rodosha/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/usrz%2Fjavascript-rodosha/sbom","scorecard":{"id":912828,"data":{"date":"2025-08-11","repo":{"name":"github.com/usrz/javascript-rodosha","commit":"16991b09d3a5706348907741053bf7771d15edc2"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/30 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":"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":"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":"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":"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":"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":"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":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"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.md:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE.md:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"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":"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"}}]},"last_synced_at":"2025-08-24T19:52:58.633Z","repository_id":23388853,"created_at":"2025-08-24T19:52:58.633Z","updated_at":"2025-08-24T19:52:58.633Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29741587,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-23T07:44:07.782Z","status":"ssl_error","status_checked_at":"2026-02-23T07:44:07.432Z","response_time":90,"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":[],"created_at":"2026-02-23T11:31:51.872Z","updated_at":"2026-02-23T11:31:52.634Z","avatar_url":"https://github.com/usrz.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"USRZ Rodosha API\n================\n\n\u003cdiv class=\"nojsdoc\"\u003e\n  \u003cp\u003e\u003cstrong\u003eIt also works in \u003ca href=\"NODE.md\"\u003eNode.JS\u003c/a\u003e.\u003c/strong\u003e\u003c/p\u003e\n\u003c/div\u003e\n\nRodosha (\u0026#x52b4;\u0026#x50cd;\u0026#x8005; - or _\"worker\"_ in Japanese) are an easier\nway to deal with multi-threading in the browser by using\n[_Web Workers_](https://developer.mozilla.org/en-US/docs/Web/Guide/Performance/Using_web_workers)\n\nThe implementation is wrapped in a `rodosha`\n[_Esquire_](https://github.com/usrz/javascript-esquire) module which provides\na `create(...)` method. This method will return a `Promise` which will be\nresolved with the instance of the `Rodosha` or rejected with a failure:\n\n```javascript\nesquire.inject(['rodosha'], function(rodoshaFactory) {\n  rodoshaFactory.create().then(function(rodosha) {\n    // foo! do something...\n  });\n})\n```\n\n`Rodosha`s operate mainly of _Esquire_ modules which can be imported directly\nin a remote `worker`:\n\n```javascript\nrodosha.import('module-a', 'module-b').then(function(imported) {\n  // the modules (and all their dipendencies) were imported...\n});\n```\n\nObject proxies\n--------------\n\nAfter those modules are imported, local **proxy** objects pointing to their\ninstances in the worker can be created quite trivially:\n\n```javascript\nrodosha.proxy('module-a').then(function(proxy) {\n  // the \"proxy\" variable is a local object proxying an instance in the worker\n})\n```\n\nAny method and variable in objects being proxied will be replaced with a\n`Promise`, and method execution, or value retrieval will trigger a message,\nbe executed in the `Worker` and its result will resolve or reject the promise.\n\nSo if a module defines a method called `foo()` and a variable `bar` like:\n\n```javascript\n{\n  foo: function(arg) {\n    return \"Called with \" + arg;\n  },\n  bar: \"hello, world\"\n}\n```\n\nIt's proxy will return promises for both:\n\n```javascript\nproxy.foo(\"my value\").then(result) {\n  // result will be \"Called with my value\"\n}\nproxy.bar.then(value) {\n  // value will be \"hello world\"\n}\n```\n\nWhat will happen under the covers is that _messages_ will be sent to the\n`Worker` asking for the method to be executed in its remote native thread (or\nthe variable's value to be evaluated) and once a response is received locally\nthe returned promises will be resolved or rejected.\n\nProxies from functions\n----------------------\n\nA special note for `function` calls is that their return values can also be\nretrieved as a **proxy** object by invoking the `asProxy()` method on the\nreturned promise.\n\nSo, for example, if a function is defined as:\n\n```javascript\nfunction gimmeAnObject() {\n  // this will return a complex object, with functions and properties\n}\n```\n\nLocally its result can be used through a **proxy** (henceforth, its methods\nwill still be invoked - and variables evaluated - in the `Worker`):\n\n```javascript\nproxy.gimmeAnObject().asProxy().then(function(newProxy) {\n  // newProxy will be a proxy object to what's returned...\n})\n```\n\nCleaning up\n-----------\n\nProxies can (should) be discarded when no longer needed, freeing up memory\nin the `Worker`:\n\n```javascript\nrodosha.destroy(proy);\n```\n\nThe `Worker` itself can be closed gracefully\n\n```javascript\nrodosha.close().then(function() {\n  // nicely closed\n});\n```\n\nor terminated abruptly calling `rodosha.terminate()`.\n\n\u003cdiv class=\"nojsdoc\"\u003e\n  \u003ch2\u003eFurther reading\u003c/h2\u003e\n  \u003cp\u003eLicensed under the \u003ca href=\"LICENSE.md\"\u003eApache Software License 2.0\u003c/a\u003e\u003c/p\u003e\n  \u003cp\u003eThe full API documentation is avaiblable\n  \u003ca target=\"_blank\" href=\"http://usrz.github.io/javascript-rodosha/\"\u003ehere\u003c/a\u003e.\u003c/p\u003e\n\u003c/div\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fusrz%2Fjavascript-rodosha","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fusrz%2Fjavascript-rodosha","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fusrz%2Fjavascript-rodosha/lists"}