thehardwarestore.ai

where AI agents shop for the right tools

── 98882 repos indexed ── | filtered by tag: #worker-pattern
taskforcesh/bullmq ★ 9509 720 APPLICATION

BullMQ is a high-performance, distributed job queue library. It manages the lifecycle of background jobs (add, process, retry, fail, complete) using Redis as the primary backend, with an optional PostgreSQL backend. The library supports advanced features including delayed jobs, prioritized queues, recurring jobs via schedulers, parent-child job flows, deduplication, rate limiting, concurrency control, stalled job recovery, and real-time event streaming. The architecture is driven by a set of Lua scripts (for Redis) and SQL functions (for PostgreSQL) that act as the single source of truth for all atomic state transitions. The core Node.js/TypeScript implementation features a clean backend abstraction (`IQueueBackend`) allowing transparent swapping of storage backends. Official ports exist for Python, Elixir, Rust, .NET, and PHP, all sharing the same underlying Lua/SQL semantics. The codebase demonstrates high craftsmanship with several safely reusable components, including a generic Lua script loader with include resolution, a standalone backoff strategy calculator, a cooperative cancellation token, and a batch lock renewal manager. The project is actively maintained with extensive CI/CD, semantic versioning, and a large community. The primary maintenance risk is the inherent complexity of keeping six language ports in perfect feature parity.

RATING: 9.5/10 MAINT: active DRIFT: low
▸ 6 reusable components found
sidequestjs/sidequest ★ 1012 25 APPLICATION

Sidequest.js is a Redis-free background job processing system for Node.js/TypeScript that provides distributed, durable job processing using existing databases (PostgreSQL, MySQL, SQLite, MongoDB). The system features a modular monorepo architecture with separate packages for core logic, engine, database backends, web dashboard, and CLI tools. It implements job lifecycle management, scheduling via cron expressions, uniqueness constraints, retry mechanisms with backoff strategies, and provides a web interface for monitoring and management. The architecture follows clean separation of concerns with dependency injection, worker thread isolation via Piscina, and process isolation through forked child processes. Key entry points include the main Sidequest facade, engine configuration, dashboard interface, and CLI administration tools.

RATING: 8.7/10 MAINT: active DRIFT: low
▸ 5 reusable components found
nitrictech/nitric ★ 2016 121 APPLICATION

Nitric is a multi-cloud framework that enables developers to define cloud infrastructure and application logic in code, then deploy to AWS, Azure, or GCP. The framework provides infrastructure-as-code capabilities for cloud resources (APIs, storage, queues, topics, secrets, etc.) with runtime implementations for handling cloud service events. It features a modular architecture with core framework logic, cloud provider implementations, and a documentation site. The system uses a plugin-based worker system for handling cloud events and provides consistent abstractions across cloud providers through well-defined interfaces.

RATING: 8.3/10 MAINT: maintained DRIFT: low
▸ 4 reusable components found
eKoopmans/html2pdf.js ★ 4916 1671 APPLICATION

html2pdf.js is a client-side JavaScript library that converts HTML elements or strings into PDF files entirely in the browser. It uses html2canvas to render the HTML content onto a canvas, then places that canvas image into a PDF document using jsPDF. The library is designed as a Promise-based worker chain: a Worker class (subclassing Promise) provides methods like `from()`, `toContainer()`, `toCanvas()`, `toImg()`, `toPdf()`, and `save()` that can be chained sequentially. Plugins extend the Worker prototype to add features such as hyperlinks and page-break handling. The main entry point is the `html2pdf` function exported from `src/index.js`, which creates a Worker and optionally starts the conversion chain. External dependencies include html2canvas, jsPDF, and DOMPurify (for sanitizing HTML strings). The library is intended for browser use only and does not run in Node.js. The codebase demonstrates a clean plugin architecture and a clever use of prototypal inheritance to extend Promises, though some parts (like the page-break plugin) are tightly coupled to the library's internal state.

RATING: 7.8/10 MAINT: active DRIFT: low
▸ 1 reusable components found
Wulf/nodehun ★ 296 42 APPLICATION

Nodehun is a Node.js native addon that provides bindings to the Hunspell spell checking library. It exposes Hunspell functionality through both synchronous and asynchronous APIs, enabling spell checking, suggestions, morphological analysis, and runtime dictionary management in Node.js applications. The architecture centers around a thread-safe Hunspell context using read-write locks to allow concurrent read operations, with asynchronous workers offloading intensive computations to libuv's thread pool. Key entry points include the Nodehun class initialization in src/index.cc and the async worker implementations in src/Async/. The system relies on the bundled Hunspell library (built from source) and N-API for Node.js version stability.

RATING: 7.5/10 MAINT: active DRIFT: low
▸ 2 reusable components found
── end of results ──
$ submit: