Skip to content

Spacetimedb in browser #2699

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
ethnh opened this issue May 5, 2025 · 5 comments
Open

Spacetimedb in browser #2699

ethnh opened this issue May 5, 2025 · 5 comments

Comments

@ethnh
Copy link

ethnh commented May 5, 2025

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
@ethnh
Copy link
Author

ethnh commented May 5, 2025

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

@ethnh
Copy link
Author

ethnh commented May 5, 2025

I'm on mobile browser if that's relevant

@bfops
Copy link
Collaborator

bfops commented May 5, 2025

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 (clockworklabs/com.clockworklabs.spacetimedbsdk#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.

@devinMcArthur
Copy link

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

@akaia-shadowfox
Copy link

akaia-shadowfox commented May 14, 2025

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants