1. tinypool
A minimal and tiny Node.js Worker Thread Pool implementation, a fork of piscina, but with fewer features
tinypool
Package: tinypool
Created by: tinylibs
Last modified: Mon, 25 Mar 2024 18:05:27 GMT
Version: 0.8.3
License: MIT
Downloads: 16,665,374
Repository: https://github.com/tinylibs/tinypool

Install

npm install tinypool
yarn add tinypool

Tinypool - the node.js worker pool ๐Ÿงต

Piscina: A fast, efficient Node.js Worker Thread Pool implementation

Tinypool is a fork of piscina. What we try to achieve in this library, is to eliminate some dependencies and features that our target users don't need (currently, our main user will be Vitest). Tinypool's install size (38KB) can then be smaller than Piscina's install size (6MB). If you need features like utilization or NAPI, Piscina is a better choice for you. We think that Piscina is an amazing library, and we may try to upstream some of the dependencies optimization in this fork.

  • โœ… Smaller install size, 38KB

  • โœ… Minimal

  • โœ… No dependencies

  • โœ… Physical cores instead of Logical cores with physical-cpu-count

  • โœ… Supports worker_threads and child_process

  • โŒ No utilization

  • โŒ No NAPI

  • Written in TypeScript, and ESM support only. For Node.js 14.x and higher.

In case you need more tiny libraries like tinypool or tinyspy, please consider submitting an RFC

Docs

Read full docs on GitHub.

RELATED POST

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin