Embedding in web applications #1275
Replies: 3 comments 7 replies
-
I only now realized that this is already a thing 😅 Just need to put |
Beta Was this translation helpful? Give feedback.
-
Would love this too for building offline/local-first apps (e.g. using Tauri). So instead of writing queries for a local state management solution like xState, Valtio or Redux or something like PouchDB/ IndexedDB, I’d prefer to have a WebAssembly powered instance of SurrealDB running in the browser, so I have to write all queries only once. It would be extra cool if the local instance would synchronize to the cloud version. Quote from @tobiemh (source - 9 months ago)
Related: Discussion: Offline Database #1499 Discussion: Support for optimistic UI? #1449 |
Beta Was this translation helpful? Give feedback.
-
It would be really nice to have a client that allows running Surreal in a worker with the clients sitting on the main thread. |
Beta Was this translation helpful? Give feedback.
-
Hello 👋
I was thinking that it could be cool if a "full SurrealDB node" could be embedded with wasm inside a web app, as a layer between the application logic and localStorage/indexedDB/whatever browser storage solution. That would allow to access all of the SurrealDB goodness, like the Query language, relationships, etc. from Web Applications meant to run fully client side. It would also be cool in development, as it would allow to get developing instantly with a persistent database running in the browser without needing to go spin up a development instance externally.
I get that this is something that is easier said than done, but I think that would be a pretty cool thing to have nonetheless 🤩
Beta Was this translation helpful? Give feedback.
All reactions