# huggingface/transformers.js-examples

A collection of 🤗 Transformers.js demos and example applications

Repository: https://github.com/huggingface/transformers.js-examples
Canonical: https://ross.abutalabs.com/products/transformersjs-examples
Language: JavaScript
License: Apache-2.0
License Family: permissive
Topics: transformers, transformersjs
Last push: 2026-02-17T18:29:44+00:00

## Health v2 (maintenance only)
Score: 53/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 68, release rhythm 35, longevity 53
- inputs: {"age_days": 751, "days_push": 197, "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 2087, forks 250 (observed 2026-08-28T04:06:12.074080+00:00)

## What it is
A collection of demos and example applications showcasing Hugging Face Transformers.js, which runs transformer models directly in the browser and JavaScript runtimes. Examples span WebGPU chat LLMs, image segmentation, background removal, semantic search, and Node/Deno/Bun embedding use cases.

## Use cases
- run an LLM chatbot in the browser with WebGPU
- remove image backgrounds client-side
- compute text embeddings in Node.js or Deno
- build semantic search in the browser
- learn how to use Transformers.js in a Next.js app
- segment images in the browser with Segment Anything

## When to choose
- you want working code samples for running transformer models in JavaScript
- you're evaluating client-side, privacy-friendly ML inference in the browser
- you need a starting template for a WebGPU or Node.js Transformers.js project

## When to avoid
- you need a production-ready ML application rather than reference examples
- you want server-side Python model inference
- you need training or fine-tuning capabilities

## Facets
- artifact type: learning-resource
- maturity: active
- function: machine-learning, llm-inference, image-processing, nlp, rag
- domain: machine-learning, deep-learning, web-development, computer-vision
- platform: browser, bun, wasm
- tags: transformersjs, webgpu, in-browser-ai, demos, examples, client-side-inference, natural-language-processing, nodejs, deno, gpu

## Member repositories
- huggingface/transformers.js-examples (main) score 53

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:12.074080+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-30T02:55:45.134102+00:00, confidence not recorded.
  - readme: https://github.com/huggingface/transformers.js-examples (fetched 2026-08-28T04:06:12.074080+00:00, sha da99b9dfeb1a)
- Data as of 2026-08-30T08:39:29.467469+00:00.
