# facebookresearch/shumai

Fast Differentiable Tensor Library in JavaScript and TypeScript with Bun + Flashlight

Repository: https://github.com/facebookresearch/shumai
Canonical: https://ross.abutalabs.com/products/shumai
Homepage: https://facebookresearch.github.io/shumai
Language: TypeScript
License: MIT
License Family: permissive
Last push: 2024-07-23T19:43:21+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 1477, "days_push": 771, "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 1172, forks 25 (observed 2026-08-28T04:03:51.659290+00:00)

## What it is
Shumai is a fast, differentiable tensor library for TypeScript and JavaScript built on Bun and Flashlight (ArrayFire backend). It provides N-dimensional math with automatic differentiation, GPU acceleration, and network-connected tensors for machine learning research in JS.

## Use cases
- run tensor math and autograd in TypeScript
- train neural networks from JavaScript with Bun
- do GPU-accelerated N-dimensional array computations in JS
- compute gradients with automatic differentiation in TypeScript
- share tensors over the network between processes
- prototype ML models without leaving the JavaScript ecosystem

## When to choose
- you want differentiable tensor ops in TypeScript/JavaScript with Bun
- you need GPU-backed tensor math via ArrayFire on macOS or Linux
- you're a JS developer experimenting with ML or gradient-based optimization

## When to avoid
- you need a mature, production-grade deep learning framework
- you require Windows support or broad platform coverage
- your project depends on the PyTorch/TensorFlow ecosystem or extensive model zoos

## Facets
- artifact type: library
- maturity: experimental
- function: machine-learning, deep-learning, llm-training, math, networking
- domain: machine-learning, deep-learning, developer-tools, cross-platform
- platform: bun
- tags: tensor-library, autograd, automatic-differentiation, gpu-accelerated, arrayfire, flashlight, bun, macos, linux, typescript, nodejs

## Member repositories
- facebookresearch/shumai (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:51.659290+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-30T06:28:26.527329+00:00, confidence not recorded.
  - readme: https://github.com/facebookresearch/shumai (fetched 2026-08-28T04:03:51.659290+00:00, sha 09e3da58198e)
  - homepage: https://facebookresearch.github.io/shumai (fetched 2026-08-29T12:33:50.532351+00:00, sha 4de1af23da73)
- Data as of 2026-08-30T08:39:29.467469+00:00.
