News for hackers. Stuff that matters.
Re:Codesandbox open sources their execution enviornment: San... by omneity on Thursday December 02, 2021 @12:22PM (#29419202)
I was a very early adopter of Codesandbox and a patron back when it was a tiny sideproject by Ives.

Years ago, very happy at the time, I wrote a lot of code using Codesandbox, and expected it to remain private.

At some point seemingly, Codesandbox introduced plans (not just patron support), made all my code public (for who knows how long) and kept charging me until today! Quite the surprise, I expected better from the team.

I know this post is technical, but I find it hard to separate the technical merits of a company from their business practices.

Re:Codesandbox open sources their execution enviornment: San... by CompuIves on Thursday December 02, 2021 @12:28PM (#29419298)
First of all, super cool to hear that you've been such an early adopter of CodeSandbox! Not many can say that.

The fact that we made your projects public and kept charging is definitely a big mistake, and shouldn't have happened in the first place. When you cancel a subscription, we should keep your existing work private. Could you send me an email at [email protected] so we can fix it?

Apologies for the fact this happened to you, that's a severe mistake and shouldn't have happened!

Re:Codesandbox open sources their execution enviornment: San... by omneity on Friday December 03, 2021 @11:42AM (#29431986)
Hey Ives,

I wrote to you some additional context yesterday after your message, but I’m not sure you got my email?

FYI I couldn’t find a way to cancel and I’m still being billed (and my code is still public).

Re:Codesandbox open sources their execution enviornment: San... by syspec on Thursday December 02, 2021 @12:03PM (#29418879)
This looks really cool, I can't tell if it is a sandbox environment or not.

Does it download the dependencies on the client side, and compile the JS on the client side as well?

Re:Codesandbox open sources their execution enviornment: San... by CompuIves on Thursday December 02, 2021 @12:24PM (#29419240)
Yep, it downloads and compiles dependencies on the client side. However, it does this on a different domain for security reasons.
Re:Codesandbox open sources their execution enviornment: San... by CompuIves on Thursday December 02, 2021 @12:38PM (#29419480)
Also, while it uses the CodeSandbox bundler, you can self host it so it's not dependent on our servers!
Re:Codesandbox open sources their execution enviornment: San... by syspec on Thursday December 02, 2021 @02:25PM (#29421154)
So by compiles it on the client side, you mean the JS is bundling the JS?

If it is all happening in the users browser, what's do you mean when you say "it does this on a different domain"

Re:Codesandbox open sources their execution enviornment: San... by TravisCooper on Thursday December 02, 2021 @01:17PM (#29420069)
Is there an API to get the compiled and bundled sources into one output/result?
Re:Codesandbox open sources their execution enviornment: San... by CompuIves on Thursday December 02, 2021 @01:26PM (#29420201)
Yes, after every compilation we send the full bundler state. This is saved on the context so you can use that to analyze the output. In one of the examples in the blog post we show the transpiled code for example.

A hidden "feature" is that we automatically run tests defined (e.g. index.test.js) using jest, and dispatch the test results. So you can listen to that as well.

Re:Codesandbox open sources their execution enviornment: San... by yuchi on Thursday December 02, 2021 @01:29PM (#29420233)
Early adopter — and even advocate since we extensively use for our courses on web dev! — fan of CodeSandbox.

Very happy to see the project big and stable enough to start open sourcing core components of the product.

Re:Codesandbox open sources their execution enviornment: San... by plondon514 on Thursday December 02, 2021 @03:06PM (#29421726)
Hey yuchi! What are you working on irt courses on web dev? I'm also working on something similar see https://codeamigo.dev. Wonder if we could collaborate!
Re:Codesandbox open sources their execution enviornment: San... by cphoover on Thursday December 02, 2021 @05:37PM (#29423789)
I'd like to see storybook with support for this.
Re:Codesandbox open sources their execution enviornment: San... by ralusek on Thursday December 02, 2021 @08:23PM (#29425495)
Awesome, I love codesandbox. Thank you
Re:Codesandbox open sources their execution enviornment: San... by chrisweekly on Thursday December 02, 2021 @01:00PM (#29419810)
Mods: typo in title
Re:Codesandbox open sources their execution enviornment: San... by plondon514 on Thursday December 02, 2021 @03:07PM (#29421741)
I don't think I've ever spelled environment correctly!
Re:Codesandbox open sources their execution enviornment: San... by nsonha on Thursday December 02, 2021 @03:26PM (#29422005)
Until you did