{"repo":"piscinajs/piscina","free":true,"listed":false,"github":"https://github.com/piscinajs/piscina","clone":"git clone https://github.com/piscinajs/piscina.git","description":"A fast, efficient Node.js Worker Thread Pool implementation","language":"TypeScript","stars":5185,"topics":["nodejs","worker-threads","pooling","performance","nearform-research","multithreading","worker-pool","thread-pool","piscinajs"],"license":null,"category":"dev-tools","readme_excerpt":"piscina - the node.js worker pool - ✔ Fast communication between threads - ✔ Covers both fixed-task and variable-task scenarios - ✔ Supports flexible pool sizes - ✔ Proper async tracking integration - ✔ Tracking statistics for run and wait times - ✔ Cancellation Support - ✔ Supports enforcing memory resource limits - ✔ Supports CommonJS, ESM, and TypeScript - ✔ Custom task queues - ✔ Optional CPU scheduling priorities on Linux Written in TypeScript. For Node.js 24.x and higher. [MIT Licensed][]. Documentation - Website - piscina - the node.js worker pool - Documentation - Piscina API - Example - Exporting multiple worker functions - Cancelable Tasks - Delaying Availability of Workers - Backpressure - Out of scope asynchronous code - Broadcast a message to all worker threads - Additional Examples - Class: Piscina - [Constructor: new Piscina([options]) ](#constructor-new-piscinaoptions) - [Method: run(task[, options]) ](#method-runtask-options) - Method: destroy() - [Method: close([options]) ](#method-closeoptions) - Event: 'error' - Event: 'drain' - Event: 'needsDrain' - Event: 'message' - Property: completed (readonly) - Property: duration (readonly) - Property: options (readonly) - Property: runTime (readonly) - Property: threads (readonly) - Property: idleThreads (readonly) - Property: queueSize (readonly) - Property: needsDrain (readonly) - Property: utilization (readonly) - Property: waitTime (readonly) - Static property: isWorkerThread (readonly) - Static property: versi","default_branch":null,"files":null,"tree":[],"storefront":"/r/piscinajs","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/piscinajs/piscina/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}