Thoughts on using Triplit in a local-only electron app #265
harrisjose
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I recently came across Triplit while exploring options for a local-first (SQLite-backed) reactive datastore with relational querying capabilities. Triplit seems like a strong fit for my requirements, but I have a few questions about usage in a local-only Electron app:
The documentation mentions a local-only mode for the client. Can this mode handle all persistence needs for an app indefinitely, or are there any limitations to be aware of? My guess is that it isn't intended to, as the client and server seem to use different architectures for storing changes.
I saw on the Lofi Discord that the triplit/db package can be used directly in local-only contexts. If using Triplit without the server is feasible:
If the server is something that can't be skipped, maybe one possible approach could involve creating a client that communicates via IPC with a server running in the Electron main process. Does this make sense, or are there better practices for this type of architecture?
Any insights or recommendations would be greatly appreciated. Thank you!
Beta Was this translation helpful? Give feedback.
All reactions