// the find
danielroe/nuxt-workers
SSR-safe, zero-config Web Workers integration for Nuxt.
A Nuxt module that lets you drop TypeScript files into a `workers/` directory and call their exports directly from Vue components — the module handles bundling, SSR fallback, and postMessage wiring automatically. It's from Daniel Roe, a Nuxt core team member, which means the internals are idiomatic and it's likely to stay maintained. Aimed at Nuxt 3+ apps that need to offload CPU-heavy work without setting up worker infrastructure by hand.
The zero-config ergonomics are genuinely good — you write a normal exported function, call it like a normal async function, and the module handles everything else. SSR safety is solved correctly: worker calls fall through to direct execution on the server side rather than throwing or silently doing nothing. Being from a core Nuxt contributor means the module-layer and auto-import integration is done properly, not hacked around the edges. The roadmap is honest about what's missing, which is a good sign.
Worker auto-shutdown and deduplication are both still on the roadmap — in a real app you will spawn duplicate workers across components if you're not careful, and they'll sit idle forever. No webpack support yet, so if you're on an older Nuxt setup or a monorepo that can't switch bundlers, you're blocked. There's no way to pass non-serializable arguments and get a useful error at the type level — the roadmap acknowledges this gap, but until it lands you'll get silent failures or runtime exceptions when someone tries to pass a class instance or a function. Low fork count (8) for a module this useful suggests it hasn't been stress-tested much outside the author's own use cases.