First, thanks for threads.js — it's a great API and has been hugely useful.
Since the project hasn't seen active maintenance recently, I've published a maintained fork, threadsx (npm install threadsx), for anyone currently blocked. The public API is unchanged. It addresses several open issues here:
Docs: https://threadsx.jmaleonard.com · Changelog: v2.0.0
Happy to send fixes back upstream too if you'd ever like to pick maintenance back up. Not trying to step on the project — just want to help folks who are stuck. 🙏
First, thanks for threads.js — it's a great API and has been hugely useful.
Since the project hasn't seen active maintenance recently, I've published a maintained fork, threadsx (
npm install threadsx), for anyone currently blocked. The public API is unchanged. It addresses several open issues here:new Worker(new URL("./worker", import.meta.url))form — nothreads-plugin(Can't get threads.js working with TypeScript/React/Webpack 5 #387, No instantiations of threads.js workers found in TypeScript/Webpack setup #466, Could i use this in my vite project? #483)Thread.terminate()— fixed a worker/timer leak (Node 14.5 - process does not exit after all Threads terminated #345)worker_threads(drops thetiny-workerfallback)Docs: https://threadsx.jmaleonard.com · Changelog: v2.0.0
Happy to send fixes back upstream too if you'd ever like to pick maintenance back up. Not trying to step on the project — just want to help folks who are stuck. 🙏