SpacetimeDB icon indicating copy to clipboard operation
SpacetimeDB copied to clipboard

Spacetimedb in browser

Open SeqBra opened this issue 1 year ago • 6 comments

Hi, just a few questions

  1. 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
  2. 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
  3. Spacetimedb in browser, is there documentation? The AI search sucked at answering this question

SeqBra avatar May 05 '25 02:05 SeqBra

Oh I see the search button now, can you make it more prominent? But still would appreciate answers to 2 and 3

SeqBra avatar May 05 '25 02:05 SeqBra

I'm on mobile browser if that's relevant

SeqBra avatar May 05 '25 02:05 SeqBra

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 avatar May 05 '25 15:05 bfops

@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.

devinMcArthur avatar May 11 '25 18:05 devinMcArthur

@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 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.

akaia-shadowfox avatar May 14 '25 13:05 akaia-shadowfox

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.

bfops avatar May 27 '25 17:05 bfops