@e280/quay
Version:
File-browser and outliner UI for the web
22 lines (13 loc) โข 925 B
Markdown
# โก Turbo
**Turbo** is a turbocharger for reading and writing files in [OPFS](https://developer.mozilla.org/en-US/docs/Web/API/File_System_API/Origin_private_file_system).
It provides high-performance multithreaded low-level read/write access by automatically scheduling parallel tasks across a pool of web workers.
- ๐ **OPFS** โ files stay local on the user's device
- ๐งต **Multithreaded** โ goes fast with no ui jank
- โ๏ธ **Low-level** โ streaming byte-level access
- ๐ **Smart** โ prevents funky race conditions
<br/>
---
> ### Wip: implementation plan
> - use comrade for worker pooling
> - workers use opfs createSyncAccessHandle, make TransformStream readable/writable pair, wire it to the file stream, transfer the other end to the main thread, voila, connected
> - we have to do some big-brain horseshit to schedule tasks in a way to maximize parallelism while respecting ongoing locks