hamsters.js

100% Vanilla Javascript Multithreading & Parallel Execution Library

Usage no npm install needed!

<script type="module">
  import hamstersJs from 'https://cdn.skypack.dev/hamsters.js';
</script>

README

Hamsters.js

Author: Austin K. Smith

Website: Hamsters.io

Description: 100% Vanilla Javascript Multithreading & Parallel Execution Library

License: Artistic License 2.0

npm version downloads

Environment Support

  • All major browsers Internet Explorer 9 and greater
  • ReactNative
  • Node.js
  • Javascript shell environments
  • Inside existing worker threads (Threading inside Threads)

Examples

You can find a view examples of the library in action using the links below.

Square Root

Collatz Conjecture

Installing Hamsters

HTML

ReactNative

Node.js

Using Hamsters

Initializing

The Basics

Restructoring Standard Functions

Promises

Sorting

Persistence

Transferable Objects

Debugging

Limitations

Support Hamsters.js

Hamsters.js is a self funded project, in order to provide updates and host the project website I rely on donations. Unfortunately over the years donations have been lacking, please consider donating today so I can continue to support this project, thank you. Multiple donation types are accepted including OpenCollective, PayPal, and various crypto currencies on the Hamsters.js donation page