transformers-js - Run Hugging Face models in JavaScript
Run Hugging Face machine learning models in JavaScript or TypeScript on Node.js or in the browser with Transformers.js.
Tags
Updated: 2026-10-16Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Run text analysis models
- Generate and translate text
- Classify and analyze images
- Process speech and audio
- Build multimodal applications
- Extract feature embeddings
- Select models and devices
- Manage pipeline memory
Inputs
- Machine learning task
- Model identifier
- Text input
- Image input
- Audio input
- Document image
- Candidate labels
- Generation parameters
- Device configuration
- Quantization settings
Outputs
- Classification results
- Generated text
- Translated text
- Summaries
- Question answers
- Detected objects
- Image segments
- Depth estimates
- Transcriptions
- Synthesized audio
- Image captions
- Feature embeddings
Requirements
- Node.js 18 or later or modern browser
- ES modules support
- Compatible WebGPU environment for WebGPU
- Internet access for Hub model downloads
- Local models when offline
