weightlift
the missing package manager for downloading model weights
Working when we checked on .
What is weightlift?
Weightlift is an open-source JavaScript library for loading, caching, and managing client-side AI models directly in the browser, with live download progress tracking. It targets web developers building on-device AI experiences with libraries like transformers.js. A single ModelManager instance handles multiple models, supports transformers.js pipelines (e.g., CLIP zero-shot image classification, DistilBERT sentiment analysis, BERT fill-mask) as well as custom loaders via ModelDefinition. Projects such as Rescript, a transcript-based video editor running Whisper on-device, use it in production.
weightlift pricing
Pricing model: Freemium
weightlift pros
- Manages multiple models with one ModelManager instance
- Live per-model download progress tracking in the browser
- Supports transformers.js pipelines plus custom model loaders via ModelDefinition
- Ships as an npm package: npm install weightlift
- Includes interactive demos: CLIP vision, sentiment, fill-mask, custom loader
- Used by real projects such as Rescript, an on-device Whisper video editor
weightlift cons
- Requires JavaScript/TypeScript development knowledge; no graphical app interface
- Browser-only focus; no documented server or native runtime support
- No pricing, support, or documentation details shown in the sources
Frequently asked questions about weightlift
What does weightlift do?
It is an in-browser AI model manager that loads, caches, and manages client-side AI models with live progress tracking.
Who is weightlift for?
Web developers building on-device AI experiences in the browser, including those using transformers.js pipelines or custom model loaders.
How do I install weightlift?
Install it via npm with 'npm install weightlift' and import ModelManager in a JavaScript or TypeScript project.
Does it work with transformers.js?
Yes. The transformersModel helper wraps transformers.js pipelines, so tasks like zero-shot image classification, sentiment analysis, and fill-mask work out of the box.
Can I load custom models not supported by transformers.js?
Yes. A custom ModelDefinition lets you supply your own load function and dispatch progress events, so any runtime can be integrated.
Can it run zero-shot image classification?
Yes. It can load Xenova/clip-vit-base-patch32 (about 150 MB) with transformers.js to rank custom candidate labels against an uploaded image.
Does it track model download progress?
Yes. ModelManager provides live progress tracking, showing states like idle and reporting sizes such as ~67 MB for sentiment and ~110 MB for fill-mask models.
Where do model weights come from?
Demo models are fetched from Hugging Face (e.g., Xenova/distilbert-base-uncased-finetuned-sst-2-english, Xenova/bert-base-uncased), loaded and cached in the browser.
Is weightlift used in real projects?
Yes. Rescript, a transcript-based video editor that runs Whisper fully on-device in the browser, uses weightlift for its model management.
Is weightlift free to use?
The sources show it is distributed as an npm package but do not document pricing, licensing terms, or paid plans.