Sign in
Explore
Skills · SkillWeb & UIData & AIMachine learningReviewed

transformers-js

Runs machine learning models in JavaScript and TypeScript with Transformers.js, in browsers, Node.js, Bun and Deno.

Kind
Skill
Works with
Claude Code
Languages
TypeScript / JavaScript
Source
Hugging Face Skills @ 25910b3d0ba3
Path
skills/transformers-js/SKILL.md
Jobs
Implementation
Topics
Machine learning

Credit

Made by
huggingface
Original
github.com/huggingface/skills/blob/25910b3d0ba31a2ba102f901cd…
License
Apache-2.0

Listed by Skill Manifest; not made by us.

InstallInstall it by hand, following the source.
hf skills add transformers-js
Install factsScanned 3 Nov 2026
Adds
  • .claude/skills/transformers-js/ (the skill folder)
  • 7 file(s) the skill refers to
  • 7 other files in the folder: references/CACHE.md, references/CONFIGURATION.md, references/EXAMPLES.md, references/MODEL_ARCHITECTURES.md and 3 more
Runs scripts
Yes
  • shell block in the text
Uses the network
Yes
  • downloads npm packages
  • HTTP client calls
  • HTTP client calls (references/CONFIGURATION.md)
Needs secrets
Yes
  • HF_TOKEN
Reads environment variables
  • HF_TOKEN
  • HF_HOME
  • TRANSFORMERS_CACHE
  • MODEL_PATH
  • MODEL_CACHE_DIR
  • LOCAL_MODELS_PATH
Reads outside the project
  • ~/.cache/huggingface/ (references/CACHE.md)
  • /var/cache/transformers (references/CACHE.md)
  • ~/.cache/huggingface (references/CACHE.md)
  • /var/cache/transformers/models--Xenova--distilbert-base-uncased-finetuned-sst-2-english/ (references/CACHE.md)
Calls other skills
  • /script
  • /title
  • /head
  • /textarea
  • /button
  • /div
  • and 4 more
Source revision
25910b3d0ba3
Licence
Apache-2.0
Last activity
26 Nov 2026
Source changed after the scan
Yes
  • Last push 26 Nov 2026, scanned 3 Nov 2026; read it again before you rely on this scan
Review
Reviewed

Found by a static scan of the stored text; nothing is run. “None found” is not a guarantee, so read what you install before you run it.

# Transformers.js - Machine Learning for JavaScript

Transformers.js enables running state-of-the-art machine learning models directly in JavaScript across browsers and server-side runtimes (Node.js, Bun, Deno), with no Python server required.

## When to Use This Skill

Use this skill when you need to:
- Run ML models for text analysis, generation, or translation in JavaScript
- Perform image classification, object detection, or segmentation
- Implement speech recognition or audio processing
- Build multimodal AI applications (text-to-image, image-to-text, etc.)
- Run models client-side in the browser without a backend

## Installation

### NPM Installation
```bash
npm install @huggingface/transformers
```

### Browser Usage (CDN)
```javascript
<script type="module">
  import { pipeline } from 'https://cdn.jsdelivr.net/npm/@huggingface/transformers';
</script>
```

## Core Concepts

### 1. Pipeline API
The pipeline API is the easiest way to use models. It groups together preprocessing, model inference, and postprocessing:

```javascript
import { pipeline } from '@huggingface/transformers';

// Create a pipeline for a specific task
…