JavaScript math and AI libraries
Explore packages for mathematics, machine learning, physics, and visual programming, including TensorFlow.js, MathJax, and Blockly.
5 indexed packages. Inspect package specifications and compare alternatives according to their actual role in your application.
Packages in this category
- Cannon.js: A lightweight 3D physics engine written in JavaScript.
- MathJax: Beautiful and accessible math in all browsers. MathJax is an open-source JavaScript display engine for LaTeX, MathML, and AsciiMath notation that works in all browsers. This package includes the packaged components (install mathjax-full to get the source
- Brain.js: Neural networks in JavaScript
- TensorFlow: An open-source machine learning framework.
- Blockly: Blockly is a library for building visual programming editors.
What to compare
- Match the package to its actual role: numerical computation, model execution, physics, or visual programming.
- Review documented CPU, GPU, WebGL, WebAssembly, and native-backend requirements.
- Check whether models, fonts, or other assets are downloaded separately from the npm bundle.
- Use relevant documented accuracy and performance methods; dependency counts alone do not establish suitability.
Example package specifications
cannon
| Latest version | 0.6.2 |
|---|---|
| Runtime dependencies | 0 |
| Bundled types | Not declared |
| Gzip measurement | 34.07 KiB |
Evidence and freshness
- https://registry.npmjs.org/cannon/0.6.2 — retrieved 2026-10-29T05:08:23.131Z
- https://api.deps.dev/v3/systems/npm/packages/cannon/versions/0.6.2 — retrieved 2026-10-29T05:08:23.261Z
- https://bundlephobia.com/api/size?package=cannon%400.6.2 — retrieved 2026-10-28T23:30:37.741Z
- https://api.deps.dev/v3/systems/npm/packages/cannon/versions/0.6.2:dependencies — retrieved 2026-10-28T23:30:37.518Z
- https://api.deps.dev/v3/projects/github.com%2Fschteppe%2Fcannon.js — retrieved 2026-10-29T05:08:23.538Z
mathjax
| Latest version | 4.1.3 |
|---|---|
| Runtime dependencies | 1 |
| Bundled types | Not declared |
| Gzip measurement | 49.39 KiB |
Evidence and freshness
- https://registry.npmjs.org/mathjax/4.1.3 — retrieved 2026-10-29T05:08:20.224Z
- https://api.deps.dev/v3/systems/npm/packages/mathjax/versions/4.1.3 — retrieved 2026-10-29T05:08:20.429Z
- https://bundlephobia.com/api/size?package=mathjax%404.1.3 — retrieved 2026-10-28T23:30:38.188Z
- https://api.deps.dev/v3/systems/npm/packages/mathjax/versions/4.1.3:dependencies — retrieved 2026-10-28T23:30:37.870Z
- https://api.deps.dev/v3/projects/github.com%2Fmathjax%2FMathJax — retrieved 2026-10-29T05:08:20.816Z