Creating our own webcontainers

How can we create our own webcontainers so we don t have to rely on stackblitz webcontainers anymore

See: Replacing webcontainer.io with gptengineer

1 Like

Thank you, but I checked the code and it has absolutely nothing to do with web containers. I don t know what that guy was saying but it doesn t make any sense

I´m also not that deep into this, but @ColeMedin can help for sure :slight_smile:

1 Like

Replacing the web containers would be a massive effort. We’ve talked about doing it as a team quite a lot (especially a couple months ago) but right now there are so many other awesome features to add it that it’s hard to prioritize this. Especially since if we swap out web containers we lose the ability to work with StackBlitz to bring in most things from bolt.new as a part of our partnership.

Correct me if I’m wrong @ColeMedin / @leex279, but would it be possible to achieve this by using either:

  • CodeSandbox’s SandPack API
  • Assign MicroVM containers (for example from fly.io) to users

…perhaps there are other alternative methods?

2 Likes

I tried to build an alternative with code sandbox sandpack but it’s really bad and it’s more for frontend so it s more limited coding environment. With fly.io it may work,this is what Lovable is doing and also what I’m currently working on

2 Likes

thanks, are you willing to share how you built this, your challenges, feasibility and process? I am beginning to do this and happy to share my experience later on as well. Is lovable using both Fly.io and Code sandbox Sandpack or just one of them? Help me understand what does what?

thanks Cole. Could you please share why it’s ‘massive’? What could be complications/timeframe to implement? Would appreciate details.