astro-reactive icon indicating copy to clipboard operation
astro-reactive copied to clipboard

Create new playground app

Open ayoayco opened this issue 2 years ago • 8 comments
trafficstars

In addition to our landing page and docs sites, we can now create a playground using https://webcontainers.io

ayoayco avatar Feb 16 '23 12:02 ayoayco

Correct me if I am wrong. This webcontainers are used to create interactive code editors on web where user can play around and get to learn more?

Preet-Sojitra avatar Mar 04 '23 16:03 Preet-Sojitra

Yeah exactly. I think we can find a lot of examples in other more mature libraries

ayoayco avatar Mar 04 '23 18:03 ayoayco

On website they have put example of sveltekit. Sveltkit has implemented playground on their website. You can check it out.

Preet-Sojitra avatar Mar 05 '23 15:03 Preet-Sojitra

This is exciting!

@ayoayco So with this, will we migrate our demo to playground? Like Qwik and Svelte?

I'm interested to try out webcontainer.

fazzaamiarso avatar Mar 16 '23 19:03 fazzaamiarso

Yes exactly @fazzaamiarso ... let me know what you find out. I'm not sure if it needs a StackBlitz account and how well it works on an Astro app? :D We may need to build this with another framework if not

ayoayco avatar Mar 17 '23 12:03 ayoayco

@ayoayco I think it's quite difficult to do it with Astro because webcontainer mostly works on the client side. We can use framework like React (most familiar with me) or any other like svelte, solid.

But I found this playground with Solid, which is pretty solid 🤣. I always wanted to try Solid though. If I'm not mistaken, the hyperdrive package will use solid too, right?

what do you think?

fazzaamiarso avatar Mar 19 '23 13:03 fazzaamiarso

I've build a minimal playground with vanilla-ts + vite. Tried using our library and it worked. Although, we definitely need a framework for our DX.

Maybe svelte or react?

fazzaamiarso avatar Mar 19 '23 15:03 fazzaamiarso

@fazzaamiarso I'm more excited to try svelte than react to be honest. :) I'm fine if you want to PR what you have now so we can iterate on improving it. But if you're also interested to add a framework I vote for svelte because I'm curious about it as well. Might be a nice new project.

enhance.dev is also interesting :)

ayoayco avatar Mar 19 '23 20:03 ayoayco