3 ms·
If I may be forgiven for asking, what about web app playgrounds? Does anyone know a good solution for embedding whole sandboxed products for demonstration purpo
by esafak 3y ago
If I may be forgiven for asking, what about web app playgrounds? Does anyone know a good solution for embedding whole sandboxed products for demonstration purposes?
- senseiV 3y agoreplit/codesandbox maybe?
- meredydd 3y agoHi `esafak - can you drop me an email (in my bio)? Might have something for you.
- lazyasciiart 3y agoThis one worked pretty great for my purposes. https://github.com/google/playground-elements https://github.com/google/playground-elements Of course if you’d rather build your own less functional copy from scratch in order to waste several months and avoid shipping, I have some colleagues you might enjoy working with.
- nmstoker 3y agoThis is amazing. Any idea if it's a "going concern"? Not to be snarky but it is from Google.
- ericmsimons 3y agoThis is what we do at StackBlitz (stackblitz.com). All hosted in the browser without the need for servers, including fullstack applications.
- giovannibonetti 3y agoYou may want to add a disclaimer that your platform only runs JS and not other languages that compile to WASM, unlike the whole discussion here.
- ianberdin 3y agoI've been working on such browser JavaScript Playground: (https://playcode.io https://playcode.io) for 7 years.
- dmsnell 3y agoMy teammate built the WordPress Playground https://playground.wordpress.net https://playground.wordpress.net The motivation was initially to build interactive documentation where you could play with the code examples and see how they change things, but it's being used to demonstrate plugins on the WordPress directory, build staging sites, add no-risk places to experiment. Surprisingly has been taking over some of the native development tools because it provides a sandboxed and isolated environment that needs no other dependencies and leaves no junk on your computer once it's done. It's trivial to change the PHP version being run (making testing on different version of PHP easy) by adding `--php 5.6`, for example, which is something a bit gnarly to do otherwise unless running PHP inside Docker. Another surprise is that once loaded, it runs very fast, faster than native PHP and MySQL (the Playground can connect to MySQL but runs sqlite by default). I attribute this to having everything in memory and bypassing the filesystem. It's been the kind of project that only gets better the more it's used. It turns out that having a no-setup, no-trace, isolated, risk-free app playground is an incredible tool for more purposes than we first realize. Someone even put the Playground inside an iOS app and it runs smoother than the native WordPress app. As for a good solution? Just a lot of work I guess but WASM is critical to it. Any device or platform that supports JavaScript can run the sandbox/playground app: VSCode, `node` itself, a browser, a mobile device…