coleam00 / bolt.new-any-llm

Prompt, run, edit, and deploy full-stack web applications using any LLM you want!
https://bolt.new
MIT License
4.29k stars 1.76k forks source link

Using local browser javascript runtime instead of webcontainers #406

Open Nickyesulol opened 1 day ago

Nickyesulol commented 1 day ago

Is your feature request related to a problem? Please describe:

Webcontainers seems pretty unstable and slow when using oTToDev and it's quality is subpar to the one on Bolt.dev

Describe the solution you'd like:

Please replace the webcontainer runtime with a local one so the project doesn't rely on a proprietary node.js browser runtime e.g: https://github.com/Sandpack/nodebox-runtime.

Describe alternatives you've considered:

Maybe upgrade from node.js to something like bun for performance?

Additional context:

I am not a frontend webdev nor have any experience regarding it, but I started experimenting with AI tools like these to see what is already possible with AI. After researching a bit about how Bolt works I came across the underlying system actually running everything -> Webcontainers. On the bolt.new site everything works fine and fast, but when locally hosting this repo a lot of errors appear and webcontainer doesn't seem stable. I looked if there was anything similar open source and I came across: https://github.com/Sandpack/nodebox-runtime Not sure if that's similar enough though.

Nickyesulol commented 1 day ago
Screenshot 2024-11-24 at 22 46 55

Example of how it doesn't even render anything. So far my experience with oTToDev has been pretty bad. I only got something to work with static html content although I instructed it to use Next.js with shadcn and typescript. I don't know if things are just generally buggy with me locally or it's a broader issue.

Nickyesulol commented 23 hours ago

Additionally, it always fails to create a next.js with shadcn environmeny, without exception. Then it just continues writing files into the directory without stopping because the command failed.

Screenshot 2024-11-24 at 23 28 13