{"id":30561079,"url":"https://github.com/pouchlabs/pqueue","last_synced_at":"2025-08-30T13:03:09.835Z","repository":{"id":311320952,"uuid":"1043373596","full_name":"pouchlabs/pqueue","owner":"pouchlabs","description":"A worker pool for bun,nodejs,browser,deno..run cpu intensive tasks in parallel.","archived":false,"fork":false,"pushed_at":"2025-08-23T18:19:24.000Z","size":20,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-24T06:44:36.145Z","etag":null,"topics":["browser","bunjs","nodejs","queue","worker","worker-pool","worker-threads"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/pouchlabs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"license.md","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,"zenodo":null},"funding":{"github":null,"patreon":null,"open_collective":null,"ko_fi":"pouchlabs","tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"lfx_crowdfunding":null,"polar":null,"buy_me_a_coffee":"pouchlabs","thanks_dev":null,"custom":null}},"created_at":"2025-08-23T18:03:40.000Z","updated_at":"2025-08-23T18:19:27.000Z","dependencies_parsed_at":"2025-08-24T07:45:57.911Z","dependency_job_id":"6e82c8ad-8288-47bf-b096-cd5dbe9fdd7b","html_url":"https://github.com/pouchlabs/pqueue","commit_stats":null,"previous_names":["pouchlabs/pqueue"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/pouchlabs/pqueue","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pouchlabs%2Fpqueue","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pouchlabs%2Fpqueue/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pouchlabs%2Fpqueue/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pouchlabs%2Fpqueue/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pouchlabs","download_url":"https://codeload.github.com/pouchlabs/pqueue/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pouchlabs%2Fpqueue/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272381888,"owners_count":24924824,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-27T02:00:09.397Z","response_time":76,"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":["browser","bunjs","nodejs","queue","worker","worker-pool","worker-threads"],"created_at":"2025-08-28T11:40:12.053Z","updated_at":"2025-08-28T11:40:17.554Z","avatar_url":"https://github.com/pouchlabs.png","language":"TypeScript","funding_links":["https://ko-fi.com/pouchlabs","https://buymeacoffee.com/pouchlabs"],"categories":[],"sub_categories":[],"readme":"# @pouchlab/worker-pool\nA worker pool for bun,nodejs,browser,deno..run cpu intensive tasks in parallel.\n\n## install\n\n```bash\n  npm i @pouchlab/worker-pool\n```\n\n## usage\n```js\n  import Pqueue from \"@pouchlab/worker-pool\";\n\nlet p = new Pqueue({numWorkers:5})\n\np.addJob({id: \"one\",delay:0,fn:async function (){\n  return {mm:\"h\" }   \n}}) \n// for(let i=0;i\u003c 10;i++){\n// p.addJob({id: \"two\"+i ,delay:1000,fn:async function (){\n//   return {mm:\"h\" }  \n// }})   \n// }  \n\np.addJob({id: \"one2\",delay:0,fn: async function (){\n  return {mm:\"h\" }  \n}}) \n    //listens for completed jobs\n p.onCompleted((d)=\u003e{console.log(d,\"g\")})\n\n//listens for errors on workers\n  p.workers.onError(er=\u003econsole.log(er,\"er\"))   \n\n//listens for failed jobs\np.onError((e)=\u003econsole.log(e))\n\n//on failed jobs\np.onFailedJobs((j)=\u003econsole.log(j))\n\n//clear all completed jobs to free memory\nconsole.log(await p.clear())\n```\n# support\nsupport the development of this project,financial and code contribution are welcomed.\nMade with love by Pouchlabs","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpouchlabs%2Fpqueue","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpouchlabs%2Fpqueue","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpouchlabs%2Fpqueue/lists"}