pediatric-ai-scribe-v3/public/js
ifedan-ed 9d817cd9f5 v18: Self-hosted Browser Whisper (zero CDN dependencies)
BREAKING FIX: Browser Whisper now fully self-contained

Previous issue:
- Loaded transformers.js from cdn.jsdelivr.net
- Downloaded models from cdn-lfs.huggingface.co
- Failed in corporate/clinical networks with firewall
- Stuck at "Initializing..." with no progress

Solution:
- Bundle transformers.js library (~876KB)
- Bundle Whisper tiny.en model (~42MB)
- Serve everything from local server
- Works in ANY network environment

Changes:
- whisperWorker.js: Load transformers from /models/ instead of CDN
- Dockerfile: Download models during Docker build
- Add download script for local dev
- Add comprehensive setup documentation

Docker image size: +~42MB (one-time cost, runtime benefit)

Tested: Works on unrestricted and firewalled networks
2026-03-31 20:02:11 +00:00
..
admin.js Fix model management: empty LiteLLM list, always reload panel, clear-all 2026-03-29 19:32:09 -04: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 v16: Make Browser Whisper CDN failure graceful with clear warnings 2026-03-31 16:18:46 +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 Fix module init: defer all tab scripts until component HTML is loaded 2026-03-23 22:03:54 -04: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
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 v18: Self-hosted Browser Whisper (zero CDN dependencies) 2026-03-31 20:02:11 +00:00
whisperWorkerV2.js v16: Make Browser Whisper CDN failure graceful with clear warnings 2026-03-31 16:18:46 +00:00