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.
npx skills add majiayu000/claude-skill-registry --skill huggingface-js --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# 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
- Transformers.js (Local Inference)
- Text Generation
- Text Classification (Sentiment)
- Embeddings
- Question Answering
- Translation
- Speech Recognition (Whisper)
- Image Classification
- Object Detection
- Zero-Shot Classification
- Hugging Face Inference API
- Setup
- Streaming Text Generation
- Chat Completion
npm install @huggingface/transformers npm install @huggingface/inference
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.
