Displaying 1 to 20 from 24 results

greenlet - 🦎 Move an async function into its own thread.

  •    Javascript

Move an async function into its own thread. A simplified single-function version of workerize.

workly - A really simple way to move a function or class to a web worker. 🏋️‍♀️→ 😄

  •    Javascript

Moving a function to a worker is really simple. The above examples only work when the class/function is not dependent on the containing scope, i.e. other libraries or global objects. But, you can create a custom worker.js file and move the code in there. In the worker, you can expose your object/function/class using workly.expose method.

worker-plugin - 🐳 Adds native Web Worker bundling support to Webpack.

  •    Javascript

Automatically bundle & compile Web Workers within Webpack. The best part? That worker constructor works just fine without bundling turned on too.




promise-worker - Promise-based messaging for Web Workers and Service Workers

  •    Javascript

A small and performant library for communicating with Web Workers or Service Workers, using Promises. Post a message to the worker, get a message back. Note that you require() two separate APIs, so the library is split between the worker.js and main file. This keeps the total bundle size smaller.

comlink-loader - Webpack loader to offload modules to Worker threads seamlessly using Comlink.

  •    Javascript

Offload modules to Worker threads seamlessly using Comlink. The goal of comlink-loader is to make the fact that a module is running inside a Worker nearly transparent to the developer.

Freelancer - :necktie: An implementation of on-the-fly defined WebWorkers that are created inline using data URIs, rather than separate physical files — for the benefit of all humanity

  •    Javascript

An implementation of on-the-fly defined WebWorkers that are created inline using data URIs, rather than separate physical files — for the benefit of all humanity..


page-bus - share an event emitter among pages and frames on the same domain

  •    Javascript

This module works offline and does not rely on any network IO.Behind the scenes, the localStorage API and the window 'storage' event is used to synchronize cross-page events.

standalone - Creates an isolated thread / process in JavaScript (Node.js and modern browsers).

  •    Javascript

Creates an isolated thread / process in JavaScript (Node.js and modern browsers). In master.js, we can use "getXXXByYYY" asynchronously, while the originally defined API is synchronous.

jsdom-worker - 👷‍♀️ Use Web Workers in Jest / JSDOM 🌈

  •    Javascript

This is an experimental implementation of the Web Worker API (specifically Dedicated Worker) for JSDOM. It does not currently do any real threading, rather it implements the Worker interface but all work is done in the current thread. jsdom-worker runs wherever JSDOM runs, and does not require Node.

tiny-worker - Tiny WebWorker for the Server

  •    Javascript

require() is available for flexible inline Worker scripts. Optional parameters args Array & options Object; see child_process.fork() documentation. To be able to debug a child process, it must have a differnt debug port than the parent. Tiny worker does this by adding a random port within a range to the parents debug port. The default Range is [1, 300], it can be changed with the setRange(min, max) method. To disable any automatic port redirection set options.noDebugRedirection = true.

mindwallet - A wallet generator based on memwallet for bitcoin, ethereum, monero and litecoin using argon2 instead of scrypt

  •    HTML

MindWallet is a deterministic cryptocurrency address generator heavily based on MemWallet but using argon2 instead scrypt as hashing function, it's like WarpWallet, but it works for Ethereum, Litecoin, Monero and Bitcoin. You never have to save or store your private key anywhere. Just pick a really good password - many random words, for example - and never use it for anything else. Given the same Passphrase and Salt, MemWallet will always generate the same address and private key, so if you only need to remember your password to access your funds.

labor

  •    Javascript

Maintain a pool of Web Workers with callbacks. Based on Ilmari Heikkinen's WorkCrew library. Easily wrap existing libraries in Web Worker functionality. Works in the browser and node.js. See the example folder for a demonstration of how the library should be used.

ExtJS-WebWorker - Ext

  •    Javascript

ExtJS-WebWorker is an extension to handle and use the HTML5 WebWorker with ExtJS and Sencha Touch. It has two classes: Ext.ux.WebWorker and Ext.ux.WebWorkerManager The first one is a wrapper for standard HTML5 WebWorker and it provides a lot of interesting and easy-to-use features. The second one is a singleton to register different Ext.ux.WebWorker and it provides functions to work with every registered webworker at the same time.

perfnow.js - 0.14 kb window.performance.now high resolution timer polyfill with Date fallback

  •    Javascript

perfnow.js is a micro-library written in both CoffeeScript and JavaScript. Safely use microsecond precision timing using this 0.1 kb performance.now polyfill with Date fallback.

pseudo-function - Turn the function object to URL object.

  •    Javascript

Turn the function object to URL object. This library is useful to create web workers from inline functions.