Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Runs state-of-the-art machine learning models directly in JavaScript and TypeScript across browsers and Node.js, Bun, Deno.
87% 100%+13 ptsof test cases passed
Passed 23 of 23 test cases with the skill, and 20 of 23 without it.
This test ran on v1. v2 is the current version and hasn’t been tested on gemini-3.6-flash yet.
3 of 3 safety checks passed
Not used yet
Working examples showing how to use Transformers.js across different runtimes and frameworks.
All examples use the same task and model for consistency:
feature-extractiononnx-community/all-MiniLM-L6-v2-ONNX<!DOCTYPE html>
<html>
<head>
<title>Feature Extraction</title>
</head>
<body>
<h1>Text Embedding Generator</h1>
<textarea id="input" placeholder="Enter text to embed..."></textarea>
<button onclick="generateEmbedding()">Generate Embedding</button>
<div id="result"></div>
<div id="loading" style="display:none;">Loading model...</div>
<script type="module">
import { pipeline } from 'https://cdn.jsdelivr.net/npm/@huggingface/transformers@4';
let extractor;
// Initialize model on page load
document.getElementById('loading').style.display = 'block';
extractor = await pipeline(
'feature-extraction',
Published skills whose descriptions closely match this one, with their benchmark result.
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.