Elestia Open Source Ratings
4.5

TensorFlow.js

Keep, but not for new work. 6th of 7 machine learning in JavaScript.

TensorFlow.js is Google's general-purpose JavaScript library for training and running ML models in the browser and Node.js. It still works, but development has nearly stopped: there has been no release since October 2024 and only one commit in the last year. Google now presents LiteRT.js as the evolution of TensorFlow.js, so for new work pick LiteRT.js, ONNX Runtime Web/Transformers.js or MediaPipe, and keep TF.js only where it already runs.

Best for: Teams that already ship TF.js or Keras models, or that need to train small models in the browser, and accept a library that is barely maintained.

WebsiteGitHubnpm

Scores

Overall4.5

How strongly do we recommend it for a new project today?

Claude Opus 5.5: 3.5, likely 2.5 to 4.5

TF.js still works and remains the only mature option for training in JS, but it has had no release in over two years of the last year's window and Google is steering users to LiteRT.js. For new projects, Transformers.js/ONNX Runtime Web, MediaPipe or LiteRT.js are better and actively developed. Keep it where it already runs.

GPT-6.2 Sol: 5.5, likely 4.3 to 6.8

TensorFlow.js earns a place in new projects that need custom browser training, automatic differentiation, or an existing compatible TensorFlow model. Transformers.js is the stronger starting point for pretrained transformer inference, with a newer release and ready-made pipelines. The range reflects how much the recommendation depends on the task and whether future compatibility fixes reach a stable release.

Needed by many4.0

How many developers need a tool for this job?

Claude Opus 5.5: 4.5, likely 3.0 to 6.0

On-device ML is a clear and growing niche, not a need most JS developers have in most projects. TF.js covers both browser and Node and does both training and inference, which makes it broader than single-task peers. The range is wide because demand for on-device AI is changing fast.

  • web.dev/learn/ai/client-side: Lists TF.js as one of several client-side AI stacks for well-established tasks
  • dependents: 8,947 repos and 699 packages depend on it, so the user base is real but specialised

GPT-6.2 Sol: 3.4, likely 2.2 to 4.6

On-device ML is a niche within JavaScript and TypeScript. TensorFlow.js covers both inference and training across browsers and Node.js, giving it several uses within that niche. State of JavaScript respondents rarely select machine learning as a use case, and the survey does not measure how many need on-device execution.

Helps a lot6.0

How well does it do the job for those who need it?

Claude Opus 5.5: 5.0, likely 3.5 to 6.5

The feature set is still unmatched for training and autograd in JS: it has layers and ops APIs, several backends, types and good documentation. But its JavaScript kernels are slower than WASM/WebGPU runtimes, the WebGPU backend has stalled, and it does not fit LLMs or Hugging Face models. Peers do inference clearly better for most of today's model types.

GPT-6.2 Sol: 7.0, likely 5.8 to 8.2

Version 4.22.0 combines trainable layers with low-level tensor operations and automatic differentiation. Types and versioned examples help developers and coding agents find the right APIs, including tensor cleanup. Conversion errors name the unsupported operation, and users report native Node.js compatibility failures and an iOS WebGPU video bug. Benchmark results vary with the model, device, and backend.

Holds up over time2.4

Will it still be a good choice in two years?

Claude Opus 5.5: 2.0, likely 1.0 to 3.5

There has been one commit in the last year and no release since October 2024; the Scorecard Maintained check is 0. In July 2026 Google launched LiteRT.js and calls it an evolution from TF.js, so the ecosystem is moving away. The repo is not archived or deprecated, which keeps the score above the floor.

GPT-6.2 Sol: 2.8, likely 1.7 to 4.1

The project recorded one commit and zero releases in the past year, with 345 open pull requests. A native Node.js compatibility fix merged in April 2025 is still waiting for a release. Maintainers still respond to some reports and have invited community fixes, so future compatibility depends on whether those fixes reach npm.

  • github commitsLastYear, releasesLastYear, openPullRequests: One commit, zero releases, and 345 open pull requests.
  • github.com/tensorflow/tfjs/releases: The October 2024 release remains the latest.
  • github.com/tensorflow/tfjs/pull/8425: Native Node.js compatibility fix merged in April 2025.
  • github.com/tensorflow/tfjs/issues/8526: Maintainer said the Node.js binding update was outside current priorities and invited community work.
  • peers commitsLastYear and latestPublishedAt: Transformers.js, WebLLM, and MediaPipe Tasks show substantially more recent activity.
Used widely5.2

How many use it, and is that growing?

Claude Opus 5.5: 5.5, likely 4.5 to 7.0

It has 2.47M downloads per 4 weeks and the most dependent repos in the category (8,947), so many projects still use it. But its year-on-year ratio of 2.8 is below the 4.1 median, and every peer except brain.js grows far faster. Much of the download count likely comes from wrapper packages and old codebases, not new choices.

  • npm downloadsLast4Weeks: 2.47M now vs 0.87M a year ago, a ratio of 2.8, below the 4.1 median
  • dependents: 8,947 repos, the most among the peers (MediaPipe has 4,257)
  • bluesky posts: 1 post in 24 months, versus 14 to 15 for Transformers.js and WebLLM

GPT-6.2 Sol: 4.9, likely 3.7 to 6.1

Ecosyste.ms found 8,947 dependent repositories, the highest reported count among the listed peers, and 699 dependent npm packages. Downloads rose to 2.47 million in four weeks, but the 2.83× year-over-year increase trails the catalog median of 4.1× and the gains of most peers. Downstream packages can inflate install counts, CDN use can escape them, and the latest Bluesky snapshot shows little attention.

  • dependents repos and packages, peers dependentRepos: 8,947 tracked repos and 699 packages. Transformers.js has no measured repo count.
  • npm downloadsLast4Weeks, npm downloadsSame4WeeksYearAgo, medianDownloadsRatio: Downloads grew 2.83× against a 4.1× catalog median.
  • github stars, bluesky posts, peers stars and blueskyPosts: 19,160 monorepo stars and one Bluesky link post versus 14 for Transformers.js and 15 for WebLLM.
  • github.com/ml5js/ml5-next-gen/blob/main/package.json: ml5.js installs TensorFlow.js as a dependency.
  • github.com/tensorflow/tfjs: The project also documents loading from a CDN.
Vouched for5.1

Who stands behind it being good?

Claude Opus 5.5: 4.5, likely 3.0 to 6.0

Google built it, and web.dev still lists it as a stable option for well-established tasks. Most production write-ups and endorsements are old, and current independent sources discuss it as stalled or being replaced. Google's own newer guidance points to LiteRT.js.

GPT-6.2 Sol: 5.7, likely 4.5 to 6.9

ml5.js still builds on TensorFlow.js, and ModiFace documented using it for production browser-based makeup try-on. Independent benchmarks show useful browser performance on some workloads, with results sensitive to model and backend. The ModiFace case is old, and recent evidence of production use and developer satisfaction is limited.

Safe5.8

How safe is it to depend on?

Claude Opus 5.5: 6.0, likely 4.5 to 7.5

It has no known advisories, uses the Apache-2.0 licence and has a moderate 11 dependencies, with good code review and token-permission checks. The Scorecard is 5.2, with 0 for Maintained, Pinned-Dependencies, Security-Policy, SAST and Fuzzing. With no active maintenance, any future issue may go unfixed. In 2025 a typosquatting campaign targeted users who search for TF.js packages.

  • advisories total: 0 advisories
  • scorecard score: 5.2 overall, with several weak checks
  • npm dependencies: 11 dependencies
  • hackerNews top: Story about a TF.js typosquatting attack on ML developers

GPT-6.2 Sol: 5.6, likely 4.4 to 6.8

The official package uses the permissive Apache-2.0 license, has 11 direct dependencies, and has zero recorded OSV advisories. The 2025 typosquatting incident involved an imitation package. OpenSSF gives the repo 5.2/10, with zeros for maintenance, pinned dependencies, and security policy. The tagged source documents an npm publish script, while npm provenance, publisher access, and the project's ability to ship a prompt security fix remain uncertain.

Good

  • It is the only mature JS library with tensors, autograd and in-browser training across WebGL, WASM, WebGPU and Node backends.
  • It has a large set of ready-made models (pose, face, object detection, toxicity) and many tutorials and examples.
  • It ships TypeScript types, uses the Apache-2.0 licence and has no known advisories.
  • Its large base of existing code and Q&A answers helps AI coding agents write working TF.js code.

Bad

  • There has been no release since 4.22.0 in October 2024, and only one commit in the last year; 345 pull requests are open.
  • Google now promotes LiteRT.js as its evolution, so new investment is going elsewhere.
  • Its JavaScript kernels are slower than WASM/WebGPU runtimes, and it is not suited to LLMs or modern generative models.
  • Its download growth is well below the category median and far behind every growing peer.

The numbers

npm downloads, 4 weeks
2.5M ×2.8 in a year
GitHub stars
19k
Commits, 12 months
1
npm version
4.22.0 Oct 2024
Versions, 12 months
0
Advisories, 24 months
0 of 0 ever
OpenSSF Scorecard
5.2 out of 10, Oct 2026
Licence
Apache-2.0

Read on 21 November 2026 from GitHub (tensorflow/tfjs), npm (@tensorflow/tfjs), OSV and the OpenSSF Scorecard.

Machine learning in JavaScript

  1. 8.4Transformers.js
  2. 7.8MediaPipe Tasks
  3. 7.1node-llama-cpp
  4. 6.8WebLLM
  5. 6.6Tesseract.js
  6. 4.5TensorFlow.js
  7. 2.7brain.js
Compare all 7 on six scores