Hacker ApprovedDepartments

Transformers.js

Shares rank 12 of 19 machine learning libraries by recommenders

Developers recommend it as the go-to way to run machine learning models in the browser, with WebGPU support and many models since v4.

Developers recommend it as the go-to way to run machine learning models in the browser, with WebGPU support and many models since v4.

10 people gave an opinion

recommend it
8
criticize it
2
approval share
80%
Each figure is one person. RecommendsCriticizes

Recommended in 6 of 13 months

  1. November 2025: not recommended
  2. December 2025: not recommended
  3. January 2026: recommended
  4. February 2026: not recommended
  5. March 2026: recommended
  6. April 2026: recommended
  7. May 2026: not recommended
  8. June 2026: recommended
  9. July 2026: not recommended
  10. August 2026: recommended
  11. September 2026: recommended
  12. October 2026: not recommended
  13. November 2026: not recommended (month in progress)

Why it doesn’t carry the badge

  • 8 people recommend itNeeds 10 or more, not met.
  • 4 recommenders for every criticNeeds 2 to 1 or better, met.
  • Recommended in 6 of 13 monthsNeeds 4 or more, met.

The same three rules apply to every product, and the badge can’t be bought. How the badge works

What people say about it

The reasons people give, with the number of comments that give each one. Open a reason to read what they said.

Why people recommend it

Each mark is one comment

  • Preferred over other options

    “I suggest using Transformers.js instead these days.”

    Comment from 2 Sep 2026 in “WebLLM: high-performance in-browser LLM inference engine”

    “Transformers(.js) approach looks better for me”

    Comment from 9 Jun 2026 in “OpenCV 5 Is Here: The Biggest Leap in Years for Computer Vision”

Other machine learning libraries people recommend

The four most recommended other machine learning libraries, with the same counts for each, so you can compare like for like. The tick on each bar marks the 2 to 1 line the badge needs.

Transformers.js compared with 4 alternatives
ProductRecommendCriticizeApprovalMonthsOwnedBadge
PyTorch1314774%12—Approved
MLX752476%12—Approved
JAX49689%12—Approved
OpenCV461674%11—Approved
Transformers.jsThis page8280%6——
See all 19 machine learning libraries, ranked

What people said

8 of the 10 comments that mention it, newest first. Each links to the original comment.

“I suggest using Transformers.js instead these days.”

RecommendsComment from 2 Sep 2026 in “WebLLM: high-performance in-browser LLM inference engine”

“supports a lot of models since v4”

RecommendsComment from 2 Sep 2026 in “WebLLM: high-performance in-browser LLM inference engine”

“Transformers(.js) approach looks better for me”

RecommendsComment from 9 Jun 2026 in “OpenCV 5 Is Here: The Biggest Leap in Years for Computer Vision”

“If you want to do anything interesting you need transformers.js and a decent mode.”

RecommendsComment from 27 Apr 2026 in “The Prompt API”

“The new version has support of WebGPU and it opens new era in browser-run models”

RecommendsComment from 30 Mar 2026 in “HuggingFace has just released Transformer.js v4 with WebGPU support”

“seems more stable now with some runtime/perf improvements”

RecommendsComment from 20 Mar 2026 in “Show HN: Three new Kitten TTS models – smallest less than 25MB”

“we tried WebGPU ONNX models before with transformers.js from HG with ~50× fewer model choices”

CriticizesComment from 15 Feb 2026 in “MDST Engine: run GGUF models in the browser with WebGPU/WASM”

“none of them are quite there yet in terms of efficiency”

CriticizesComment from 23 Dec 2025 in “Executorch: On-device AI across mobile, embedded and edge for PyTorch”

Counts come from 1,795,640 Hacker News comments, November 2025 to November 2026. How we count. Report a mistake.