Spacetimedb in browser
Hi, just a few questions
- Can you add just a search to your docs? I don't mind the AI thing but I need to be able to search keywords
- Spacetimedb in browser, I saw some mentions of wasm, can spacetimedb run both as server and client on a mobile web browser? I want users to be able to run a "Host on LAN"-alike experience, no need for my servers. I can figure out the networking if it's possible
- Spacetimedb in browser, is there documentation? The AI search sucked at answering this question
Oh I see the search button now, can you make it more prominent? But still would appreciate answers to 2 and 3
I'm on mobile browser if that's relevant
Hey there, thanks for opening an issue!
We currently have our TypeScript SDK and associated docs. We also support running a Unity WebGL build in the browser (https://github.com/clockworklabs/com.clockworklabs.spacetimedbsdk/pull/286), but the client-side code is the same as our normal Unity tutorial.
As far as I know, we don't have support for running the server in a browser, but I'll double-check with the team. We do have future features planned to make local networking / LAN games possible.
@bfops are there any plans to make the spacetimedb-sdk WASM compatible? I see some interesting opportunities with a tool like Dioxus, allowing development of multiple clients while using SpaceTimeDB as the server.
@bfops are there any plans to make the
spacetimedb-sdkWASM compatible? I see some interesting opportunities with a tool like Dioxus, allowing development of multiple clients while using SpaceTimeDB as the server.
@bfops I second this. There is an ongoing effort by @thlsrms that already enables creating Leptos clients (there's also a good example involving Bevy), and it would be incredibly valuable for the Rust frontend and gamedev communities to have official support for the WASM client workflow — even as an alpha feature.
Oops sorry, I thought I had responded to this. It's been a busy time. We don't have a specific timeline for that, but given https://github.com/clockworklabs/SpacetimeDB/pull/2704, we might be able to review and integrate some functionality relatively soon.