Massively parallel GPU programming on JavaScript, simple and clean.
WebMonkeys is a JavaScript library that enables massively parallel GPU programming through a simple API for spawning thousands of concurrent tasks. It abstracts away the complexity of WebGL, which is the only reliable way to access the GPU in browsers, by automatically handling data conversion between JavaScript numbers and GPU textures, shader compilation, and result retrieval. The library works in both browser environments (via browserify) and Node.js, uses GLSL 1.0 as its core language with extensions for array access and indexing, and requires no WebGL extensions. The project demonstrates practical applications including array processing, vector operations, and cryptocurrency mining, while providing performance optimization strategies for managing CPU-GPU data transfer and shader caching.