stdlib brings mathematics, statistics, streams, and data utilities to JavaScript and TypeScript in browsers and Node.js, with a decomposable package layout.
Overview
stdlib is a standard library focused on numerical and scientific computing for JavaScript and TypeScript. It targets execution in web browsers and Node.js and combines JavaScript with native C where needed for performance.
The project splits functionality into many small packages so applications can import only what they need. Coverage spans math, statistics, data processing, streams, and common utilities expected from a language standard library.
Documentation, examples, and community channels support contributors who want numerical computation to run well on the web. Users install packages through the project's published modules rather than running a standalone application.
Key features
- Mathematics and statistics routines
- Decomposable package architecture
- Browser and Node.js execution
- Data processing utilities
- Stream helpers
- Documented APIs
- Native C acceleration
- TypeScript-friendly usage
Use cases
- Scientific computing in JavaScript
- Statistics in web apps
- Numerical pipelines on Node.js
- Teaching maths in the browser