💾 Archived View for dioskouroi.xyz › thread › 29417937 captured on 2021-12-03 at 14:04:38. Gemini links have been rewritten to link to archived content

View Raw

More Information

-=-=-=-=-=-=-

Codesandbox open sources their execution enviornment: Sandpack

Author: plondon514

Score: 81

Comments: 16

Date: 2021-12-02 16:08:01

Web Link

________________________________________________________________________________

omneity wrote at 2021-12-02 17:22:31:

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.

CompuIves wrote at 2021-12-02 17:28:22:

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 ives@codesandbox.io so we can fix it?

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

omneity wrote at 2021-12-03 16:42:00:

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).

syspec wrote at 2021-12-02 17:03:28:

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?

CompuIves wrote at 2021-12-02 17:24:46:

Yep, it downloads and compiles dependencies on the client side. However, it does this on a different domain for security reasons.

CompuIves wrote at 2021-12-02 17:38:52:

Also, while it uses the CodeSandbox bundler, you can self host it so it's not dependent on our servers!

syspec wrote at 2021-12-02 19:25:18:

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"

TravisCooper wrote at 2021-12-02 18:17:25:

Is there an API to get the compiled and bundled sources into one output/result?

CompuIves wrote at 2021-12-02 18:26:40:

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.

yuchi wrote at 2021-12-02 18:29:31:

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.

plondon514 wrote at 2021-12-02 20:06:29:

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!

cphoover wrote at 2021-12-02 22:37:27:

I'd like to see storybook with support for this.

chrisweekly wrote at 2021-12-02 18:00:38:

Mods: typo in title

plondon514 wrote at 2021-12-02 20:07:27:

I don't think I've ever spelled environment correctly!

nsonha wrote at 2021-12-02 20:26:06:

Until you did

ralusek wrote at 2021-12-03 01:23:54:

Awesome, I love codesandbox. Thank you