0.0.10 • Published 4 months ago

@hybrid-compute/worker v0.0.10

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

@hybrid-compute/worker

Commitizen friendly PRs Welcome SemVer 2.0 npm version issues license size npm GitHub Repo stars codecov build

Part of the @hybrid-compute monorepo.

See the main README for full project overview, usage examples, architecture, and contribution guidelines.

API Docs

ThreadedCompute API Documentation

📦 Package Info

This package provides:

  • A compute backend that runs tasks in a dedicated Web Worker
  • Asynchronous task messaging via postMessage
  • Useful for offloading CPU-intensive work from the main thread

Usage

npm install @hybrid-compute/worker
import { createThreadedCompute } from '@hybrid-compute/worker';

const threaded = createThreadedCompute(
  new URL('./worker.js', import.meta.url),
  ['add']
);

Contributing

Want to contribute? Please read the CONTRIBUTING.md and CODE_OF_CONDUCT.md

License

This project is licensed under the MIT License - see the LICENSE file for details.

Sponsor me

I'm an Open Source evangelist, creating stuff that does not exist yet to help get rid of secondary activities and to enhance systems already in place, be it documentation, tools or web sites.

The sponsorship is an unique opportunity to alleviate more hours for me to maintain my projects, create new ones and contribute to the large community we're all part of :)

Support me on GitHub Sponsors.

p.s. Ukraine is still under brutal Russian invasion. A lot of Ukrainian people are hurt, without shelter and need help. You can help in various ways, for instance, directly helping refugees, spreading awareness, putting pressure on your local government or companies. You can also support Ukraine by donating e.g. to Red Cross, Ukraine humanitarian organisation or donate Ambulances for Ukraine.

0.0.10

4 months ago

0.0.9

5 months ago

0.0.8

5 months ago

0.0.7

5 months ago

0.0.6

5 months ago

0.0.5

5 months ago

0.0.4

5 months ago

0.0.3

5 months ago

0.0.2

5 months ago

0.0.1

5 months ago