# scijs/ndarray

📈 Multidimensional arrays for JavaScript

Repository: https://github.com/scijs/ndarray
Canonical: https://ross.abutalabs.com/products/scijs-ndarray
Language: JavaScript
License: MIT
License Family: permissive
Last push: 2026-08-26T03:58:40+00:00

## Health v2 (maintenance only)
Score: 77/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 99, release rhythm 35, longevity 100
- inputs: {"age_days": 4937, "days_push": 7, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1243, forks 58 (observed 2026-08-28T04:04:06.576191+00:00)

## What it is
A JavaScript library providing modular multidimensional array views over 1D typed arrays, similar to numpy arrays. It supports constant-time slicing, transposing, and flipping without copying underlying data, and works in both Node.js and browsers.

## Use cases
- work with multidimensional arrays in javascript
- numpy-like arrays for node.js
- slice and transpose matrices without copying data
- represent images or audio as typed arrays
- implement grid-based simulations like game of life
- matrix operations in the browser

## When to choose
- you need efficient n-dimensional array views over typed arrays in JavaScript
- you want zero-copy slicing, transposing, or subarray operations
- you're porting MATLAB or numpy numerical code to JavaScript

## When to avoid
- you need built-in linear algebra or FFT operations - use ndarray companion modules or math.js
- you want a batteries-included numerical computing environment rather than a low-level array primitive
- your project uses modern bundlers without CommonJS compatibility

## Facets
- artifact type: library
- maturity: maintenance
- function: data-science, image-processing, audio-processing, graphics
- domain: data-science, graphics, developer-tools
- platform: browser
- tags: multidimensional-arrays, typed-arrays, numpy-like, scientific-computing, views-and-slices, algorithms, nodejs, javascript

## Member repositories
- scijs/ndarray (main) score 77

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:06.576191+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-30T05:08:20.829324+00:00, confidence not recorded.
  - readme: https://github.com/scijs/ndarray (fetched 2026-08-28T04:04:06.576191+00:00, sha 00aa39b821f7)
- Data as of 2026-08-30T08:39:29.467469+00:00.
