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

Create interactive guide and provide a playground to try Brisa online #158

Open
Tracked by #197
aralroca opened this issue Apr 13, 2024 · 8 comments
Open
Tracked by #197
Assignees
Labels
documentation Improvements or additions to documentation enhancement New feature or request needs investigation

Comments

@aralroca
Copy link
Collaborator

aralroca commented Apr 13, 2024

Probably I need to add a service worker with Bun in web assembly. I need to investigate first

@aralroca aralroca self-assigned this Apr 13, 2024
@aralroca aralroca added documentation Improvements or additions to documentation enhancement New feature or request needs investigation labels Apr 13, 2024
@aralroca
Copy link
Collaborator Author

aralroca commented Apr 17, 2024

I see that it is possible to transform Bun to wasm and load it in the browser (we would do it from a service worker):

https://twitter.com/jarredsumner/status/1498203999161311234

I don't know how Jarred created the wasm, maybe with https://github.com/AssemblyScript/assemblyscript ?

@aralroca
Copy link
Collaborator Author

Another solution (quite ugly) is opening up a docker container in the backend of the website which then uses WebSockets to execute the code. display the output to you in the Terminal. That's what Codedamn does according to them.

@aralroca
Copy link
Collaborator Author

@aralroca aralroca changed the title Create a playground to try Brisa online Create interactive guide and provide a playground to try Brisa online May 26, 2024
@aralroca aralroca mentioned this issue Jul 29, 2024
19 tasks
@aralroca
Copy link
Collaborator Author

To start with we could make it possible to play with the web components. To translate JS to compiled code, maybe we could bring the meriyah and astring along with the plugin directly into a worker.

@aralroca
Copy link
Collaborator Author

aralroca commented Oct 7, 2024

To finish this task we can do different PRs to:

CC: @enzonotario if you see that you can help in any of these, it will be very welcome. I will now create the tasks separately and let this be the Epic.

@aralroca
Copy link
Collaborator Author

Just an idea: add Linux VM? https://github.com/nadchif/in-browser-virtual-machine

@enzonotario
Copy link
Collaborator

@aralroca it seems good! do you mean to have it to allows to install a Project and run commands?

If so, I think another alternative for that would be WebContainers, that TutorialKit uses below.

@aralroca
Copy link
Collaborator Author

@aralroca it seems good! do you mean to have it to allows to install a Project and run commands?

If so, I think another alternative for that would be WebContainers, that TutorialKit uses below.

It may be fine. The free layer has 25,000 API sessions per month. I don't know if it will be a little or a lot; I would have to study it. We could consider using this option when we have sponsors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request needs investigation
Projects
None yet
Development

No branches or pull requests

2 participants