# microsoft/onnxjs

ONNX.js: run ONNX models using JavaScript

Repository: https://github.com/microsoft/onnxjs
Canonical: https://ross.abutalabs.com/products/onnxjs
Language: TypeScript
License: NOASSERTION
License Family: other
Archived: true
Last push: 2021-12-14T00:51:02+00:00

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

## Adoption (not part of the score)
Stars 1814, forks 130 (observed 2026-08-28T04:05:39.868356+00:00)

## What it is
ONNX.js is a JavaScript library for running pre-trained ONNX machine learning models directly in browsers and Node.js, using WebAssembly for CPU and WebGL for GPU inference. It has been deprecated and replaced by ONNX Runtime Web, which offers better performance and an improved developer experience.

## Use cases
- run ONNX models in the browser
- score machine learning models client-side with JavaScript
- run ML inference in Node.js
- do in-browser inference without a server round-trip
- run ONNX models on GPU via WebGL
- keep user data private by doing ML inference locally

## When to choose
- maintaining a legacy project already built on onnxjs
- learning how ONNX inference runtimes work in JavaScript

## When to avoid
- starting any new project - use ONNX Runtime Web instead
- needing the latest ONNX opset support or best performance
- needing actively maintained software with recent fixes

## Facets
- artifact type: library
- maturity: abandoned
- function: machine-learning, llm-inference, wasm
- domain: machine-learning, deep-learning, web-development, frontend
- platform: browser, wasm, cross-platform
- tags: onnx, inference, webgl, webassembly, deprecated, typescript, edge-ai, nodejs

## Member repositories
- microsoft/onnxjs (main) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:39.868356+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-30T03:21:05.703351+00:00, confidence not recorded.
  - readme: https://github.com/microsoft/onnxjs (fetched 2026-08-28T04:05:39.868356+00:00, sha 27e95b776f47)
  - registry_npm: https://registry.npmjs.org/onnxjs (fetched 2026-08-29T10:59:49.067172+00:00, sha 7ce1ae1f45de)
- Data as of 2026-08-30T08:39:29.467469+00:00.
