opral / lix-sdk

1 stars 0 forks source link

Support envs without web workers in SQLocal #24

Open martin-lysk opened 1 month ago

martin-lysk commented 1 month ago

Context

Sqlocal uses WebWorkers to keep sqlite work out of the main thread (see link).

WebWorkers are not available as is in envs like

  1. Sherlock - vs code
  2. paraglideJs - cli
  3. Parrot (need to be checked)

To be able to run Lix/Inlang as is - we need to add support of concepts available in the given env

Additional info: It uses coincident under the hood to synchronize work between main thread and worker.

Proposal

Check how webworkers are utilized within sqlocal and check if we can provide the functionality needed in env's like vs-code and node