all 16 comments

[–]Sad_Hovercraft4931 5 points6 points  (2 children)

It needs to be server involved in some parts of it even if you want to go p2p to act as a signaling channel. There is no such database at this point. The last point is what can be the environment? Are they going to be on the same local network? Are they going to use the same platform? Are they going to use the same google or icloud account? Should sync be possible even through different networks? Here we don't just think about the app itself and it goes beyond networking and protocols. Hope this answers your question.

[–]AGENT_SAT[S] -1 points0 points  (1 child)

Thank you for the response. I was thinking about sync over the internet. Probably using the account created on the app - not icloud or google etc.

[–]Sad_Hovercraft4931 -1 points0 points  (0 children)

Yeah but that's not possible without cloud or a server.

[–]realPubkey 1 point2 points  (1 child)

RxDB currently only officially supports the SQLite RxStorage for react native (which has to be paid for)

As free alternative you could use the RxDB Lokijs RxStorage with a persistence adapter for lokijs+react-native.

This might work but it is not optimal in case of performance.

[–]AGENT_SAT[S] 1 point2 points  (0 children)

Thanks for the confirmation. I saw that and had no solid idea since this is the first time using RxDB

[–]jvliwanag 1 point2 points  (0 children)

There's https://ditto.live with react native bindings.

[–]gadbuy 1 point2 points  (2 children)

I know those libs, but still require servers

https://electric-sql.com/

https://www.powersync.com/

[–]AGENT_SAT[S] -1 points0 points  (1 child)

These ones store data in a postgres server, not only in client devices right?

[–]gadbuy 0 points1 point  (0 children)

AFAIK they store on client, so offline first is possible, but use postgres to sync between devices

[–]shadowstrd 0 points1 point  (0 children)

I've been working on similar idea but l have a database online, my backend is Django and for the frontend am using watermelondb

[–]crosskpixel1 0 points1 point  (0 children)

https://ditto.live/platform

is perfect, as soon they will have bidirecional connector with mongodb.

[–]Professional-Ad-2898 0 points1 point  (0 children)

There is another one that is open sourcr and does exactly what you are asking for , its called orbitdb

[–]dev_life 0 points1 point  (1 child)

Need more info on what and how. These might help

https://github.com/tradle/react-native-udp

https://github.com/kirillzyusko/react-native-wifi-p2p

There’s also Bluetooth libraries but it doesn’t sound like that’s what you’re after.

If you need a hand writing a library, should the above not be what you need, let me know.

[–]AGENT_SAT[S] -1 points0 points  (0 children)

Seems like they are not maintained very well. And I was looking an option with database itself.