{"id":21984584,"url":"https://github.com/r-k-b/backpressure-queue","last_synced_at":"2025-07-22T11:05:02.417Z","repository":{"id":25524241,"uuid":"104304515","full_name":"r-k-b/backpressure-queue","owner":"r-k-b","description":"Pipe nodejs streams into an async.queue for parallelisation, get backpressure when the queue is full.","archived":false,"fork":false,"pushed_at":"2025-07-13T11:30:01.000Z","size":1068,"stargazers_count":8,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-14T06:14:08.075Z","etag":null,"topics":["backpressure","parallel","queue","streams"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/backpressure-queue","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/r-k-b.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":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2017-09-21T05:12:53.000Z","updated_at":"2025-07-13T11:29:59.000Z","dependencies_parsed_at":"2023-10-16T13:30:58.610Z","dependency_job_id":"256f270c-20cc-4631-b510-72e76da48265","html_url":"https://github.com/r-k-b/backpressure-queue","commit_stats":{"total_commits":276,"total_committers":6,"mean_commits":46.0,"dds":0.4746376811594203,"last_synced_commit":"a7444dfa82d3579d61ecc1c22ad6c5b0e0bcb130"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/r-k-b/backpressure-queue","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r-k-b%2Fbackpressure-queue","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r-k-b%2Fbackpressure-queue/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r-k-b%2Fbackpressure-queue/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r-k-b%2Fbackpressure-queue/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/r-k-b","download_url":"https://codeload.github.com/r-k-b/backpressure-queue/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r-k-b%2Fbackpressure-queue/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265253483,"owners_count":23735094,"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","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":["backpressure","parallel","queue","streams"],"created_at":"2024-11-29T18:10:07.248Z","updated_at":"2025-07-22T11:05:02.401Z","avatar_url":"https://github.com/r-k-b.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# backpressure-queue\n\n![Node.js CI](https://github.com/r-k-b/backpressure-queue/workflows/Node.js%20CI/badge.svg?branch=master)\n\nReturns a Writable ObjectMode Stream that allows a certain number of\nsimultaneous promises, and triggers stream backpressure when the\nconcurrency limit is hit.\n\nErrors are swallowed.\n\nThe return value of doWork() is ignored, and cannot be retrieved.\n\nUsage:\n\n    async function foo(someItem) {\n      console.log('work done on ' + someItem)\n      return\n    }\n    \n    const w = writableQueue({doWork: foo, limitConcurrent: 2})\n    \n    someSourceStream.pipe(w)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fr-k-b%2Fbackpressure-queue","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fr-k-b%2Fbackpressure-queue","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fr-k-b%2Fbackpressure-queue/lists"}