Skip to content

feat: let the user download and free the cached engine - #15

Merged
Endika merged 1 commit into
mainfrom
feat/engine-storage
Aug 5, 2026
Merged

feat: let the user download and free the cached engine#15
Endika merged 1 commit into
mainfrom
feat/engine-storage

Conversation

@Endika

@Endika Endika commented Aug 5, 2026

Copy link
Copy Markdown
Owner

Reopens #14, which GitHub auto-closed when the author-email history rewrite changed every SHA on main. Same work, unchanged.

The engine is tens of MB of WASM and weights, cached on first use. Taking that much of a phone's storage without asking, and with no way to get it back, is not a reasonable default.

  • Descargar ahora — fetches the engine up front, so the size is a considered choice rather than a surprise on mobile data. It calls the real MediaPipeLandmarkSource.load(), which downloads exactly the WASM variant this browser will use; guessing would have fetched both the SIMD and no-SIMD builds and wasted 11 MB.
  • Liberar espacio — drops the esku-engine cache. It re-downloads next time the camera starts.
  • Reports what is actually cached, measured from Content-Length rather than by reading 11 MB of WASM into memory to weigh it.

Taught signs are deliberately untouched. They are the user's own recordings, they live in IndexedDB, and wiring them into a "free up space" button would be a data-loss trap. The panel says so.

Context worth keeping: this came from a question about the app downloading "3 GB". It does not — that is the SWL-LSE training dataset, downloaded once to train the model and never shipped.

@Endika
Endika merged commit 5f58558 into main Aug 5, 2026
6 checks passed
@Endika
Endika deleted the feat/engine-storage branch August 5, 2026 20:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant