OpenViSTAI · Agents · Blockchain · Crypto
Menu
AI Developer Tools & SDKs

ml.js

ml.js is a JavaScript library collection of machine-learning, statistics, data-processing and mathematical tools, maintained mainly for browser use and exposed to webpages through a global ML variable.

Independent OpenViST project profile, based on linked sources.

ml.js — OpenViST project profile in AI Developer Tools & SDKs.
OpenViST project illustration. See the linked sources for product details.
Understand the project

Practical overview

When it fits

Use the browser bundle when a webpage needs one or more of the collection’s listed learning, statistical or mathematical components; for Node.js, the README recommends choosing individual mljs packages.

Who it is for

  • Web developers adding machine-learning or numerical tools to browser applications.
  • JavaScript developers selecting individual mljs packages for Node.js projects.

Documented uses

  • Add clustering or principal-component analysis to a browser-based data workflow.
  • Use classifiers, regression methods, neural networks or model-evaluation tools in a JavaScript application.
  • Perform matrix, array, distance, similarity or paired x/y data operations.
Before you choose

Requirements & limits

The public GitHub repository declares an MIT license.

  • The bundle exposes its tools through a global ML variable after inclusion as a webpage script.
  • The collection includes both learning methods and supporting tools such as cross-validation, confusion matrices, matrix decompositions and array utilities.
  • The README recommends individual mljs packages for Node.js and notes that they are usually published to npm more often.

Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.

Source-based practical guide

Load ml.js in a webpage

Include the ml.js bundle in a webpage and make its global ML object available.

Before you start

  • A webpage that can include a script element.

Steps

  1. Add a script element using the versioned ml.js URL shown in the project README.

  2. Use the library through the global ML variable exposed by the UMD bundle.

Expected outcome

The webpage has access to the bundled ml.js tools through ML.

Guide limitations

  • The README documents inclusion and the global variable, but not a complete model-training or prediction workflow.
Evidence and transparency

Sources & review

Source record details
Source availability
Active
Sources checked
14 October 2026
Original website title
mljs/ml · Official homepage title · retained in its source language