Programming language: TypeScript
Tags: Mad Science    
Latest version: v1.2.0

Pipcook alternatives and similar modules

Based on the "Mad Science" category

Do you think we are missing an alternative of Pipcook or a related project?

Add another 'Mad Science' Module


A JavaScript application framework for machine learning and its engineering.


Build Types Status

Why Pipcook

With the mission of enabling JavaScript engineers to utilize the power of machine learning without any prerequisites and the vision to lead front-end technical field to the intelligention. Pipcook is to become the JavaScript application framework for the cross-cutting area of machine learning and front-end interaction.

We are truly to design Pipcook's API for front-end and machine learning applications, and focusing on the front-end area and developed from the JavaScript engineers' view. With the principle of being friendly to JavaScript, we will push the whole area forward with the machine learning engineering. For this reason we opened an issue about machine-learning application APIs, and look forward to you get involved.

What's Pipcook

The project provides subprojects including machine learning pipeline framework, management tools, a JavaScript runtime for machine learning, and these can be also used as building blocks in conjunction with other projects.


Pipcook is an open-source project guided by strong principles, aiming to be modular and flexible on user experience. It is open to the community to help set its direction.

  • Modular the project includes some of projects that have well-defined functions and APIs that work together.
  • Swappable the project includes enough modules to build what Pipcook has done, but its modular architecture ensures that most of the modules can be swapped by different implementations.


Pipcook is intended for Web engineers looking to:

  • learn what's machine learning.
  • train their models and serve them.
  • optimize own models for better model evaluation results, like higher accuracy for image classification.

If you are in the above conditions, just try it via [installation guide](docs/INSTALL.md).


Pipcook Pipeline

It's used to represent ML pipelines consisting of Pipcook plugins. This layer ensures the stability and scalability of the whole system and uses a plug-in mechanism to support rich functions including dataset, training, validations, and deployment.

A Pipcook Pipeline is generally composed of lots of plugins. Through different plugins and configurations, the final output to us is an NPM package, which contains the trained model and JavaScript functions that can be used directly.

Note: In Pipcook, each pipeline has only one role, which is to output the above-trained model you need. That is to say, the last stage of each pipeline must be the output of the trained model, otherwise, this Pipeline is invalid.

Pipcook Bridge to Python

For JavaScript engineers, the most difficult part is the lack of a mature machine learning toolset in the ecosystem. In Pipcook, a module called Boa, which provides access to Python packages by bridging the interface of CPython using N-API.

With it, developers can use packages such as numpy, scikit-learn, jieba, tensorflow, or any other Python ecology in the Node.js runtime through JavaScript.

Quick start


Prepare the following on your machine:

Installer Version Range
Node.js >= 12
npm >= 6.1

Install the command-line tool for managing Pipcook projects:

$ npm install -g @pipcook/pipcook-cli
$ pipcook init && pipcook daemon start

Occuring the download problems? We use tuna mirror to address this issue:

$ pipcook init --tuna

If want to specify the version of daemon and pipboard, we can use:

$ pipcook init 1.1.0

Or directly use option --beta to specify the beta version:

$ pipcook init --beta

Then run a pipeline:

$ pipcook run https://raw.githubusercontent.com/alibaba/pipcook/master/example/pipelines/text-bayes-classification.json


If you are wondering what you can do in Pipcook and where you can check your training logs and models, you could start from Pipboard:

open https://pipboard.vercel.app/

You will see a web page prompt in your browser, and there is a MNIST showcase on the home page and play around there.


If you want to train a model to recognize MNIST handwritten digits by yourself, you could try the examples below.

  • [pipeline-mnist-image-classification][]: pipeline for classific MNIST image classification problem.
  • [pipeline-databinding-image-classification][]: pipeline example to train the image classification task which is to classify imgcook databinding pictures.
  • [pipeline-object-detection][]: pipeline example to train object detection task which is for component recognition used by imgcook.
  • [pipeline-text-bayes-classification][]: pipeline example to train text classification task with bayes

See [here](./example) for complete list, and it's easy and quick to run these examples. For example, to do a MNIST image classification, just run the following to start the pipeline:

$ pipcook run ./example/pipelines/mnist-image-classification.json

After the above pipeline is completed, you have already trained a model at the current output directory, it's an independent NPM package and can be easily integrated in your existing system, to start a simple inference server locally, just run:

$ pipcook serve <output> -p 7682

And send the request for result:

curl --request POST 'http://localhost:7682' \
--header 'Content-Type: application/json' \
--data-raw '{
  "data": "<local path of an image>"


Please refer to English | 中文


Clone this repository:

$ git clone git@github.com:alibaba/pipcook.git

Install dependencies, e.g. via npm:

$ npm install

After the above, now build the project:

$ npm run build
  • Developer Documentation [English](./docs/contributing/guide-to-contributor.md) | [中文](./docs/zh-cn/contributing/guide-to-contributor.md)
  • [Project Guide](./docs/meta/PROJECT_GUIDE.md)
  • Roadmap, 2020



Download DingTalk (an all-in-one free communication and collaboration platform) here: English | 中文

Gitter Room

Who's using it


[Apache 2.0](./LICENSE)

*Note that all licence references and agreements mentioned in the Pipcook README section above are relevant to that project's source code only.