If you haven't already, you can install the Transformers.js JavaScript library from NPM using:
npm i @huggingface/transformers
Example: Perform named entity recognition.
import { pipeline } from '@huggingface/transformers';
const classifier = await pipeline('token-classification', 'onnx-community/distilbert-base-cased-finetuned-conll03-english-ONNX');
const output = await classifier('My name is Sarah and I live in London');
Files
16 files · 892 MBWeights 65.8 MB (smallest of 8 ONNX variants). Sizes and sha256 from the signed manifest.