{"id":24568970,"url":"https://github.com/bitliner/1-of","last_synced_at":"2026-06-24T23:31:43.990Z","repository":{"id":148316235,"uuid":"102705489","full_name":"bitliner/1-of","owner":"bitliner","description":"Build easily and run distributed task. Based on Redis and Kue.","archived":false,"fork":false,"pushed_at":"2017-09-07T09:13:53.000Z","size":3977,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-21T16:35:49.929Z","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/bitliner.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":"2017-09-07T07:27:38.000Z","updated_at":"2023-03-08T03:10:01.000Z","dependencies_parsed_at":"2023-06-11T16:30:46.386Z","dependency_job_id":null,"html_url":"https://github.com/bitliner/1-of","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bitliner/1-of","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitliner%2F1-of","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitliner%2F1-of/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitliner%2F1-of/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitliner%2F1-of/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bitliner","download_url":"https://codeload.github.com/bitliner/1-of/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitliner%2F1-of/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34753781,"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-24T02:00:07.484Z","response_time":106,"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":"2025-01-23T14:55:54.052Z","updated_at":"2026-06-24T23:31:43.960Z","avatar_url":"https://github.com/bitliner.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 1-of\n\nBuild easily and run distributed task. \n\nBased on Redis and Kue.\n\n## Usage\n\n**Create a computing unit**\n\n```\nconst Computing = require('1-of').computing;\n\nmodule.exports = new Computing('double', (input, progress, done) =\u003e {\n  progress(0, 0, input * 2);\n  done();\n});\n```\nNB: you can return more than 1 result by using progress.\n\n**Create a runner**\n\n```\nconst Runner = require('1-of').runner;\nconst streamify = require('stream-array');\nconst {Transform} = require('stream');\n\n\n\nstreamify([2, 4, 6]) // stream an array of integer\n  .pipe(new Transform({\n    objectMode: true,\n    transform: function(chunk, encoding, done) {\n      console.log('Pushing a number', chunk);\n      this.push(chunk);\n      done();\n    }\n  }))\n  .pipe(new Runner().asStream('double'))\n  .pipe(new Transform({\n    objectMode: true,\n    transform: function(chunk, encoding, done) {\n      console.log('Result is', chunk)\n      done();\n    }\n  }))\n  .on('end', () =\u003e {\n    console.log('End!!!')\n  })\n```\n\n**Start redis**\n\n`docker run -p 6379:6379 redis`\n\n**Run program**\n\n1. `node example/computing.js`\n2. `node example/run.js`\n\n\n# TODO\n\n[ ] - Logging\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitliner%2F1-of","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbitliner%2F1-of","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitliner%2F1-of/lists"}