FL33TW00D/whisper-turbo

Isomorphic NPM packaging

FL33TW00D opened this issue · 1 comments

Because the javascript world is completely fucking insane, it has come to my attention that we aren't really shipping the best isomorphic packages for downstream users.

This guy seems to know what he is on about: https://nickb.dev/blog/recommendations-when-publishing-a-wasm-library/

His example lib is good here too: https://github.com/nickbabcock/highwayhasher

Structure of whisper-turbo is as follows:

  • whisper-turbo npm package, provides access to browser APIs.
  • whisper-webgpu npm package, Rust compiled to WASM. Requires asynchronous initialization.