{"id":20743067,"url":"https://github.com/aimingoo/redpoll","last_synced_at":"2026-04-19T08:33:22.653Z","repository":{"id":57349969,"uuid":"45730466","full_name":"aimingoo/redpoll","owner":"aimingoo","description":"Parallel Exchangeable Distribution Task for NodeJS.","archived":false,"fork":false,"pushed_at":"2015-12-03T22:58:09.000Z","size":57,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-03-25T08:56:46.055Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/aimingoo.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":"2015-11-07T09:33:56.000Z","updated_at":"2016-01-11T03:57:14.000Z","dependencies_parsed_at":"2022-09-16T02:10:42.301Z","dependency_job_id":null,"html_url":"https://github.com/aimingoo/redpoll","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/aimingoo/redpoll","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aimingoo%2Fredpoll","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aimingoo%2Fredpoll/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aimingoo%2Fredpoll/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aimingoo%2Fredpoll/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aimingoo","download_url":"https://codeload.github.com/aimingoo/redpoll/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aimingoo%2Fredpoll/sbom","scorecard":{"id":173108,"data":{"date":"2025-08-11","repo":{"name":"github.com/aimingoo/redpoll","commit":"c14afc6792154374490d6753ba90fdd76cb6f5c3"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"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":"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":"Code-Review","score":0,"reason":"Found 0/13 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":"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":"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":"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":"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":"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: 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":"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":"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-16T17:05:14.661Z","repository_id":57349969,"created_at":"2025-08-16T17:05:14.661Z","updated_at":"2025-08-16T17:05:14.661Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32000351,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T20:23:30.271Z","status":"online","status_checked_at":"2026-04-19T02:00:07.110Z","response_time":55,"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-11-17T07:08:58.061Z","updated_at":"2026-04-19T08:33:22.636Z","avatar_url":"https://github.com/aimingoo.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# redpoll\n\nredpoll is implement of PEDT - Parallel Exchangeable Distribution Task specifications for NodeJS.\n\nPEDT v1.1 specifications supported.\n\n### Table of Contents\n\n* [install](#install)\n* [import and usage](#import-and-usage)\n* [options](#options)\n* [interfaces](#interfaces)\n  * [pedt.run](#pedtrun)\n  * [pedt.map](#pedtmap)\n  * [pedt.execute_task](#pedtexecute_task)\n  * [pedt.register_task](#pedtregister_task)\n  * [pedt.require](#pedtrequire)\n  * [pedt.upgrade](#pedtupgrade)\n  * [pedt.LOGGER](#pedtlogger)\n  * [pedt.TASK_XXX](#pedttask_xxx)\n  * [pedt.version](#pedtversion)\n* [helpers](#helpers)\n  * [Redpoll.infra.taskhelper](#redpollinfrataskhelper)\n  * [Redpoll.infra.httphelper](#redpollinfrahttphelper)\n  * [Redpoll.infra.requestdata](#redpollinfrarequestdata)\n* [testcase](#testcase)\n* [history](#history)\n\n# install\n\n\u003e npm install redpoll\n\n# import and usage\n\n``` javascript\nvar Redpoll = require('redpoll');\nvar options = {};\nvar pedt = new Redpoll(options);\n\npedt.run(...)\n\t.then(function(result){\n\t\t...\n\t})\n```\n\n# options\n\nthe full options schema:\n\n``` javascript\noptions = {\n\tdistributed_request: function(arrResult) { .. }, // a http client implement\n    default_rejected: function(message) { .. }, // a default rejected inject\n\tsystem_route: { .. }, // any key/value pairs\n\ttask_register_center: {\n\t\tdownload_task: function(taskId) { .. }, // PEDT interface\n\t\tregister_task: function(taskDef) { .. }  // PEDT interface\n\t},\n\tresource_status_center: {\n\t\trequire: function(resId) {..}\t// PEDT interface\n\t}\n}\n```\n\n# interfaces\n\n\u003e for detail, @see ${readpoll}/infra/specifications/*\n\nall interfaces are promise supported except pedt.upgrade() and helpers.\n\n## pedt.run\n\n``` javascript\npedt.run = function(task, args)\n```\n\nrun a task (taskId, function or taskObject) with args.\n\n## pedt.map\n\n``` javascript\npedt.map = function(distributionScope, taskId, args)\n```\n\nmap taskId to distributionScope with args, and get result array.\n\ndistributionScope will parse by pedt.require().\n\n## pedt.execute_task\n\n``` javascript\npedt.execute_task = function(taskId, args)\n```\n\nrun a taskId with args. pedt.run(taskId) will call this.\n\n## pedt.register_task\n\n``` javascript\npedt.register_task = function(task)\n```\n\nrun a task and return taskId.\n\nthe \"task\" is a taskDef text or local taskObject.\n\n## pedt.require\n\n``` javascript\npedt.require = function(token)\n```\n\nrequire a resource by token. the token is distributionScope or system token, or other.\n\nthis is n4c expanded interface, resource query interface emmbedded.\n\n## pedt.upgrade\n\n``` javascript\nthis.upgrade = function(newOptions)\n```\n\nupgrade current Redpoll/PEDT instance with newOptions. @see [options](#options)\n\nthis is redpoll expanded interface.\n\n## pedt.LOGGER\n\nthis is expanded reserved tokens. it's constant:\n\n\u003e LOGGER: \"!\"\n\nso, you can option/reset/upgrade local default logger in your code:\n\n``` javascript\npedt.upgrade({ system_route: {[pedt.LOGGER]: function(message) {\n  console.log(message)\n}}});\n```\n\nor disable it:\n\n``` javascript\npedt.upgrade({ system_route: {[pedt.LOGGER]: Promise.resolve(false)}}),\n```\n\nor resend message to remote nodes/scope:\n\n``` javascript\n// @see ${redpoll}/testcase/t_executor.js\npedt.register_task(a_task_def).then(set_remote_logger)\n```\n\nand, you can call the logger at anywhere:\n\n``` javascript\npedt.require(pedt.LOGGER).then(function(logger) {\n  pedt.run(logger, message)\n})\n```\n\nor public a log_print_task, register and run it:\n\n``` javascript\nvar log_print_task = {\n  message: 'will replaced',\n  task: def.require(def.LOGGER),\n  promised: function(log) {\n    return this.run(log.task, log.message))\n  }\n}\nvar taskId = '\u003cget result from pedt.register_task(log_print_task)\u003e'\npedt.run(taskId, {message: 'some notice/error information'})\n```\n\nthis is redpoll expanded interface.\n\n## pedt.TASK_XXX\n\nsome task constants, inherited from def.TASK_XXX in Redpoll.infra.taskhelper. include:\n\n``` javascript\nTASK_BLANK\nTASK_SELF\nTASK_RESOURCE\n```\n\nex:\n\n``` javascript\ntaskDef = {\n  // !! static recursion !!\n  x: def.run(def.TASK_SELF, ..), \n  // require local resource\n  y: def.require('registed_local_resource_name'),\n\n  promised: function(taskResult) {\n    // !! dynamic recursion !!\n    this.run(taskResult.taskId, ..);\n    // try execute blank task\n    this.execute_task(this.TASK_BLANK, {..})\n  }\n}\n```\n\nthis is redpoll expanded interface.\n\n## pedt.version\n\nget support version of PEDT specifications, it's string value.\n\nthis is redpoll expanded interface.\n\n# helpers\n\nsome tool/helpers include in the package.\n\n## Redpoll.infra.taskhelper\n\n``` javascript\nvar Redpoll = require('redpoll');\nvar def = Redpoll.infra.taskhelper;\nvar taskDef = {\n\tx: def.run(...),\n\ty: def.map(...),\n\t...\n}\n```\n\na taskDef define helper. @see:\n\n\u003e $(redpoll)/testcase/t_executor.js\n\n## Redpoll.infra.httphelper\n\n``` javascript\nvar Redpoll = require('redpoll');\nvar options = {\n\t...,\n\tdistributed_request = Redpoll.infra.httphelper.distributed_request\n}\n```\n\na recommented/standard distributed request.\n\n## Redpoll.infra.requestdata\n\n``` javascript\nvar Redpoll = require('redpoll');\nvar request_parse = Redpoll.infra.requestdata.parse;\n\n...\nrequire(\"http\").createServer(function(request, response) {\n\tvar params = request_parse(request);\n\t...\n}\n```\n\na requestdata parser for http server/daemon, PEDT standard requests supported. @see:\n\n\u003e $(redpoll)/testcase/executor.js\n\n# testcase\n\ntry these:\n\n``` bash\n\u003e git clone 'https://github.com/aimingoo/redpoll'\n\u003e cd redpoll\n\u003e npm install\n\u003e node testcase/t_executor.js\n\n\u003e #(start new shell and continue)\n\u003e curl -s 'http://127.0.0.1:8032/redpoll/execute_task:c2eb2597e461aa3aa0e472f52e92fe0b'\n```\n\n# history\n\n``` text\n2015.12.04\tv1.1.2 released.\n\t- minor udpate\n2015.11.28\tv1.1.0 released.\n\t- recursion taskDef supported, def.TASK_SELF point to self.\n\t- def.require() supported, and other def.XXX constants published.\n\t- standard logger and rejected inject.\n\t- taskDef.rejected supported.\n    - \"taskId\" field for taskOrder/taskResult supported.\n2015.11.07\tv1.0.0 released.\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faimingoo%2Fredpoll","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faimingoo%2Fredpoll","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faimingoo%2Fredpoll/lists"}