stdlib  by stdlib-js

JavaScript/Node.js standard library for numerical and scientific computation

created 9 years ago
5,298 stars

Top 9.7% on sourcepulse

GitHubView on GitHub
Project Summary

stdlib provides a comprehensive, decomposable standard library for JavaScript and Node.js, focusing on numerical and scientific computation. It aims to bring robust, high-performance mathematical, statistical, and data processing capabilities to the web, targeting developers who need advanced computational tools in JavaScript environments, akin to Python or R.

How It Works

stdlib is built with a fully decomposable architecture, allowing users to install and use individual packages or entire namespaces. This modularity enables fine-grained control over dependencies and bundle sizes. The library includes native add-ons for performance-critical operations, with pure JavaScript fallbacks, and emphasizes rigorous testing, documentation, and measurement for its extensive collection of functions.

Quick Start & Requirements

  • Install entire project: npm install @stdlib/stdlib
  • Install individual packages: npm install @stdlib/ndarray-array
  • Install namespaces: npm install @stdlib/math
  • Command-line utility/REPL: npm install -g @stdlib/stdlib
  • Dependencies: Node.js, npm (or yarn). TypeScript declaration files are included for type safety.
  • Resources: [Homepage][stdlib-homepage], [Documentation][stdlib-documentation]

Highlighted Details

  • 150+ special math functions.
  • 35+ probability distributions with PDF, CDF, and quantile support.
  • 40+ seedable pseudorandom number generators.
  • Extensive utilities for data transformation, functional programming, and assertions.
  • Includes sample datasets and a plotting API.
  • Supports bundling with Browserify/Webpack and ES Modules/UMD formats.
  • Deno support via dedicated branches.

Maintenance & Community

  • Community Chat: [Gitter][stdlib-gitter]
  • Social Media: [Twitter][stdlib-twitter]
  • Events: [Google Calendar][stdlib-public-calendar] including [open office hours][stdlib-office-hours].
  • Support: [Open Collective][open-collective-stdlib]

Licensing & Compatibility

  • The README does not explicitly state a license. Compatibility for commercial use or closed-source linking is not specified.

Limitations & Caveats

  • The license is not clearly stated in the README, which may pose a risk for commercial adoption. Installation of nested namespaces (e.g., math/base) is not supported; users must install top-level namespaces or individual packages.
Health Check
Last commit

20 hours ago

Responsiveness

1 day

Pull Requests (30d)
228
Issues (30d)
98
Star History
220 stars in the last 90 days

Explore Similar Projects

Starred by Andrej Karpathy Andrej Karpathy(Founder of Eureka Labs; Formerly at Tesla, OpenAI; Author of CS 231n), Georgios Konstantopoulos Georgios Konstantopoulos(CTO, General Partner at Paradigm), and
7 more.

ThunderKittens by HazyResearch

0.6%
3k
CUDA kernel framework for fast deep learning primitives
created 1 year ago
updated 4 days ago
Starred by Andrej Karpathy Andrej Karpathy(Founder of Eureka Labs; Formerly at Tesla, OpenAI; Author of CS 231n), Tim J. Baek Tim J. Baek(Founder of Open WebUI), and
5 more.

gemma.cpp by google

0.1%
7k
C++ inference engine for Google's Gemma models
created 1 year ago
updated 1 day ago
Starred by Andrej Karpathy Andrej Karpathy(Founder of Eureka Labs; Formerly at Tesla, OpenAI; Author of CS 231n), Nat Friedman Nat Friedman(Former CEO of GitHub), and
32 more.

llama.cpp by ggml-org

0.4%
84k
C/C++ library for local LLM inference
created 2 years ago
updated 18 hours ago
Feedback? Help us improve.