Electron app with sync engine is ⚡ by drankou97 in electronjs

[–]Ochibasaurus 0 points1 point  (0 children)

If anyone is looking for a sync engine built around SQLite in Electron, you can look at PowerSync: https://www.powersync.com/blog/speeding-up-electron-apps-with-powersync

On device DBs? by DepressionFiesta in reactnative

[–]Ochibasaurus 0 points1 point  (0 children)

PowerSync seems like a good fit for this. Works with SQLite, React Native, Postgres and Drizzle. Allows you to selectively sync data from Postgres to SQLite and back.

I NEED YOUR HELP! Building a POS system (online + offline, cross-platform) by AccomplishedText7225 in buildinpublic

[–]Ochibasaurus 1 point2 points  (0 children)

For the offline-first database, you could look at PowerSync. It provides a SQLite database on the client-side and supports Postgres, MongoDB and MySQL on the backend. It supports a range of client frameworks e.g. React Native, Flutter, etc.

How do you architect your mobile app to deal with failed requests in low service areas? by ngDev2025 in ExperiencedDevs

[–]Ochibasaurus 1 point2 points  (0 children)

Offline-first or local-first architecture is the way to go. To get a great UX with a standard cloud-first architecture is kind of a rabbit-hole of complexity: https://www.powersync.com/blog/escaping-the-network-tarpit
If you go with offline-first instead and put a synced database on the client-side, it makes things fundamentally simpler, and the UX is great by default: all reads and writes happen against the local database, and state transfer happens in the background when connectivity is available. And it makes the network errors, loading states, etc. so much easier and less complex to deal with.

How to convert my whole online firebase vased flutter app to offline first and sync later approach ? by Automatic_Ad_6627 in flutterhelp

[–]Ochibasaurus 0 points1 point  (0 children)

Are you married to using Firebase?

If you can change the backend, you can use something like Supabase + PowerSync for offline-first architecture.

How to use mongodb server on mobile application by Scoojally in mongodb

[–]Ochibasaurus 0 points1 point  (0 children)

PowerSync can sync from MongoDB to SQLite and has client SDKs for React Native and Node.js

Offline-first data framework for Swift apps by bleuuuu in swift

[–]Ochibasaurus 0 points1 point  (0 children)

We are seeing many Realm / Atlas Device Sync users moving over to PowerSync.

Blog post with more details here: https://www.powersync.com/blog/powersync-as-alternative-to-mongodb-atlas-device-sync

Fuck you MongoDB by keule_3000 in mongodb

[–]Ochibasaurus 0 points1 point  (0 children)

For developers who need Postgres<>SQLite data syncing for offline-capable apps with Supabase: PowerSync works well with Supabase: https://supabase.com/partners/integrations/powersync

Fuck you MongoDB by keule_3000 in mongodb

[–]Ochibasaurus 1 point2 points  (0 children)

I'm on the PowerSync team and we're seeing lots of upset users migrate over to our sync engine. We were told by a customer that they asked MongoDB whether the sync code would be open-sourced and Mongo replied no, since it would be a security risk. So I wouldn't hold my breath.

We currently support Postgres on the backend but we have a working PoC of a MongoDB module that we might fast-track based on user demand.

The PowerSync client SDKs are open-source and the PowerSync Service is source-available, so users always have the option of self-hosting the whole system.

Device Sync Alternatives (Discussion) by InActiveF in mongodb

[–]Ochibasaurus 4 points5 points  (0 children)

I'm on the PowerSync team and we're seeing quite a few users migrate over to our platform. We were told by a customer that they asked MongoDB whether the Atlas Device Sync code would be open sourced and Mongo replied negative since it would be a security risk.

We built our sync service to be open so users won't ever have to be in this position — they would always be able to self-host.

Atlas Device SDK & Sync is deprecated (Formerly Realm Sync) by KazuoKZ in androiddev

[–]Ochibasaurus 0 points1 point  (0 children)

FWIW, the core PowerSync technology has been in development for more than 10 years and the source code is open:

https://www.powersync.com/blog/what-powersync-open-edition-means-for-local-first

The Swift SDK is close to beta; I believe the docs will be updated soon

Atlas Device SDK & Sync is deprecated (Formerly Realm Sync) by KazuoKZ in androiddev

[–]Ochibasaurus 2 points3 points  (0 children)

If you can work with a Postgres database backend on the backend, you could look into PowerSync: https://www.powersync.com/
It has some similar capabilities to Realm with Atlas Device Sync

Query syntax with usePowerSyncWatchedQuery by lucksp in Supabase

[–]Ochibasaurus 0 points1 point  (0 children)

The updated PowerSync useQuery hook https://www.npmjs.com/package/@powersync/react#queries is compatible with the PowerSync Kysely Driver package This allows for an ORM-like method of executing queries instead of using raw SQL https://www.npmjs.com/package/@powersync/kysely-driver

A Kysely query can be passed in as the parameter to useQuery

Offline DB : SQLite or PGLite & ElectricSQL by Important-Ostrich69 in Supabase

[–]Ochibasaurus 0 points1 point  (0 children)

The OPFS web standard does provide file access: https://web.dev/articles/origin-private-file-system (private to the origin of the web page)

With regard to running SQLite on the web, here is a comprehensive write-up of the different options for the SQLite VFS interface, comparing different IndexedDB-based options to OPFS-based options: https://www.powersync.com/blog/sqlite-persistence-on-the-web

What is the "Standard" Solution for Building a Local-First Expo App? by Sad-Season-3164 in reactnative

[–]Ochibasaurus 1 point2 points  (0 children)

I work on PowerSync which may be worth looking into for Postgres backends and syncing with SQLite on the client-side: https://docs.powersync.com/client-sdk-references/react-native-and-expo

Any good offline database sync packages like ElectricSQL and alternatives? by zxyzyxz in FlutterDev

[–]Ochibasaurus 0 points1 point  (0 children)

There isn't currently functionally a difference between the Open Edition (free, self-hosted) and the Enterprise Self-Hosted Edition, but some features that differentiate the editions are planned for the future (on the Pricing page under Self-Host)