pediatric-ai-scribe-v3/public/js
ifedan-ed a528bcc283 FIX: Browser Whisper - 100% self-hosted, zero CDN dependencies
FINAL 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:
1. importScripts('/models/transformers.min.js') - OUR SERVER
2. Loads models from /models/ - OUR SERVER
3. ZERO external network calls
4. Works in any network (firewalled, air-gapped, etc.)

This is the production-ready, truly offline solution.
2026-03-31 23:12:21 +00:00
..
admin.js Fix model management: empty LiteLLM list, always reload panel, clear-all 2026-03-29 19:32:09 -04:00
adminMilestones.js Add admin dashboard for developmental milestones management 2026-03-31 20:55:41 +00:00
app.js v16: Make Browser Whisper CDN failure graceful with clear warnings 2026-03-31 16:18:46 +00:00
audioBackup.js Server-side audio backups with compression, viewable AI corrections 2026-03-29 10:56:31 +00:00
auth.js Security: remove auth debug logging that exposed emails and responses 2026-03-29 10:41:35 +00:00
browserWhisper.js FIX: Browser Whisper - 100% self-hosted, zero CDN dependencies 2026-03-31 23:12:21 +00:00
chartReview.js v13: Increase JSON limit to 10MB, client-side size check for chart review 2026-03-30 22:41:17 +00:00
correctionTracker.js v9: Major feature update — audio backup, SOAP save, Dragon memory, S3 docs, CI/CD, APK 2026-03-28 21:08:32 +00:00
documents.js v9: Major feature update — audio backup, SOAP save, Dragon memory, S3 docs, CI/CD, APK 2026-03-28 21:08:32 +00:00
encounters.js Fix: admin models loading, clear refine/instructions on New, bigger HPI areas, unique labels 2026-03-29 01:35:45 +00:00
hospitalCourse.js Wire physician memories/templates into all AI generation routes 2026-03-25 17:35:30 -04:00
learningHub.js Fix CMS button clickability, replace AI topic input with context box 2026-03-24 11:52:02 -04:00
liveEncounter.js Fix TTS axios/Vertex, generic toast, add stop button to encounter 2026-03-29 22:09:56 -04:00
memories.js Server-side audio backups with compression, viewable AI corrections 2026-03-29 10:56:31 +00:00
milestones.js Add admin dashboard for developmental milestones management 2026-03-31 20:55:41 +00:00
milestonesData.js v3.0: Add multi-provider Bedrock models, newborn milestones, Converse API 2026-03-23 22:13:19 +01:00
nextcloud.js Fix WebDAV selection, pdf-parse, prompt(), CSP, security issues 1/2/4/5 2026-03-24 02:28:43 -04:00
pediatricScheduleData.js Add growth velocity, feeding guidance, BMI classification to well visits 2026-03-23 23:11:24 +01:00
shadess.js Fix module init: defer all tab scripts until component HTML is loaded 2026-03-23 22:03:54 -04:00
sickVisit.js Fix module init: defer all tab scripts until component HTML is loaded 2026-03-23 22:03:54 -04:00
soap.js Zero-config speech: skip upload when no transcription API, use browser speech directly 2026-03-29 02:09:53 +00:00
speechRecognition.js Add Web Speech Recognition option for real-time streaming 2026-03-31 21:57:24 +00:00
transcriptionSettings.js Add Web Speech Recognition option for real-time streaming 2026-03-31 21:57:24 +00:00
voiceDictation.js Zero-config speech: skip upload when no transcription API, use browser speech directly 2026-03-29 02:09:53 +00:00
voicePreferences.js Fix TTS preview for 'Server default' voice option 2026-03-31 16:15:41 +00:00
wellVisit.js Fix vaccine/catchup tabs and serve Quill locally 2026-03-23 22:59:47 -04:00
whisperWorker.js FIX: Browser Whisper - 100% self-hosted, zero CDN dependencies 2026-03-31 23:12:21 +00:00
whisperWorkerV2.js v16: Make Browser Whisper CDN failure graceful with clear warnings 2026-03-31 16:18:46 +00:00