# workerpoolify **Repository Path**: mirrors_mapbox/workerpoolify ## Basic Information - **Project Name**: workerpoolify - **Description**: A smart worker pool for Browserify. - **Primary Language**: Unknown - **License**: ISC - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-09 - **Last Updated**: 2025-09-27 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## workerpoolify [![Build Status](https://travis-ci.org/mapbox/workerpoolify.svg?branch=master)](https://travis-ci.org/mapbox/workerpoolify) An experimental worker pool for Browserify-bundled projects. Unlike [webworkify](https://github.com/substack/webworkify), it allows you to create many lightweight "workers" with an N:M ratio to a pool of native web workers. When you create a new pooled worker, its module dependencies are lazily loaded on the worker side with some clever tricks. ### Example #### main.js ```js var workerpoolify = require('workerpoolify'); var PooledWorker = workerpoolify(4); var worker = new PooledWorker(require('./worker')); worker.onmessage = function (type, data) { if (type === 'foo') { console.log('got message foo'); } }; worker.send('bar'); ``` #### worker.js ```js module.exports = function TestWorker() { console.log('worker created'); this.onmessage = function (type, data) { if (type === 'bar') { console.log('worker: got message bar'); this.send('foo'); } }; };