# stdlib-js/stdlib

✨ The fundamental numerical library for JavaScript and TypeScript. ✨

Repository: https://github.com/stdlib-js/stdlib
Canonical: https://ross.abutalabs.com/products/stdlib
Homepage: https://stdlib.io
Language: JavaScript
License: Apache-2.0
License Family: permissive
Topics: javascript, stdlib, nodejs, library, standard, math, js, mathematics, science, scientific, scientific-computing, node-js, node, statistics, stats, utilities, utils, numerical-computing, numerical, typescript
Last push: 2026-08-26T22:20:14+00:00

## Health v2 (maintenance only)
Score: 95/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 87, longevity 100
- inputs: {"age_days": 3814, "days_push": 7, "days_rel": 88, "gap_med": 0, "n_releases_24m": 4}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 5943, forks 1247 (observed 2026-08-28T04:09:32.611285+00:00)

## What it is
stdlib is a standard library for JavaScript and TypeScript with an emphasis on numerical and scientific computing, providing math, statistics, probability distributions, PRNGs, plotting, and general utilities. It runs in browsers and Node.js, is fully decomposable into individual packages, and includes a REPL, benchmark framework, and extensive documentation.

## Use cases
- compute statistics and math functions in JavaScript
- evaluate probability distributions and PDFs/CDFs in Node.js
- generate random numbers with seedable PRNGs
- plot data for exploratory analysis in the browser
- validate and transform data with assertion utilities
- do scientific computing on the web
- find a JavaScript equivalent to NumPy or R's stats functions

## When to choose
- you need rigorous, well-tested numerical or statistical routines in JS/TS
- you want a batteries-included standard library for Node.js or browsers
- you need seedable PRNGs or many probability distributions
- you want to bundle scientific computing into a web app

## When to avoid
- you need GPU-accelerated or massively parallel numerical computing
- your project is in Python, R, or another language with mature scientific stacks
- you only need one small utility and want a minimal dependency

## Facets
- artifact type: library
- maturity: active
- function: math, data-science, data-visualization, benchmarking, testing
- domain: mathematics, data-science, developer-tools
- platform: browser, cross-platform
- tags: standard-library, statistics, numerical-computing, probability-distributions, prng, typescript, blas, repl, scientific-computing, algorithms, nodejs, javascript

## Member repositories
- stdlib-js/stdlib (main) score 95

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:32.611285+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:50:45.449199+00:00, confidence not recorded.
  - readme: https://github.com/stdlib-js/stdlib (fetched 2026-08-28T04:09:32.611285+00:00, sha df67c3d4f5e4)
  - homepage: https://stdlib.io (fetched 2026-08-29T08:46:40.604404+00:00, sha f2cec8357e4f)
  - site_page: https://stdlib.io/docs/api/latest (fetched 2026-08-29T08:46:40.613642+00:00, sha 8da4f0bfc146)
  - site_page: https://stdlib.io/docs/api/latest/@stdlib/math (fetched 2026-08-29T08:46:40.616037+00:00, sha d48cc6f8af8e)
  - site_page: https://stdlib.io/docs/api/latest/@stdlib/plot (fetched 2026-08-29T08:46:40.617683+00:00, sha a029a7d450c1)
  - site_page: https://stdlib.io/docs/api/latest/@stdlib/utils (fetched 2026-08-29T08:46:40.619270+00:00, sha 33b836c5cd95)
- Data as of 2026-08-30T08:39:29.467469+00:00.
