What is ComputeKit?
ComputeKit is a tiny toolkit that allows frontend developers to run heavy computations using WebAssembly + Web Workers with a simple async API.
Why use it?
- No Rust required: Write compute functions in TypeScript-like AssemblyScript.
- Non-blocking: Calculations run in a Web Worker, keeping the UI buttery smooth (60fps).
- Automatic Workers: No need to manually manage `postMessage` or `worker.js` files.
Example Usage
import { compute } from '@computekit/core';
// Define function in ./compute/fib.as
const result = await compute.fibonacci(1000);
console.log(result); // UI never froze!
Performance
WebAssembly (WASM) runs at near-native speed. Combined with parallel processing via Workers, you can unlock performance previously impossible in the browser.