Bun Workers
Executes parallel processing, worker pools, and background tasks using Web Workers and Node.js worker_threads in Bun.
Bun Workers equips Claude Code with deep implementation patterns for multithreading and parallel execution within the Bun runtime environment. It guides developers through standard Web Workers, Node.js worker_threads compatibility, zero-copy data transfer using Transferable Objects, and thread-safe shared memory via SharedArrayBuffer and Atomics. Whether you are building resilient worker pools, offloading CPU-intensive calculations, or implementing message channels for worker-to-worker communication, this skill ensures optimal throughput and thread safety.
Key Features
01Zero-copy memory transfers and thread-safe SharedArrayBuffer with Atomics
02Parallel mapping and chunked progress reporting for CPU-heavy tasks
03239 GitHub stars
04Native Web Workers and Node.js worker_threads integration in Bun
05Reusable WorkerPool patterns for managing concurrent background job queues
06Inter-worker direct communication using MessageChannel and MessagePort
Use Cases
01Offloading CPU-intensive operations like data parsing, hashing, or mathematical modeling
02Sharing state and high-performance buffers across threads with zero-copy transfers
03Managing worker pools to process high-throughput background task queues concurrently