148 points · by tosh · 2y ago · 63 comments
Buyer beware: WebContainers is closed-source and there are hundreds of open issues from users. Most of them are ignored for weeks and months at a time as the company pivots from one thing to the next: https://github.com/stackblitz/webcontainer-core/issues
StackBlitz is another code playground.
WebContainers is a library that they've extracted from their codebase and are selling that allows other people to build full-stack code playgrounds on their sites.
we haven’t ever pivoted from webcontainers, not sure what you’re talking about there. it’s been our main thing since forever :)
stackblitz itself is a product suite built on top of webcontainers. note that many issues in the repo you linked are not for webcontainers specifically, but instead mostly for stackblitz specific functionality.
we have about 3m devs/mo using us for free on stackblitz.com, so we do the best we can for free public issue triage but do prioritize our paying customers (we are a business after all :)
You already have the customers / platform...
Btw one emergent use case we've seen growing rapidly has been code execution for AI agents. Would love thoughts/questions/feedback if you’re working on things in that space: https://webcontainers.io/ai
It's somewhat specific to our use case as you'll see when you read through. A motivation for securing this was that we've had issues (one instance in particular) where we caught a direct competitor directly copy+pasting code from our compiled builds into their own competing product. Asking them nicely to stop didn't do anything, nor getting emails from our lawyers.
The main lever a startup has to solve this is to keep innovating and being the best product in the market, which is what we have done & continue to do. But having a patent is a useful lever for general deterrence from bad actors like this. (Also want to say thanks and give credit to Vinay Hiremath, cofounder of Loom, who went through similar in the early days of Loom and helped point us down the path of securing a patent)
Bonus points for also buying https://webcontainer.io/ (no s) and pointing it at the right place.
Also, this is like the better funded, more productized cousin of https://webvm.io/
Personally, I'd be direct and add something to the effect of
> The page that you see on the right is being rendered to your browser by an instance of vite, running on your laptop, npm and all, being served directly to your browser. This is what sets us apart from other web dev environments.
to the readme.md on webcontainers.new and to the copy directing people to click that blue button. As a sibling comment says, "looks like every other modern code playground", which is what it looks like, but it isn't. You and your team have put in a lot of hard work to differentiate on that specific thing.
Your target market is developers, which raises the bar for technical understanding. Respect your customers' intelligence and just give it to them straight.
imo. you didn't ask for suggestions but this is the Internet :)
Alright, looks like a lot of work went into this. What's the unique use case here? Help me out. I don't really understand why people would want to write code like this.
Is this really just a metoo product?
These run your code on a cloud server
> codeanywhere
This runs your coding interview on a cloud server
> codepen, replit, jsfiddle, jsbin, playcode, jupyter
These aren't really IDEs, they run some limited html and css on the client or in some cases some code in other languages on a cloud server. They are intended for small shareable snippets that demonstrate something. They generally don't have a full filesystem view, and thus are a specialized flavor of coding environment.
> web containers
This runs your frontend and backend code (yes, http servers) in a local browser backed filesystem that's fully local with no cloud servers which has a full terminal and process system as well as WASM adapted (and environment tweaked) versions of your development tools.
There is no competitor that does quite this, to my knowledge. It might seem like these are all the same, but they are not if you look closer.
It's pretty crazy tech, and really genius.
WebContainers is a (proprietary) library for anyone to use to build playgrounds that execute client and server code on the frontend alone. It sounds like it was extracted from Stackblitz's implementation for separate use.
WebContainers is not competing in that crowded field (though Stackblitz is) because as far as I know no one else offers a library to build your own. This is partly because it's a pretty niche offering—developers of server-side or full-stack frameworks are the most obvious target users.
1. Network effects are stronger than we realize, due to being in the networks
2. UX detail matters more than most of us here give credit.
I do wish this were open source, and the mention of a patent scares me - I feel like lots of people have tried this over the years, are they running afoul of some patent not fully linked to from the WebContainers site? - but I understand the investment that StackBlitz has made and the need to make money.
What happens if I close browser tab? does that make the webcontainer go poof? What about memory and CPU requirements?
The idea sounds like a great hack, but the whole point of cloud IDEs is that it uses someone else's resources. I could get a 64 CPU with a bunch of H100s to dev on, run some script in background, and shut it when I'm done.
And they do all this work then open source it instead of keeping it as a technical advantage.
Strongly recommend their blog.
Not affiliated just a fan.
This seems important for iterating JS/TS programs ala Smalltalk.
Don't know who will need this product to run a node.js enviroment in browser.
xterm.js is just not so fashion.
Surprisingly a very large and growing number of use cases across interactive edu tools, AI code execution (https://webcontainers.io/ai), SaaS dev envs for end users to write code, amongst others
It's more likely than you think!