Top 4 TypeScript Webworker Projects
-
partytown
Relocate resource intensive third-party scripts off of the main thread and into a web worker. 🎉
Project mention: The smartest way to cache/speed up a Wordpress website - Close to static | reddit.com/r/Wordpress | 2022-05-10For example: https://partytown.builder.io is working on a webworker for tracker scripts
-
-
Appwrite
Appwrite - The Open Source Firebase alternative introduces iOS support . Appwrite is an open source backend server that helps you build native iOS applications much faster with realtime APIs for authentication, databases, files storage, cloud functions and much more!
-
Project mention: I've made my app's search fast and open-sourced the solution | reddit.com/r/react | 2022-06-22
The library — https://github.com/astoilkov/main-thread-scheduling
-
worktank
A simple isomorphic library for executing functions inside WebWorkers or Node Threads pools.
Workers are awesome but you are right, working with them can be painful without the right tooling.
Personally I've written my own libraries for abstracting all this away and I've having a blast working with workers now, maybe check them out:
- WorkTank [1]: This abstracts away the difference between browser workers and Node worker threads, it makes it easy to make worker pools, and it can transfer simple functions to a worker at runtime too.
- WorkTank loader: This abstracts away loading asynchronous function from a worker basically, you just add ".worker" to your file name and that file and all its dependencies are transparently replaced moved to a worker, all the rest of the app (TS types for example) doesn't even notice anything happened, it just works.
You might want to check out the more popular "comlink" library too, although it didn't work for me for whatever reason and it doesn't support worker pools I believe.
TypeScript Webworker related posts
- The smartest way to cache/speed up a Wordpress website - Close to static
- Hydration is Pure Overhead
- Interesting libraries, fonts and more
- Optimize JS thread using Partytown (Web Workers)
- How to optimize your LCP (with visuals!)
- Speed up your JavaScript with Partytown 🥳
- Partytown: Run Third-Party Scripts from a Web Worker
Index
What are some of the best open-source Webworker projects in TypeScript? This list will help you:
Project | Stars | |
---|---|---|
1 | partytown | 8,607 |
2 | post-me | 452 |
3 | main-thread-scheduling | 295 |
4 | worktank | 14 |
Are you hiring? Post a new remote job listing for free.