Agent skill · Backend & API

huggingface-js

Runs ML models in the browser and Node.js with Transformers.js and Hugging Face Inference API. Use when adding local inference, embeddings, or calling hosted models without GPU servers.

majiayu000github.com/majiayu000GitHub ↗
claude-codeMIT
Install
npx skills add majiayu000/claude-skill-registry --skill huggingface-js --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 2
SKILL.md size: 9 KB
Bundled scripts: none
Path: skills/ai-ml/huggingface-js/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 534
Language: HTML

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# Hugging Face JavaScript Run ML models locally with Transformers.js or via the Inference API. Supports text generation, embeddings, image classification, speech recognition, and more. ## Transformers.js (Local Inference) Run models directly in browser or Node.js using ONNX Runtime. ```bash npm install @huggingface/transformers ``` ### Text Generation ```typescript import { pipeline } from '@huggingface/transformers'; const generator = await pipeline('text-generation', 'Xenova/gpt2'); const result = await generator('The quick brown fox', { max_new_tokens: 50, }); console.log(result[0].generated_text); ``` ### Text Classification (Sentiment) ```typescript import { pipeline } from '@huggingface/transformers'; const classifier = await pipeline( 'text-classification', 'Xenova/distilbert-base-uncased-finetuned-sst-2-english' ); const result = await classifier('I love this product!'); // [{ label: 'POSITIVE', score: 0.9998 }] ``` ### Embeddings ```typescript import { pipeline } from '@huggingface/transformers'; const embedder = await pipeline( 'feature-extraction', 'Xenova/all-MiniLM-L6-v2' ); const result = await embedder('Hello, world!', { pooling: 'mean', normalize: true, }); const em

What's inside
Steps it walks through
  1. Transformers.js (Local Inference)
  2. Text Generation
  3. Text Classification (Sentiment)
  4. Embeddings
  5. Question Answering
  6. Translation
  7. Speech Recognition (Whisper)
  8. Image Classification
  9. Object Detection
  10. Zero-Shot Classification
  11. Hugging Face Inference API
  12. Setup
  13. Streaming Text Generation
  14. Chat Completion
Ships with 1 file
  • metadata.json
Commands it runs
npm install @huggingface/transformers
npm install @huggingface/inference
More from claude-skill-registry
All skills →
About this skill
What does the huggingface-js skill do?

Runs ML models in the browser and Node.js with Transformers.js and Hugging Face Inference API. Use when adding local inference, embeddings, or calling hosted models without GPU servers.

How do I install it?

Run `npx skills add majiayu000/claude-skill-registry --skill huggingface-js --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going