Live data from Hacker News

TinyBase v2.0: reactive data store for local-first apps

tinybase.org

11–20 of 65 posts

Re: TinyBase v2.0: reactive data store for local-first apps

#15
post #10

I looked into building something like this for a React Native app. (Actually I first considered the practicality of making a reactive version of sqlite... I decided it would be too complex and not something I'd want to use without upstream support). We ended up doing something a bit more traditional/basic/manual, but this looks nice. It would definitely have been in consideration if it'd been available at the time, a…

Cool! Please take a look and see if it works out. I should point out that the ui-react library (that provides React bindings) does _not_ depend on ReactDOM, so you can use it just as easily in React Native.

At least, once I got the bundler to be happy about the export format! Please see https://github.com/tinyplex/tinybase/issues/17#issuecomment-...

Re: TinyBase v2.0: reactive data store for local-first apps

#17

Author here, if anyone has any thoughts or feedback. Bring it on!

Wait so can you actually connect tiny base to SQLite?

No, there's no _actual_ RDBMS involved. The query engine uses a functional style of query that has similar concepts to SQL, but all the evaluation (and reactivity) is first party, in the library itself.

Of course it would be pretty easy/fun to persist your TinyBase content into a SQLite database, or pull a dataset from it. The demos load up TSV but you could easily do something similar from an actual database somewhere.

Re: TinyBase v2.0: reactive data store for local-first apps

#18

Author here, if anyone has any thoughts or feedback. Bring it on!

The main limitation I see with tiny base is that it has to load all data in one batch and modifying any record results in the whole data store being persisted to disk. Surely this can’t scale well…

Re: TinyBase v2.0: reactive data store for local-first apps

#19
post #7

Author here, if anyone has any thoughts or feedback. Bring it on!

The font is unreadable, very thin

Ouch, tough crowd, but fair enough!

I wonder if I should have a font-weight (or -family) toggle alongside the dark mode setting. Would be a shame for people to miss out on reading about the software because of the typography!

Re: TinyBase v2.0: reactive data store for local-first apps

#20

Author here, if anyone has any thoughts or feedback. Bring it on!

Howdy! What are the rough edges when persisting to a server? What are the gaps relative to something like PouchDB?

Honestly, just my personal confidence currently. There's very basic locking and store-wide read-write. I really aspire to some sort of CRDT implementation that can be considered a bit more state-of-the-art and tolerant to the innumerable challenges of that problem.
Post reply on HN