Skip to content

workio-js/workio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

⚡️ Web Worker with I/O ⚡️

Static Badge Static Badge Static Badge Static Badge Static Badge Static Badge

// module.ts
// no import required!

export const sum = (a: number, b: number) => a + b;
// main.ts

import { Workio } from "workio";

using instance = await Workio("./module.ts", import.meta.url);

console.log(await instance.sum(1, 2)); // "3" 

// The instance will be terminated when the scope ends!

Workio is a JavaScript library for building and managing Web Workers.
Unlike Comlink, no external module imports are required on the worker side script.

Touch-and-Go: No more worker.js to build additional off-thread operations. offload to comfortable worker threads with single line.
I/O Optimization: Caching is available for large primitives.
This is how you dropdown.
Thin and Safe:
This is how you dropdown.

Visit StackBlitz for your first step into the developer experience at Workio.

Open in StackBlitz