# toji/gl-matrix

Javascript Matrix and Vector library for High Performance WebGL apps

Repository: https://github.com/toji/gl-matrix
Canonical: https://ross.abutalabs.com/products/gl-matrix
Language: JavaScript
License: MIT
License Family: permissive
Last push: 2026-07-13T21:39:15+00:00

## Health v2 (maintenance only)
Score: 65/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 92, release rhythm 10, longevity 100
- inputs: {"age_days": 5446, "days_push": 51, "days_rel": 390, "gap_med": null, "n_releases_24m": 1}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 5690, forks 729 (observed 2026-08-28T04:09:27.961543+00:00)

## What it is
glMatrix is a high-performance JavaScript library for vector and matrix math, hand-tuned for speed in real-time 3D graphics and computational tasks. It is primarily designed for WebGL applications but is usable anywhere JavaScript math performance matters.

## Use cases
- perform matrix and vector math for WebGL 3D rendering
- build a 3D game or visualization in the browser
- do fast linear algebra in JavaScript for physics simulations
- compute transformations, rotations, and quaternions for graphics
- optimize math-heavy JavaScript code for performance

## When to choose
- you need fast vector/matrix operations for WebGL or WebGL2 apps
- you want a mature, battle-tested math library with a stable API
- you're doing 3D graphics, game development, or simulations in JavaScript

## When to avoid
- you need GPU-accelerated or large-scale matrix computations better suited to a numeric computing library
- you're working outside JavaScript
- you need symbolic math or arbitrary-precision arithmetic

## Facets
- artifact type: library
- maturity: stable
- function: math, graphics, simulation
- domain: graphics, web-development
- platform: browser
- tags: linear-algebra, webgl, 3d-graphics, vectors, matrices, quaternions, performance, game-development, algorithms, nodejs, javascript

## Member repositories
- toji/gl-matrix (main) score 65

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:27.961543+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:53:44.504736+00:00, confidence not recorded.
  - readme: https://github.com/toji/gl-matrix (fetched 2026-08-28T04:09:27.961543+00:00, sha c6008190c49f)
  - registry_npm: https://registry.npmjs.org/gl-matrix (fetched 2026-08-29T08:49:19.402553+00:00, sha b7fe89a08f14)
- Data as of 2026-08-30T08:39:29.467469+00:00.
