Agent skill · software engineering · secondsky

bun-workers

Use for Web Workers in Bun, worker_threads, parallel processing, and background tasks.

Why this skill is useful

Provides specific patterns and examples for implementing parallel processing with Bun's Web Workers and Node.js worker_threads that the AI wouldn't reliably generate on its own.

What it needs

Requires bun installed locally. About 4k tokens when loaded. Last updated 2026-08-06. 204 stars on the source repository.

What this skill does

Bun Workers Bun supports Web Workers and Node.js workerthreads for parallel execution. Web Workers Basic Usage Worker with URL Transferable Objects Shared Memory Node.js workerthreads Worker Pool Patterns CPU-Intensive Tasks Parallel Map Message Channel Error Handling Termination Common Errors Error Cause Fix ------- ------- ----- Worker not found Wrong URL Check worker file path Cannot serialize Non-transferable data Use transferable objects DataCloneError Functions/DOM in message Send only serializable data Worker terminated Premature terminate Check termination logic When to Load References Load references/optimization.md when: Worker pool tuning Memory management Performance profiling Load references/patterns.md when: Complex coordination Backpressure handling Error recovery

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills secondsky/bun-workers

View the source on GitHub

Browse the @skills marketplace