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.
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.
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
Add a script element using the versioned ml.js URL shown in the project README.
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.
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

