stdlib-js/stdlib

✨ The fundamental numerical library for JavaScript and TypeScript. ✨

View on GitHub ↗Jump to charts ↓Open shareable report

Summary Information

Updated 42 minutes ago
Added to GitGenius on September 17th, 2024
Created on March 24th, 2016
Open Issues & Pull Requests: 1,366 (+0)
Number of forks: 1,247
Total Stargazers: 5,938 (+0)
Total Subscribers: 57 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 9.0 days
Mean response time: 128.8 days
90th percentile: 192.3 days
Tracked items: 1,848

How this project is maintained

Around half of the issues opened in the past year never receive a reply. 37% of open issues come from outside the core team, a mix of external reports and the maintainers' own roadmap. 55% of tracked open issues have had no activity in three months. Only 5% of issues opened in the past year have been closed. Three people close 98% of everything that gets resolved.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 408
New in 7 days: 2
Closed in 7 days: 2
Avg open age: 964 days
Stale 30+ days: 379
Stale 90+ days: 363

Recent activity

Opened in 7 days: 2
Closed in 7 days: 1
Comments in 7 days: 3
Events in 7 days: 27

Top labels

  • Good First Issue (1,581)
  • RFC (1,215)
  • Feature (1,100)
  • Accepted (896)
  • priority: Normal (810)
  • difficulty: 2 (740)
  • Statistics (669)
  • C (579)

Detailed Description

stdlib is a comprehensive standard library for JavaScript and TypeScript designed to bring numerical and scientific computing capabilities to the web and Node.js environments. Written in JavaScript with C components, the library provides a decomposable architecture that allows developers to use only the functionality they need rather than being forced to adopt an all-or-nothing approach. The project emphasizes code quality, with maintainers stressing that users can be confident in the thoroughness, rigor, documentation, testing, and measurement applied to every component.

The library encompasses an extensive collection of mathematical and statistical tools. It includes over 150 special math functions, more than 35 probability distributions with support for probability density functions, cumulative distribution functions, quantiles, and moments, and over 40 seedable pseudorandom number generators. Beyond pure mathematics, stdlib provides 200 general utilities for data transformation, functional programming, and asynchronous control flow, along with 200 assertion utilities for data validation and feature detection. The project also includes 50 sample datasets useful for testing and development purposes.

A distinctive feature of stdlib is its plot API for data visualization and exploratory data analysis, enabling users to create visualizations directly within their JavaScript environment. The library includes native add-ons for interfacing with BLAS libraries while maintaining pure JavaScript fallbacks for broader compatibility. Additional tooling includes a benchmark framework supporting TAP and a REPL environment with integrated help and examples, making it suitable for interactive numerical work.

The library is designed for multiple deployment scenarios. It can be bundled using Browserify, Webpack, and other bundlers for browser use, consumed via CDN through pre-built UMD bundles, or used as ES Modules. Every function includes TypeScript declaration files, ensuring type safety and enabling intelligent code completion in modern IDEs. Installation flexibility allows users to install individual packages, top-level namespaces, or the entire project depending on their specific needs.

Community engagement around stdlib is active and structured.