qmetrics.net

Piscina

Node.js worker thread pool library

Frameworks & PlatformsDesktop/CLI app
Piscina screenshot

Piscina pools Node.js worker threads to run CPU-heavy tasks in parallel with configurable queueing, cancellation, and resource limits. It supports CommonJS, ESM, and TypeScript worker modules.

Overview

Piscina dispatches tasks to a pool of Node.js Worker threads, each running an exported function from a separate file. The main thread submits work with run(), receives promises for results, and can scale minimum and maximum thread counts, idle timeouts, and queue depth—including an auto queue limit derived from maxThreads.

The library targets fixed and variable workloads where spinning up unbounded workers would waste memory or stall the event loop. It integrates with async tracking, exposes statistics for run and wait times, and supports canceling tasks via AbortSignal or abort EventEmitters. Transferable objects can move buffers without copying when posting tasks.

Workers can export named handlers, delay readiness until async initialization completes, and participate in BroadcastChannel messaging on supported Node versions. Options cover memory resourceLimits per worker, custom FIFO or fixed task queues, backpressure when maxQueue is set, and optional Linux thread nice priorities via an add-on module.

Piscina is written in TypeScript and intended for Node.js versions that include mature worker_threads support. It was created to demonstrate disciplined pooling patterns as worker threads became common in production services.

Key features

  • Configurable worker pool sizes
  • Task cancellation support
  • Run and wait time statistics
  • Custom task queue implementations
  • Worker memory resource limits
  • CommonJS, ESM, and TypeScript workers
  • Multiple named worker exports
  • BroadcastChannel worker messaging

Use cases

  • CPU-bound work off the event loop
  • Controlled parallel image or data processing
  • Pooled workers with queue backpressure
  • Stream-fed worker pipelines

Tags

Similar software

ECC

Open-source agent engineering toolkit for coding harnesses

ECC adds planning, verification, review, memory, skills, and security scanning to coding agents such as Claude Code, Codex, and Cursor. It installs as plugins, packages, and managed adapters across multiple harnesses.

★ 311.7k⟳ 8 days agoMIT
Frameworks & PlatformsDesktop/CLI app

React

JavaScript library for web and native user interfaces

React helps developers build interfaces from reusable components that manage their own state. Views update declaratively when underlying data changes.

★ 253k⟳ 2 days agoMIT
Frameworks & PlatformsDesktop/CLI app

Flutter

Open-source UI framework for multi-platform apps from one codebase

Flutter is an SDK for building user experiences for mobile, web, and desktop from a single codebase. It uses the Dart language and compiles to native machine code or web targets.

★ 181.5k⟳ todayBSD-3-Clause
Open Source Alternative to:Ionic Enterprise

Bootstrap

Responsive HTML, CSS, and JavaScript front-end toolkit

Bootstrap supplies CSS, JavaScript, and Sass-based styles for building responsive, mobile-first sites. It ships prebuilt grid layouts, UI components, and optional JavaScript plugins.

★ 175.1k⟳ 2 days agoMIT

Langflow

Visual low-code builder for AI agents and workflows

Langflow is a visual builder for AI agents and workflows. Flows can be customized in Python and deployed as an API or as an MCP server, with support for major LLMs and vector databases.

★ 157k⟳ todayMIT
Open Source Alternative to:Relevance AIVoiceflow

LangChain

Framework for agents and LLM-powered applications

LangChain helps developers chain interoperable components and integrations to build agents and LLM-powered applications. It offers a standard interface for models, embeddings, vector stores, and related pieces.

★ 150.1k⟳ 2 days agoMIT