▲ | samwillis 5 days ago | |
Tanstack DB - a new client side store for web apps, with transactions, optimistic state, and live queries spanning multiple collections. It's designed for sync, so rather than fetching you can hook it up to a sync engine (any!) to keep your front end in sync with your backend. It's built on Tanstack Query, making the sync engine optional, and a great path for incremental adoption. The query engine uses a typescript implementation of differential dataflow to enable incremental computation of the live queries - they are very fast to update. This gives you sub ms fine grade reactivity of complex queries (think sql like joins, group by etc). Having a lot of fun building it! https://tanstack.com/db/latest https://github.com/TanStack/db | ||
▲ | tracker1 4 days ago | parent | next [-] | |
Interesting, I'll have to look at this in the near future. Definitely like what I see at a glance. One problem I've had with some other client sync/db options is that they don't support the use case for public, shared and private tables/collections. A lot of real world apps may have items that are available to all users (read only or not), some users (by group or management chain) or private (but reassignable by managers) in order to support real world workflows and potentially confrontational work (think avoiding stealing other worker's contacts/commissions). | ||
▲ | aniketsaurav18 5 days ago | parent | prev [-] | |
Very excited for this. Current client-side DB implementations are hard to work with. Will it support IndexedDB? |