TinyBase v5: CRDTs for the rest of us
tinybase.org
TinyBase v5: CRDTs for the rest of us
1–10 of 12 posts
Re: TinyBase v5: CRDTs for the rest of us
#2Re: TinyBase v5: CRDTs for the rest of us
#3Author here if anyone would like to ask any questions or offer feedback!
Also not yet sure how I'd send an edited sqlite db to a backend like LiteFs—looks like Sqlite3Persister is the interface.
Re: TinyBase v5: CRDTs for the rest of us
#4Author here if anyone would like to ask any questions or offer feedback!
Looks neat as I want to try making a local-first app. Though this seems to require React. Is that the case or will it work with vanilla JS? Also not yet sure how I'd send an edited sqlite db to a backend like LiteFs—looks like Sqlite3Persister is the interface.
Re: TinyBase v5: CRDTs for the rest of us
#5Author here if anyone would like to ask any questions or offer feedback!
Looks neat as I want to try making a local-first app. Though this seems to require React. Is that the case or will it work with vanilla JS? Also not yet sure how I'd send an edited sqlite db to a backend like LiteFs—looks like Sqlite3Persister is the interface.
The way to do that would be to listen to data changes (eg addCellListener) and in the listener just manipulate the DOM directly. Probably a pretty slick approach, performance-wise.
For SQLite, a variety of flavors are supported including things like ElectricSQL, Turso, and PowerSync - which all let you sync back to a server. You might also consider running a ‘client’ on a server that can listen to changes coming through web sockets and persist itself to server storage - but I haven’t written that pattern up yet.
Hopefully you’ll get a chance to try it out in the meantime though!
Re: TinyBase v5: CRDTs for the rest of us
#6Earlier quoted context omitted.
Looks neat as I want to try making a local-first app. Though this seems to require React. Is that the case or will it work with vanilla JS? Also not yet sure how I'd send an edited sqlite db to a backend like LiteFs—looks like Sqlite3Persister is the interface.
“ The optional bindings to React and pre-built components let you easily build fully reactive UIs on top of TinyBase.”
Re: TinyBase v5: CRDTs for the rest of us
#7Author here if anyone would like to ask any questions or offer feedback!
Re: TinyBase v5: CRDTs for the rest of us
#8Earlier quoted context omitted.
“ The optional bindings to React and pre-built components let you easily build fully reactive UIs on top of TinyBase.”
Without docs/sample code, optional might as well be required.
Re: TinyBase v5: CRDTs for the rest of us
#9Earlier quoted context omitted.
Without docs/sample code, optional might as well be required.
The very first demo is React-less and so is this Vite template! Enjoy :) https://github.com/tinyplex/vite-tinybase
Re: TinyBase v5: CRDTs for the rest of us
#10Earlier quoted context omitted.
The very first demo is React-less and so is this Vite template! Enjoy :) https://github.com/tinyplex/vite-tinybase
I don’t know what vite is. Should I be interested? (Trying to keep the JS part of my app as simple as possible without a lot of deps.)