Skip to content
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

running spin application directly in the broswer? #2220

Open
archywillhe opened this issue Jan 10, 2024 · 2 comments
Open

running spin application directly in the broswer? #2220

archywillhe opened this issue Jan 10, 2024 · 2 comments
Labels
question Further information is requested

Comments

@archywillhe
Copy link

Can we do that with wasm runtime like wasmer? Or does spin has an in-broswer run-time ?

I was checking out WebContainer and noticed it was able to run node in the browser.. just wondering if someday we can run a Spin server in the browser too.. that will be super cool! thanks

@itowlson
Copy link
Contributor

I imagine this would take significant design effort, but my predictive powers would also have ruled out "containers in the browser" and "compile containers to Wasm", both of which have already happened. grin There are certainly design challenges though, and I will chance my arm and say it's unlikely to happen anytime soon.

(Now watch Radu do it in a weekend.)

I am curious about your use case though - what sort of Spin application are you thinking of where you'd like to have the server (or other event handler) running in the browser, rather than at the command line?

@karthik2804
Copy link
Contributor

FWIW I have had success with simple experiments running spin components in the browser using JCO and writing shim for the spin host functions.

@vdice vdice added the question Further information is requested label Mar 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
Status: 📋 Investigating / Open for Comment
Development

No branches or pull requests

4 participants