filipesilva / datafire

Persist Datascript databases in Firebase's Firestore.
MIT License
52 stars 4 forks source link

Thanks! DataFire is great #1

Open theronic opened 4 years ago

theronic commented 4 years ago

Hey Filipe :). Thank you for making this. I've been threatening to build a DataScript<->Firebase adapter for some time and I learned quite a bit about DS and FS internals by reading your code.

If you are ever interested in pursuing a lazy, streaming version of DataScript that can be mounted on any general purpose key-value store (I've been playing with RocksDB as a backend), I've been exploring some ideas for what I believe are improvements to both Datomic and DataScript. Commercially, I believe there is a sizeable opportunity to build a hosted DataScript service that feels like Firebase but with streaming indices, query-budgeting and graph-based query capabilities. Then again, a horizontal graph interface like Roam may be a more natural route to market. Many graph probabilities to explore in the coming years :).

All the best Petrus

filipesilva commented 4 years ago

Heya @theronic,

I've actually been working on at Roam on a improved version of the concepts of this library, that should allow for different drivers (like Firebase, LocalStorage, IndexedDB, or Datomic), primary and secondary data sources, and conflict resolution. We hope to make it available as open source once we finish and test it a bit better.

We haven't really tackled the lazy/streaming aspect of it though, nor indexes, nor time travel, so any thoughts you have on that would be very interesting to hear!

theronic commented 4 years ago

Thanks, @filipesilva. You know, I think I could make an impact at Roam, having recently migrated a project from Firestore to Datomic/Datahike. How do I get in touch?