-
released this
2026-04-01 01:12:21 +02:00 | 368 commits to main since this releaseFINAL WORKING SOLUTION:
Previous attempts failed because:
- transformers.js v2.17.2 is ES module-only
- Module workers require complex CSP and external imports
- importScripts() doesn't work with ES modules
Solution:
- Use transformers.js v2.6.2 (has worker-compatible UMD build)
- Bundle library + models, serve entirely from our server
- Classic worker with importScripts() - no CSP issues
What's self-hosted:
- ✅ transformers.min.js (760KB) - at /models/transformers.min.js
- ✅ Whisper models (42MB) - at /models/Xenova/whisper-tiny.en/
Worker loads:
- importScripts('/models/transformers.min.js') - OUR SERVER
- Loads models from /models/ - OUR SERVER
- ZERO external network calls
- Works in any network (firewalled, air-gapped, etc.)
This is the production-ready, truly offline solution.
Downloads
-
Source code (ZIP)
1 download
-
Source code (TAR.GZ)
1 download