Commit Graph

17 Commits (a13fff35da61ad8af261e3fefe88013f8cb3cf54)

Author SHA1 Message Date
ZauberNerd 0701303563
Use comlink without vite-plugin-comlink
For some reason the vite-plugin-comlink doesn't seem to work in this
constellation.
I tried to reproduce in a new vite project and there it did work.
But also, the plugin does some horrible magic by replacing a
non-existant constructor `ComLinkWorker()` with the `wrap()` method
and then the only real benefit is, that we wouldn't need to write the
`expose()` method in the worker. So for that reason I'm removing the
plugin and using the comlink package directly.
2023-07-08 15:42:43 +02:00
ZauberNerd ff9f3517ec
Replace Node.js's Buffer with native Typed Arrays on the client-side
Vite does not natively ship a Buffer polyfill and most of the
functionality that is required here, can be implemented natively (except
for the byte-wise compare, for that I had to write my own function).
2023-07-08 15:42:43 +02:00
ZauberNerd 4b91a1972b
Replace CRA proxy config with vite's proxy config 2023-07-08 15:41:28 +02:00
ZauberNerd a3da33d824
Replace create-react-app with vite
create-react-app seems to struggle a bit [1] and many folks are
recommending vite as an alternative, as that project is more active.
For me the reason to switch to vite is to reduce dependencies and speed
up the build process.

Replacing create-react-app with vite reduce the number of dependencies
from 1762 to 444.

I was also quite surprised, by how small the actual diff in this commit
is. From that perspective there is almost no discernible difference
between the two tools.

[1]: https://github.com/reactjs/react.dev/pull/5487#issuecomment-1409720741
2023-07-07 22:13:33 +02:00
ZauberNerd 0ca07ee805
Remove unused dependencies
Keeping the amount of dependencies small speeds up installations.
It also helps to reduce the clutter and to get a better overview of the
application.
2023-07-07 13:48:08 +02:00
Cogent Apps eb58d900b5 v0.2.3 2023-04-15 10:30:02 +00:00
Cogent Apps 943bca2f4d 0.2.2 2023-04-15 10:11:51 +00:00
Cogent Apps d7251e34da speech recognition error handling & browser fixes 2023-03-21 00:11:05 +00:00
Cogent Apps 95bf0aef6c
Merge pull request #58 from tluyben/whisper-stt-api
Whisper stt api
2023-03-20 06:06:18 -07:00
Cogent Apps b6881c69b4 add typescript tokenizer and better chat trimmer 2023-03-20 13:03:53 +00:00
Tycho Luyben 172c5521a5 first framework for using the whisper openai api 2023-03-18 14:06:11 +00:00
Tycho Luyben 7e9f67c7b8 added the browser stt api 2023-03-18 12:49:30 +00:00
Cogent Apps 4190a0d58c 0.2.1 2023-03-18 10:04:51 +00:00
Cogent Apps c4a14110eb add string descriptions 2023-03-16 20:05:45 +00:00
Cogent Apps 225cb98475 update package.json 2023-03-15 21:50:30 +00:00
Cogent Apps 7bc58cb263 fix npm audit warning 2023-03-14 11:23:16 +00:00
Cogent Apps 645b66b988 v0.2.0 2023-03-14 11:00:40 +00:00